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

# QuickBooks API reference

> API reference for the QuickBooks plugin in Corsair: every `quickbooks.api.*` operation with its input and output types, taken from the plugin's Zod schemas.

> [!NOTE]
>
> **New to Corsair?** See [API access](https://docs.corsair.dev/concepts/api.md), [authentication](https://docs.corsair.dev/concepts/auth.md), and [error handling](https://docs.corsair.dev/concepts/error-handling).

## Account List Detail

### list

`accountListDetail.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.accountListDetail.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   account_type?: string,
>   end_date?: string,
>   start_moddate?: string,
>   sort_by?: string,
>   sort_order?: string,
>   moddate_macro?: string,
>   end_moddate?: string,
>   account_status?: string,
>   createdate_macro?: string,
>   start_date?: string,
>   columns?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Accounts

### create

`accounts.create`

Create a QuickBooks account in the company chart of accounts

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.accounts.create({"realmId":"12345678","name":"Operating Checking","accountType":"Bank"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | QuickBooks company realm ID returned in Intuit’s OAuth redirect |
| `name` | `string` | Yes | — |
| `accountType` | `Bank \| Accounts Receivable \| Other Current Asset \| Fixed Asset \| Other Asset \| Accounts Payable \| Credit Card \| Other Current Liability \| Long Term Liability \| Equity \| Income \| Cost of Goods Sold \| Expense \| Other Income \| Other Expense` | No | — |
| `accountSubType` | `string` | No | — |
| `acctNum` | `string` | No | — |
| `taxCodeRef` | `object` | No | — |

POST /v3/company/\{realmId}/account. Name must be unique, at most 100 characters, and cannot contain a double quote or colon. Supply accountType or accountSubType. Source: [https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/account](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/account)

> [accordion] taxCodeRef full type
>
> ```ts theme={null}
> {
>   name?: string,
>   type?: string,
>   value: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Account` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Account full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string,
>   MetaData?: {
>     CreatedByRef?: {
>       name?: string,
>       type?: string,
>       value: string
>     },
>     CreateTime?: string,
>     LastModifiedByRef?: {
>       name?: string,
>       type?: string,
>       value: string
>     },
>     LastUpdatedTime?: string,
>     LastChangedInQB?: string,
>     Synchronized?: boolean
>   },
>   Name: string,
>   SubAccount?: boolean,
>   ParentRef?: {
>     name?: string,
>     type?: string,
>     value: string
>   },
>   Description?: string,
>   FullyQualifiedName?: string,
>   AccountAlias?: string,
>   TxnLocationType?: string,
>   Active?: boolean,
>   Classification?: Asset | Equity | Expense | Liability | Revenue,
>   AccountType?: Bank | Accounts Receivable | Other Current Asset | Fixed Asset | Other Asset | Accounts Payable | Credit Card | Other Current Liability | Long Term Liability | Equity | Income | Cost of Goods Sold | Expense | Other Income | Other Expense,
>   AccountSubType?: string,
>   AccountPurposes?: {
>     name?: string,
>     type?: string,
>     value: string
>   }[],
>   AcctNum?: string,
>   AcctNumExtn?: string,
>   BankNum?: string,
>   OpeningBalance?: number,
>   OpeningBalanceDate?: string,
>   CurrentBalance?: number,
>   CurrentBalanceWithSubAccounts?: number,
>   CurrencyRef?: {
>     name?: string,
>     type?: string,
>     value: string
>   },
>   TaxAccount?: boolean,
>   TaxCodeRef?: {
>     name?: string,
>     type?: string,
>     value: string
>   },
>   OnlineBankingEnabled?: boolean,
>   FIName?: string,
>   JournalCodeRef?: {
>     name?: string,
>     type?: string,
>     value: string
>   },
>   AccountEx?: any,
>   domain?: QBO,
>   sparse?: boolean
> }
> ```

***

### get

`accounts.get`

Read one account by its QuickBooks account ID

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.accounts.get({"realmId":"12345678","accountId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | QuickBooks company realm ID returned in Intuit’s OAuth redirect |
| `accountId` | `string` | Yes | — |

GET /v3/company/\{realmId}/account/\{accountId}. Account IDs are strings. Source: [https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/account](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/account)

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Account` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Account full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string,
>   MetaData?: {
>     CreatedByRef?: {
>       name?: string,
>       type?: string,
>       value: string
>     },
>     CreateTime?: string,
>     LastModifiedByRef?: {
>       name?: string,
>       type?: string,
>       value: string
>     },
>     LastUpdatedTime?: string,
>     LastChangedInQB?: string,
>     Synchronized?: boolean
>   },
>   Name: string,
>   SubAccount?: boolean,
>   ParentRef?: {
>     name?: string,
>     type?: string,
>     value: string
>   },
>   Description?: string,
>   FullyQualifiedName?: string,
>   AccountAlias?: string,
>   TxnLocationType?: string,
>   Active?: boolean,
>   Classification?: Asset | Equity | Expense | Liability | Revenue,
>   AccountType?: Bank | Accounts Receivable | Other Current Asset | Fixed Asset | Other Asset | Accounts Payable | Credit Card | Other Current Liability | Long Term Liability | Equity | Income | Cost of Goods Sold | Expense | Other Income | Other Expense,
>   AccountSubType?: string,
>   AccountPurposes?: {
>     name?: string,
>     type?: string,
>     value: string
>   }[],
>   AcctNum?: string,
>   AcctNumExtn?: string,
>   BankNum?: string,
>   OpeningBalance?: number,
>   OpeningBalanceDate?: string,
>   CurrentBalance?: number,
>   CurrentBalanceWithSubAccounts?: number,
>   CurrencyRef?: {
>     name?: string,
>     type?: string,
>     value: string
>   },
>   TaxAccount?: boolean,
>   TaxCodeRef?: {
>     name?: string,
>     type?: string,
>     value: string
>   },
>   OnlineBankingEnabled?: boolean,
>   FIName?: string,
>   JournalCodeRef?: {
>     name?: string,
>     type?: string,
>     value: string
>   },
>   AccountEx?: any,
>   domain?: QBO,
>   sparse?: boolean
> }
> ```

***

### list

`accounts.list`

List accounts with QuickBooks query pagination

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.accounts.list({"realmId":"12345678","startPosition":1,"maxResults":50});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | QuickBooks company realm ID returned in Intuit’s OAuth redirect |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

GET /v3/company/\{realmId}/query with SELECT \* FROM Account. Pagination uses STARTPOSITION and MAXRESULTS (1–1000; default 100). Source: [https://static.developer.intuit.com/output\_html/qbo/docs/learn/explore-the-quickbooks-online-api/data-queries.html](https://static.developer.intuit.com/output_html/qbo/docs/learn/explore-the-quickbooks-online-api/data-queries.html)

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   Account?: {
>     Id: string,
>     SyncToken: string,
>     MetaData?: {
>       CreatedByRef?: {
>         name?: string,
>         type?: string,
>         value: string
>       },
>       CreateTime?: string,
>       LastModifiedByRef?: {
>         name?: string,
>         type?: string,
>         value: string
>       },
>       LastUpdatedTime?: string,
>       LastChangedInQB?: string,
>       Synchronized?: boolean
>     },
>     Name: string,
>     SubAccount?: boolean,
>     ParentRef?: {
>       name?: string,
>       type?: string,
>       value: string
>     },
>     Description?: string,
>     FullyQualifiedName?: string,
>     AccountAlias?: string,
>     TxnLocationType?: string,
>     Active?: boolean,
>     Classification?: Asset | Equity | Expense | Liability | Revenue,
>     AccountType?: Bank | Accounts Receivable | Other Current Asset | Fixed Asset | Other Asset | Accounts Payable | Credit Card | Other Current Liability | Long Term Liability | Equity | Income | Cost of Goods Sold | Expense | Other Income | Other Expense,
>     AccountSubType?: string,
>     AccountPurposes?: {
>       name?: string,
>       type?: string,
>       value: string
>     }[],
>     AcctNum?: string,
>     AcctNumExtn?: string,
>     BankNum?: string,
>     OpeningBalance?: number,
>     OpeningBalanceDate?: string,
>     CurrentBalance?: number,
>     CurrentBalanceWithSubAccounts?: number,
>     CurrencyRef?: {
>       name?: string,
>       type?: string,
>       value: string
>     },
>     TaxAccount?: boolean,
>     TaxCodeRef?: {
>       name?: string,
>       type?: string,
>       value: string
>     },
>     OnlineBankingEnabled?: boolean,
>     FIName?: string,
>     JournalCodeRef?: {
>       name?: string,
>       type?: string,
>       value: string
>     },
>     AccountEx?: any,
>     domain?: QBO,
>     sparse?: boolean
>   }[]
> }
> ```

***

### update

`accounts.update`

QuickBooks Full update an account

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.accounts.update({"realmId":"12345678","body":{"Id":"35","Name":"sample","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

This is Intuit's full update operation, not a patch. Include the latest Id and SyncToken and every writable field that should be preserved; writable fields omitted from the request are set to null. Source: [https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/account](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/account)

> [accordion] body full type
>
> ```ts theme={null}
> {
>   SyncToken: string,
>   SubAccount?: boolean,
>   Classification?: string,
>   FullyQualifiedName?: string,
>   AccountType?: Bank | Accounts Receivable | Other Current Asset | Fixed Asset | Other Asset | Accounts Payable | Credit Card | Other Current Liability | Long Term Liability | Equity | Income | Cost of Goods Sold | Expense | Other Income | Other Expense | Non-Posting,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CurrentBalanceWithSubAccounts?: number,
>   AcctNum?: string,
>   TaxCodeRef?: {
>     name?: string,
>     value: string
>   },
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   AccountSubType?: string,
>   CurrentBalance?: number,
>   Description?: string,
>   Active?: boolean,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   Id: string,
>   Name?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Account` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Account full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   SubAccount?: boolean,
>   Classification?: string,
>   FullyQualifiedName?: string,
>   AccountType?: Bank | Accounts Receivable | Other Current Asset | Fixed Asset | Other Asset | Accounts Payable | Credit Card | Other Current Liability | Long Term Liability | Equity | Income | Cost of Goods Sold | Expense | Other Income | Other Expense | Non-Posting,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CurrentBalanceWithSubAccounts?: number,
>   AcctNum?: string,
>   TaxCodeRef?: {
>     name?: string,
>     value: string
>   },
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   AccountSubType?: string,
>   CurrentBalance?: number,
>   Description?: string,
>   Active?: boolean,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   Id: string,
>   Name: string
> }
> ```

***

## Ap Aging Detail

### list

`apAgingDetail.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.apAgingDetail.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   shipvia?: string,
>   term?: string,
>   end_duedate?: string,
>   accounting_method?: string,
>   start_duedate?: string,
>   custom1?: string,
>   custom2?: string,
>   custom3?: string,
>   report_date?: string,
>   num_periods?: number,
>   vendor?: string,
>   past_due?: number,
>   aging_period?: number,
>   columns?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Ap Aging Summary

### list

`apAgingSummary.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.apAgingSummary.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   customer?: string,
>   qzurl?: string,
>   vendor?: string,
>   date_macro?: string,
>   department?: string,
>   report_date?: string,
>   sort_order?: string,
>   aging_method?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Ar Aging Detail

### list

`arAgingDetail.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.arAgingDetail.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   customer?: string,
>   shipvia?: string,
>   term?: string,
>   end_duedate?: string,
>   start_duedate?: string,
>   custom1?: string,
>   custom2?: string,
>   custom3?: string,
>   report_date?: string,
>   num_periods?: number,
>   aging_method?: string,
>   past_due?: number,
>   aging_period?: number,
>   columns?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Ar Aging Summary

### list

`arAgingSummary.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.arAgingSummary.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   customer?: string,
>   qzurl?: string,
>   date_macro?: string,
>   aging_method?: string,
>   report_date?: string,
>   sort_order?: string,
>   department?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Attachable

### create

`attachable.create`

QuickBooks Create a note attachment

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.attachable.create({"realmId":"12345678","body":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Note?: string,
>   AttachableRef?: {
>     IncludeOnSend?: boolean,
>     LineInfo?: string,
>     NoRefOnly?: boolean,
>     CustomField?: {
>       DefinitionId: string,
>       StringValue?: string,
>       Type?: StringType | BooleanType | NumberType | DateType,
>       Name?: string
>     }[],
>     Inactive?: boolean,
>     EntityRef?: {
>       type?: string,
>       value: string,
>       name?: string
>     }
>   }[],
>   FileName?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Attachable` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Attachable full type
>
> ```ts theme={null}
> {
>   Category?: string,
>   SyncToken?: string,
>   FileAccessUri?: string,
>   ContentType?: string,
>   PlaceName?: string,
>   Size?: number,
>   AttachableRef?: {
>     IncludeOnSend?: boolean,
>     LineInfo?: string,
>     NoRefOnly?: boolean,
>     CustomField?: {
>       DefinitionId: string,
>       StringValue?: string,
>       Type?: StringType | BooleanType | NumberType | DateType,
>       Name?: string
>     }[],
>     Inactive?: boolean,
>     EntityRef?: {
>       type?: string,
>       value: string,
>       name?: string
>     }
>   }[],
>   Long?: string,
>   FileName?: string,
>   Note?: string,
>   Tag?: string,
>   Lat?: string,
>   ThumbnailFileAccessUri?: string,
>   TempDownloadUri?: string,
>   ThumbnailTempDownloadUri?: string,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### delete

`attachable.delete`

QuickBooks Delete an attachable

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.attachable.delete({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Category?: string,
>   SyncToken: string,
>   FileAccessUri?: string,
>   ContentType?: string,
>   PlaceName?: string,
>   Size?: number,
>   AttachableRef?: {
>     IncludeOnSend?: boolean,
>     LineInfo?: string,
>     NoRefOnly?: boolean,
>     CustomField?: {
>       DefinitionId: string,
>       StringValue?: string,
>       Type?: StringType | BooleanType | NumberType | DateType,
>       Name?: string
>     }[],
>     Inactive?: boolean,
>     EntityRef?: {
>       type?: string,
>       value: string,
>       name?: string
>     }
>   }[],
>   Long?: string,
>   FileName?: string,
>   Note?: string,
>   Tag?: string,
>   Lat?: string,
>   ThumbnailFileAccessUri?: string,
>   TempDownloadUri?: string,
>   ThumbnailTempDownloadUri?: string,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Attachable` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] Attachable full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   Id: string,
>   domain?: QBO
> }
> ```

***

### download

`attachable.download`

QuickBooks Download an attachment

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.attachable.download({"realmId":"12345678","attachableId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `attachableId` | `string` | Yes | — |

Returns the temporary download URL as text/plain. Intuit states that it expires after 15 minutes. Source: [https://developer.intuit.com/docs/0100\_quickbooks\_online/0200\_dev\_guides/accounting/0050\_attach\_images\_and\_notes](https://developer.intuit.com/docs/0100_quickbooks_online/0200_dev_guides/accounting/0050_attach_images_and_notes)

**Output:** `string`

***

### get

`attachable.get`

QuickBooks Read an attachable

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.attachable.get({"realmId":"12345678","attachableId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `attachableId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Attachable` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Attachable full type
>
> ```ts theme={null}
> {
>   Category?: string,
>   SyncToken?: string,
>   FileAccessUri?: string,
>   ContentType?: string,
>   PlaceName?: string,
>   Size?: number,
>   AttachableRef?: {
>     IncludeOnSend?: boolean,
>     LineInfo?: string,
>     NoRefOnly?: boolean,
>     CustomField?: {
>       DefinitionId: string,
>       StringValue?: string,
>       Type?: StringType | BooleanType | NumberType | DateType,
>       Name?: string
>     }[],
>     Inactive?: boolean,
>     EntityRef?: {
>       type?: string,
>       value: string,
>       name?: string
>     }
>   }[],
>   Long?: string,
>   FileName?: string,
>   Note?: string,
>   Tag?: string,
>   Lat?: string,
>   ThumbnailFileAccessUri?: string,
>   TempDownloadUri?: string,
>   ThumbnailTempDownloadUri?: string,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### list

`attachable.list`

QuickBooks Query an attachable

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.attachable.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   Attachable?: {
>     Category?: string,
>     SyncToken?: string,
>     FileAccessUri?: string,
>     ContentType?: string,
>     PlaceName?: string,
>     Size?: number,
>     AttachableRef?: {
>       IncludeOnSend?: boolean,
>       LineInfo?: string,
>       NoRefOnly?: boolean,
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       Inactive?: boolean,
>       EntityRef?: {
>         type?: string,
>         value: string,
>         name?: string
>       }
>     }[],
>     Long?: string,
>     FileName?: string,
>     Note?: string,
>     Tag?: string,
>     Lat?: string,
>     ThumbnailFileAccessUri?: string,
>     TempDownloadUri?: string,
>     ThumbnailTempDownloadUri?: string,
>     Id: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   }[]
> }
> ```

***

### update

`attachable.update`

QuickBooks Full update an attachable

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.attachable.update({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Category?: string,
>   SyncToken: string,
>   FileAccessUri?: string,
>   ContentType?: string,
>   PlaceName?: string,
>   Size?: number,
>   AttachableRef?: {
>     IncludeOnSend?: boolean,
>     LineInfo?: string,
>     NoRefOnly?: boolean,
>     CustomField?: {
>       DefinitionId: string,
>       StringValue?: string,
>       Type?: StringType | BooleanType | NumberType | DateType,
>       Name?: string
>     }[],
>     Inactive?: boolean,
>     EntityRef?: {
>       type?: string,
>       value: string,
>       name?: string
>     }
>   }[],
>   Long?: string,
>   FileName?: string,
>   Note?: string,
>   Tag?: string,
>   Lat?: string,
>   ThumbnailFileAccessUri?: string,
>   TempDownloadUri?: string,
>   ThumbnailTempDownloadUri?: string,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Attachable` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Attachable full type
>
> ```ts theme={null}
> {
>   Category?: string,
>   SyncToken?: string,
>   FileAccessUri?: string,
>   ContentType?: string,
>   PlaceName?: string,
>   Size?: number,
>   AttachableRef?: {
>     IncludeOnSend?: boolean,
>     LineInfo?: string,
>     NoRefOnly?: boolean,
>     CustomField?: {
>       DefinitionId: string,
>       StringValue?: string,
>       Type?: StringType | BooleanType | NumberType | DateType,
>       Name?: string
>     }[],
>     Inactive?: boolean,
>     EntityRef?: {
>       type?: string,
>       value: string,
>       name?: string
>     }
>   }[],
>   Long?: string,
>   FileName?: string,
>   Note?: string,
>   Tag?: string,
>   Lat?: string,
>   ThumbnailFileAccessUri?: string,
>   TempDownloadUri?: string,
>   ThumbnailTempDownloadUri?: string,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### upload

`attachable.upload`

QuickBooks Upload attachments

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.attachable.upload({"realmId":"12345678","fileName":"receipt.pdf","contentType":"application/pdf","base64Content":"JVBERg==","metadata":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `fileName` | `string` | Yes | — |
| `contentType` | `string` | Yes | — |
| `base64Content` | `string` | Yes | — |
| `metadata` | `object` | No | — |

Upload one base64-encoded file as multipart form data; a request is limited to 100 MB total. Source: [https://developer.intuit.com/docs/0100\_quickbooks\_online/0200\_dev\_guides/accounting/0050\_attach\_images\_and\_notes](https://developer.intuit.com/docs/0100_quickbooks_online/0200_dev_guides/accounting/0050_attach_images_and_notes)

> [accordion] metadata full type
>
> ```ts theme={null}
> {
>   Note?: string,
>   AttachableRef?: {
>     IncludeOnSend?: boolean,
>     LineInfo?: string,
>     NoRefOnly?: boolean,
>     CustomField?: {
>       DefinitionId: string,
>       StringValue?: string,
>       Type?: StringType | BooleanType | NumberType | DateType,
>       Name?: string
>     }[],
>     Inactive?: boolean,
>     EntityRef?: {
>       type?: string,
>       value: string,
>       name?: string
>     }
>   }[],
>   FileName?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `AttachableResponse` | `object[]` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] AttachableResponse full type
>
> ```ts theme={null}
> {
>   Attachable?: {
>     Category?: string,
>     SyncToken?: string,
>     FileAccessUri?: string,
>     ContentType?: string,
>     PlaceName?: string,
>     Size?: number,
>     AttachableRef?: {
>       IncludeOnSend?: boolean,
>       LineInfo?: string,
>       NoRefOnly?: boolean,
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       Inactive?: boolean,
>       EntityRef?: {
>         type?: string,
>         value: string,
>         name?: string
>       }
>     }[],
>     Long?: string,
>     FileName?: string,
>     Note?: string,
>     Tag?: string,
>     Lat?: string,
>     ThumbnailFileAccessUri?: string,
>     TempDownloadUri?: string,
>     ThumbnailTempDownloadUri?: string,
>     Id: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   },
>   Fault?: {
>     type?: string,
>     Error?: {
>       Message?: string,
>       Detail?: string,
>       code?: string,
>       element?: string
>     }[]
>   }
> }[]
> ```

***

## Balance Sheet

### list

`balanceSheet.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.balanceSheet.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   customer?: string,
>   qzurl?: string,
>   accounting_method?: string,
>   end_date?: string,
>   date_macro?: string,
>   adjusted_gain_loss?: string,
>   class?: string,
>   item?: string,
>   sort_order?: string,
>   summarize_column_by?: string,
>   department?: string,
>   vendor?: string,
>   start_date?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Batch

### execute

`batch.execute`

Execute documented QuickBooks Accounting batch items in one request

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.batch.execute({"realmId":"12345678","items":[{"bId":"batch-1","Query":"SELECT * FROM Account"}]});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `items` | `object[]` | Yes | — |

Submit 1–30 strictly modelled create, update, delete, or Query batch items. Use optionsData: void with update for supported void transactions. Execution order is not guaranteed. Source: [https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/batch](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/batch)

> [accordion] items full type
>
> ```ts theme={null}
> (
>   {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     Account: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     Attachable: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     Bill: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     BillPayment: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     Budget: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     ChangeOrder: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     Class: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     CompanyCurrency: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     CompanyInfo: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     CreditCardPayment: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     CreditMemo: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     Customer: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     Department: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     Deposit: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     Employee: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     Estimate: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     Exchangerate: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     InventoryAdjustment: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     Invoice: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     Item: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     JournalEntry: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     Payment: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     PaymentMethod: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     Preferences: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     Purchase: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     PurchaseOrder: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     RefundReceipt: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     SalesReceipt: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     Term: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     TimeActivity: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     Transfer: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     Vendor: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData?: void,
>     VendorCredit: {
>       Id: string,
>       SyncToken: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     Query: string
>   } | {
>     bId: string,
>     operation: create,
>     Account: {
>       AcctNum?: string,
>       TaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       Name: string,
>       AccountType?: Bank | Accounts Receivable | Other Current Asset | Fixed Asset | Other Asset | Accounts Payable | Credit Card | Other Current Liability | Long Term Liability | Equity | Income | Cost of Goods Sold | Expense | Other Income | Other Expense | Non-Posting,
>       AccountSubType?: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Account: {
>       SyncToken: string,
>       SubAccount?: boolean,
>       Classification?: string,
>       FullyQualifiedName?: string,
>       AccountType?: Bank | Accounts Receivable | Other Current Asset | Fixed Asset | Other Asset | Accounts Payable | Credit Card | Other Current Liability | Long Term Liability | Equity | Income | Cost of Goods Sold | Expense | Other Income | Other Expense | Non-Posting,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       CurrentBalanceWithSubAccounts?: number,
>       AcctNum?: string,
>       TaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       ParentRef?: {
>         name?: string,
>         value: string
>       },
>       AccountSubType?: string,
>       CurrentBalance?: number,
>       Description?: string,
>       Active?: boolean,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       Id: string,
>       Name: string
>     }
>   } | {
>     bId: string,
>     operation: create,
>     Attachable: {
>       Note?: string,
>       AttachableRef?: {
>         IncludeOnSend?: boolean,
>         LineInfo?: string,
>         NoRefOnly?: boolean,
>         CustomField?: {
>           DefinitionId: string,
>           StringValue?: string,
>           Type?: StringType | BooleanType | NumberType | DateType,
>           Name?: string
>         }[],
>         Inactive?: boolean,
>         EntityRef?: {
>           type?: string,
>           value: string,
>           name?: string
>         }
>       }[],
>       FileName?: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Attachable: {
>       Category?: string,
>       SyncToken: string,
>       FileAccessUri?: string,
>       ContentType?: string,
>       PlaceName?: string,
>       Size?: number,
>       AttachableRef?: {
>         IncludeOnSend?: boolean,
>         LineInfo?: string,
>         NoRefOnly?: boolean,
>         CustomField?: {
>           DefinitionId: string,
>           StringValue?: string,
>           Type?: StringType | BooleanType | NumberType | DateType,
>           Name?: string
>         }[],
>         Inactive?: boolean,
>         EntityRef?: {
>           type?: string,
>           value: string,
>           name?: string
>         }
>       }[],
>       Long?: string,
>       FileName?: string,
>       Note?: string,
>       Tag?: string,
>       Lat?: string,
>       ThumbnailFileAccessUri?: string,
>       TempDownloadUri?: string,
>       ThumbnailTempDownloadUri?: string,
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     Attachable: {
>       Category?: string,
>       SyncToken: string,
>       FileAccessUri?: string,
>       ContentType?: string,
>       PlaceName?: string,
>       Size?: number,
>       AttachableRef?: {
>         IncludeOnSend?: boolean,
>         LineInfo?: string,
>         NoRefOnly?: boolean,
>         CustomField?: {
>           DefinitionId: string,
>           StringValue?: string,
>           Type?: StringType | BooleanType | NumberType | DateType,
>           Name?: string
>         }[],
>         Inactive?: boolean,
>         EntityRef?: {
>           type?: string,
>           value: string,
>           name?: string
>         }
>       }[],
>       Long?: string,
>       FileName?: string,
>       Note?: string,
>       Tag?: string,
>       Lat?: string,
>       ThumbnailFileAccessUri?: string,
>       TempDownloadUri?: string,
>       ThumbnailTempDownloadUri?: string,
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: create,
>     Bill: {
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       VendorRef: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           Description?: string,
>           DetailType: AccountBasedExpenseLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           Id?: string,
>           AccountBasedExpenseLineDetail: {
>             TaxAmount?: number,
>             TaxInclusiveAmt?: number,
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             AccountRef: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             }
>           }
>         } | {
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Description?: string,
>           ItemBasedExpenseLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             },
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             Qty?: number,
>             UnitPrice?: number
>           },
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           DetailType: ItemBasedExpenseLineDetail,
>           Id?: string
>         }
>       )[]
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Bill: {
>       TxnDate?: string,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       APAccountRef?: {
>         name?: string,
>         value: string
>       },
>       HomeBalance?: number,
>       SalesTermRef?: {
>         name?: string,
>         value: string
>       },
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       DueDate?: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       DocNumber?: string,
>       PrivateNote?: string,
>       VendorRef: {
>         name?: string,
>         value: string
>       },
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           LinkedTxn?: {
>             TxnLineId: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Description?: string,
>           ItemBasedExpenseLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             },
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             Qty?: number,
>             UnitPrice?: number
>           },
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           DetailType: ItemBasedExpenseLineDetail,
>           Id?: string
>         } | {
>           LinkedTxn?: {
>             TxnLineId: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Description?: string,
>           DetailType: AccountBasedExpenseLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           Id?: string,
>           AccountBasedExpenseLineDetail: {
>             TaxAmount?: number,
>             TaxInclusiveAmt?: number,
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             AccountRef: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             }
>           }
>         }
>       )[],
>       Balance?: number,
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       SyncToken: string,
>       ExchangeRate?: number,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       IncludeInAnnualTPAR?: boolean,
>       Id: string
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     Bill: {
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: create,
>     BillPayment: {
>       VendorRef: {
>         name?: string,
>         value: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       TotalAmt: number,
>       Line: {
>         Amount: number,
>         LinkedTxn: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[]
>       }[],
>       PayType: Check | CreditCard,
>       CreditCardPayment?: {
>         CCAccountRef: {
>           name?: string,
>           value: string
>         }
>       },
>       CheckPayment?: {
>         PrintStatus?: NotSet | NeedToPrint | PrintComplete,
>         BankAccountRef: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   } | {
>     bId: string,
>     operation: update,
>     BillPayment: {
>       DocNumber?: string,
>       SyncToken: string,
>       PrivateNote?: string,
>       VendorRef: {
>         name?: string,
>         value: string
>       },
>       Line: {
>         Amount: number,
>         LinkedTxn: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[]
>       }[],
>       TxnDate?: string,
>       TotalAmt: number,
>       ExchangeRate?: number,
>       APAccountRef?: {
>         name?: string,
>         value: string
>       },
>       PayType: Check | CreditCard,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       CheckPayment?: {
>         PrintStatus?: NotSet | NeedToPrint | PrintComplete,
>         BankAccountRef: {
>           name?: string,
>           value: string
>         }
>       },
>       CreditCardPayment?: {
>         CCAccountRef: {
>           name?: string,
>           value: string
>         }
>       },
>       ProcessBillPayment?: boolean,
>       Id: string,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     BillPayment: {
>       SyncToken: string,
>       id: string,
>       sparse: string,
>       Id: string
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     BillPayment: {
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData: void,
>     BillPayment: {
>       DocNumber?: string,
>       SyncToken: string,
>       PrivateNote?: string,
>       VendorRef?: {
>         name?: string,
>         value: string
>       },
>       Line?: {
>         Amount: number,
>         LinkedTxn: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[]
>       }[],
>       TxnDate?: string,
>       TotalAmt?: number,
>       ExchangeRate?: number,
>       APAccountRef?: {
>         name?: string,
>         value: string
>       },
>       PayType?: Check | CreditCard,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       CheckPayment?: {
>         PrintStatus?: NotSet | NeedToPrint | PrintComplete,
>         BankAccountRef: {
>           name?: string,
>           value: string
>         }
>       },
>       CreditCardPayment?: {
>         CCAccountRef: {
>           name?: string,
>           value: string
>         }
>       },
>       ProcessBillPayment?: boolean,
>       Id: string,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: create,
>     Budget: {
>       BudgetDetail?: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         DepartmentRef?: {
>           name?: string,
>           value: string
>         },
>         Amount?: number,
>         BudgetDate?: string,
>         AccountRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }[],
>       BudgetEntryType?: Yearly | Quarterly | Monthly,
>       EndDate: string,
>       Name?: string,
>       StartDate: string,
>       BudgetType?: ProfitAndLoss | BalanceSheet,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[]
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Budget: {
>       SyncToken: string,
>       BudgetEntryType?: Yearly | Quarterly | Monthly,
>       EndDate: string,
>       Name?: string,
>       BudgetDetail?: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         DepartmentRef?: {
>           name?: string,
>           value: string
>         },
>         Amount?: number,
>         BudgetDate?: string,
>         AccountRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }[],
>       StartDate: string,
>       BudgetType?: ProfitAndLoss | BalanceSheet,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       Active?: boolean,
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     Budget: {
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: create,
>     ChangeOrder: {
>       DocNumber?: string,
>       TxnStatus?: string,
>       PrivateNote?: string,
>       TxnDate?: string,
>       BillEmail?: {
>         Address?: string
>       },
>       CustomerMemo?: {
>         value: string
>       },
>       ProjectRef: {
>         name?: string,
>         value: string
>       },
>       PrintStatus?: string,
>       ExpirationDate?: string,
>       Line: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[],
>       CustomerRef: {
>         name?: string,
>         value: string
>       },
>       EmailStatus?: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     ChangeOrder: {
>       TxnDate?: string,
>       PrintStatus?: string,
>       TxnStatus?: string,
>       LinkedTxn: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       TotalAmt?: number,
>       AcceptedDate?: string,
>       ExpirationDate?: string,
>       ApplyTaxAfterDiscount?: boolean,
>       DocNumber?: string,
>       PrivateNote?: string,
>       Line: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[],
>       CustomerMemo?: {
>         value: string
>       },
>       ProjectRef: {
>         name?: string,
>         value: string
>       },
>       CustomerRef: {
>         name?: string,
>         value: string
>       },
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       SyncToken: string,
>       AcceptedBy?: string,
>       TotalCostAmount?: number,
>       EmailStatus?: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       BillEmail?: {
>         Address?: string
>       },
>       Id: string
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     ChangeOrder: {
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: create,
>     Class: {
>       Name: string,
>       ParentRef?: {
>         name?: string,
>         value: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Class: {
>       SyncToken: string,
>       Name: string,
>       FullyQualifiedName?: string,
>       SubClass?: boolean,
>       ParentRef?: {
>         name?: string,
>         value: string
>       },
>       Active?: boolean,
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: create,
>     CompanyCurrency: {
>       Code: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     CompanyCurrency: {
>       SyncToken: string,
>       Code: string,
>       Name?: string,
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       Active?: boolean,
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: update,
>     CompanyInfo: {
>       SyncToken: string,
>       LegalAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       SupportedLanguages?: string,
>       CompanyName?: string,
>       Country?: string,
>       CompanyAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       Email?: {
>         Address?: string
>       },
>       WebAddr?: {
>         URI?: string
>       },
>       NameValue?: {
>         Name?: string,
>         Value?: string
>       }[],
>       FiscalYearStartMonth?: January | February | March | April | May | June | July | August | September | October | November | December,
>       CustomerCommunicationAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       PrimaryPhone?: {
>         FreeFormNumber?: string
>       },
>       LegalName?: string,
>       CompanyStartDate?: string,
>       EmployerId?: string,
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: update,
>     CompanyInfo: {
>       SyncToken: string,
>       LegalAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       SupportedLanguages?: string,
>       CompanyName?: string,
>       Country?: string,
>       CompanyAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       Email?: {
>         Address?: string
>       },
>       WebAddr?: {
>         URI?: string
>       },
>       NameValue?: {
>         Name?: string,
>         Value?: string
>       }[],
>       FiscalYearStartMonth?: January | February | March | April | May | June | July | August | September | October | November | December,
>       CustomerCommunicationAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       PrimaryPhone?: {
>         FreeFormNumber?: string
>       },
>       LegalName?: string,
>       CompanyStartDate?: string,
>       EmployerId?: string,
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: create,
>     CreditCardPayment: {
>       PrivateNote?: string,
>       TxnDate: string,
>       Amount: number,
>       BankAccountRef: {
>         name?: string,
>         value: string
>       },
>       CreditCardAccountRef: {
>         name?: string,
>         value: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: update,
>     CreditCardPayment: {
>       PrivateNote?: string,
>       TxnDate: string,
>       Amount: number,
>       BankAccountRef: {
>         name?: string,
>         value: string
>       },
>       CreditCardAccountRef: {
>         name?: string,
>         value: string
>       },
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     CreditCardPayment: {
>       PrivateNote?: string,
>       TxnDate: string,
>       Amount: number,
>       BankAccountRef: {
>         name?: string,
>         value: string
>       },
>       CreditCardAccountRef: {
>         name?: string,
>         value: string
>       },
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     CreditCardPayment: {
>       SyncToken: string,
>       PrivateNote?: string,
>       VendorRef?: {
>         name?: string,
>         value: string
>       },
>       CreditCardAccountRef: {
>         name?: string,
>         value: string
>       },
>       TxnDate?: string,
>       Memo?: string,
>       PrintStatus?: string,
>       CheckNum?: string,
>       Amount: number,
>       BankAccountRef: {
>         name?: string,
>         value: string
>       },
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: create,
>     CreditMemo: {
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[],
>       CustomerRef: {
>         name?: string,
>         value: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: update,
>     CreditMemo: {
>       TxnDate?: string,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       HomeBalance?: number,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       PrintStatus?: string,
>       SalesTermRef?: {
>         name?: string,
>         value: string
>       },
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       RemainingCredit?: number,
>       ApplyTaxAfterDiscount?: boolean,
>       DocNumber?: string,
>       PrivateNote?: string,
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[],
>       CustomerMemo?: {
>         value: string
>       },
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       TaxExemptionRef?: {
>         name?: string,
>         value: string
>       },
>       Balance?: number,
>       CustomerRef: {
>         name?: string,
>         value: string
>       },
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       SyncToken: string,
>       PaymentMethodRef?: {
>         name?: string,
>         value: string
>       },
>       ExchangeRate?: number,
>       ShipAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       HomeTotalAmt?: number,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       EmailStatus?: string,
>       BillAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       BillEmail?: {
>         Address?: string
>       },
>       Id: string
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     CreditMemo: {
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: create,
>     Customer: {
>       DisplayName?: string,
>       Suffix?: string,
>       Title?: string,
>       MiddleName?: string,
>       FamilyName?: string,
>       GivenName?: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Customer: {
>       PrimaryEmailAddr?: {
>         Address?: string
>       },
>       DisplayName?: string,
>       Title?: string,
>       ResaleNum?: string,
>       SecondaryTaxIdentifier?: string,
>       DefaultTaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       PreferredDeliveryMethod?: string,
>       GivenName?: string,
>       SalesTermRef?: {
>         name?: string,
>         value: string
>       },
>       CustomerTypeRef?: {
>         value: string
>       },
>       FullyQualifiedName?: string,
>       Fax?: {
>         FreeFormNumber?: string
>       },
>       BillWithParent?: boolean,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       Mobile?: {
>         FreeFormNumber?: string
>       },
>       Job?: boolean,
>       BalanceWithJobs?: number,
>       PrimaryPhone?: {
>         FreeFormNumber?: string
>       },
>       OpenBalanceDate?: string,
>       Taxable?: boolean,
>       AlternatePhone?: {
>         FreeFormNumber?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       ParentRef?: {
>         name?: string,
>         value: string
>       },
>       Level?: number,
>       MiddleName?: string,
>       Notes?: string,
>       TaxExemptionReasonId?: string,
>       WebAddr?: {
>         URI?: string
>       },
>       Active?: boolean,
>       CompanyName?: string,
>       Balance?: number,
>       SyncToken: string,
>       ShipAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       PaymentMethodRef?: {
>         name?: string,
>         value: string
>       },
>       Suffix?: string,
>       IsProject?: boolean,
>       Source?: string,
>       FamilyName?: string,
>       PrimaryTaxIdentifier?: string,
>       PrintOnCheckName?: string,
>       BillAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       Id: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Customer: {
>       PrimaryEmailAddr?: {
>         Address?: string
>       },
>       DisplayName?: string,
>       Title?: string,
>       ResaleNum?: string,
>       SecondaryTaxIdentifier?: string,
>       DefaultTaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       PreferredDeliveryMethod?: string,
>       GivenName?: string,
>       SalesTermRef?: {
>         name?: string,
>         value: string
>       },
>       CustomerTypeRef?: {
>         value: string
>       },
>       FullyQualifiedName?: string,
>       Fax?: {
>         FreeFormNumber?: string
>       },
>       BillWithParent?: boolean,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       Mobile?: {
>         FreeFormNumber?: string
>       },
>       Job?: boolean,
>       BalanceWithJobs?: number,
>       PrimaryPhone?: {
>         FreeFormNumber?: string
>       },
>       OpenBalanceDate?: string,
>       Taxable?: boolean,
>       AlternatePhone?: {
>         FreeFormNumber?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       ParentRef?: {
>         name?: string,
>         value: string
>       },
>       Level?: number,
>       MiddleName?: string,
>       Notes?: string,
>       TaxExemptionReasonId?: string,
>       WebAddr?: {
>         URI?: string
>       },
>       Active?: boolean,
>       CompanyName?: string,
>       Balance?: number,
>       SyncToken: string,
>       ShipAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       PaymentMethodRef?: {
>         name?: string,
>         value: string
>       },
>       Suffix?: string,
>       IsProject?: boolean,
>       Source?: string,
>       FamilyName?: string,
>       PrimaryTaxIdentifier?: string,
>       PrintOnCheckName?: string,
>       BillAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       Id: string
>     }
>   } | {
>     bId: string,
>     operation: create,
>     Department: {
>       Name: string,
>       ParentRef?: {
>         name?: string,
>         value: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Department: {
>       SyncToken: string,
>       Name: string,
>       FullyQualifiedName?: string,
>       SubDepartment?: boolean,
>       ParentRef?: {
>         name?: string,
>         value: string
>       },
>       Active?: boolean,
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: create,
>     Deposit: {
>       ExchangeRate?: number,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       DepositToAccountRef?: {
>         name?: string,
>         value: string
>       },
>       Line?: (
>         {
>           Description?: string,
>           DetailType: DepositLineDetail,
>           ProjectRef?: {
>             name?: string,
>             value: string
>           },
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           CustomField?: {
>             DefinitionId: string,
>             StringValue?: string,
>             Type?: StringType | BooleanType | NumberType | DateType,
>             Name?: string
>           }[],
>           Id?: string,
>           DepositLineDetail: {
>             PaymentMethodRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             CheckNum?: string,
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             TaxApplicableOn?: Purchase | Sales,
>             TxnType?: APCreditCard | ARRefundCreditCard | Bill | BillPaymentCheck | BuildAssembly | CarryOver | CashPurchase | Charge | Check | CreditCardPayment | CreditMemo | Deposit | EFPLiabilityCheck | EFTBillPayment | EFTRefund | Estimate | InventoryAdjustment | InventoryTransfer | Invoice | ItemReceipt | JournalEntry | LiabilityAdjustment | Paycheck | PayrollLiabilityCheck | PurchaseOrder | PriorPayment | ReceivePayment | RefundCheck | ReimburseCharge | SalesOrder | SalesReceipt | SalesTaxPaymentCheck | Transfer | TimeActivity | VendorCredit | YTDAdjustment,
>             AccountRef: {
>               name?: string,
>               value: string
>             },
>             Entity?: {
>               name?: string,
>               value: string
>             }
>           }
>         } | {
>           Amount: number,
>           LinkedTxn: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[]
>         }
>       )[]
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Deposit: {
>       SyncToken: string,
>       PrivateNote?: string,
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       DepositToAccountRef: {
>         name?: string,
>         value: string
>       },
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       ExchangeRate?: number,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       HomeTotalAmt?: number,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       TxnSource?: string,
>       TxnDate?: string,
>       Line: (
>         {
>           Amount: number,
>           LinkedTxn: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[]
>         } | {
>           Description?: string,
>           DetailType: DepositLineDetail,
>           ProjectRef?: {
>             name?: string,
>             value: string
>           },
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           CustomField?: {
>             DefinitionId: string,
>             StringValue?: string,
>             Type?: StringType | BooleanType | NumberType | DateType,
>             Name?: string
>           }[],
>           Id?: string,
>           DepositLineDetail: {
>             PaymentMethodRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             CheckNum?: string,
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             TaxApplicableOn?: Purchase | Sales,
>             TxnType?: APCreditCard | ARRefundCreditCard | Bill | BillPaymentCheck | BuildAssembly | CarryOver | CashPurchase | Charge | Check | CreditCardPayment | CreditMemo | Deposit | EFPLiabilityCheck | EFTBillPayment | EFTRefund | Estimate | InventoryAdjustment | InventoryTransfer | Invoice | ItemReceipt | JournalEntry | LiabilityAdjustment | Paycheck | PayrollLiabilityCheck | PurchaseOrder | PriorPayment | ReceivePayment | RefundCheck | ReimburseCharge | SalesOrder | SalesReceipt | SalesTaxPaymentCheck | Transfer | TimeActivity | VendorCredit | YTDAdjustment,
>             AccountRef: {
>               name?: string,
>               value: string
>             },
>             Entity?: {
>               name?: string,
>               value: string
>             }
>           }
>         }
>       )[],
>       CashBack?: {
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         Amount: string,
>         Memo?: string
>       },
>       Id: string,
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Deposit: {
>       SyncToken: string,
>       PrivateNote?: string,
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       DepositToAccountRef: {
>         name?: string,
>         value: string
>       },
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       ExchangeRate?: number,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       HomeTotalAmt?: number,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       TxnSource?: string,
>       TxnDate?: string,
>       Line: (
>         {
>           Amount: number,
>           LinkedTxn: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[]
>         } | {
>           Description?: string,
>           DetailType: DepositLineDetail,
>           ProjectRef?: {
>             name?: string,
>             value: string
>           },
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           CustomField?: {
>             DefinitionId: string,
>             StringValue?: string,
>             Type?: StringType | BooleanType | NumberType | DateType,
>             Name?: string
>           }[],
>           Id?: string,
>           DepositLineDetail: {
>             PaymentMethodRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             CheckNum?: string,
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             TaxApplicableOn?: Purchase | Sales,
>             TxnType?: APCreditCard | ARRefundCreditCard | Bill | BillPaymentCheck | BuildAssembly | CarryOver | CashPurchase | Charge | Check | CreditCardPayment | CreditMemo | Deposit | EFPLiabilityCheck | EFTBillPayment | EFTRefund | Estimate | InventoryAdjustment | InventoryTransfer | Invoice | ItemReceipt | JournalEntry | LiabilityAdjustment | Paycheck | PayrollLiabilityCheck | PurchaseOrder | PriorPayment | ReceivePayment | RefundCheck | ReimburseCharge | SalesOrder | SalesReceipt | SalesTaxPaymentCheck | Transfer | TimeActivity | VendorCredit | YTDAdjustment,
>             AccountRef: {
>               name?: string,
>               value: string
>             },
>             Entity?: {
>               name?: string,
>               value: string
>             }
>           }
>         }
>       )[],
>       CashBack?: {
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         Amount: string,
>         Memo?: string
>       },
>       Id: string,
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     Deposit: {
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: create,
>     Employee: {
>       GivenName?: string,
>       PrimaryAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       FamilyName?: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Employee: {
>       PrimaryEmailAddr?: {
>         Address?: string
>       },
>       DisplayName?: string,
>       Title?: string,
>       BillableTime?: boolean,
>       GivenName?: string,
>       V4IDPseudonym?: string,
>       BirthDate?: string,
>       MiddleName?: string,
>       SSN?: string,
>       PrimaryAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       PrimaryPhone?: {
>         FreeFormNumber?: string
>       },
>       Active?: boolean,
>       ReleasedDate?: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       CostRate?: number,
>       Mobile?: {
>         FreeFormNumber?: string
>       },
>       Gender?: string,
>       HiredDate?: string,
>       BillRate?: number,
>       Organization?: boolean,
>       SyncToken: string,
>       Suffix?: string,
>       FamilyName?: string,
>       PrintOnCheckName?: string,
>       EmployeeNumber?: string,
>       Id: string
>     }
>   } | {
>     bId: string,
>     operation: create,
>     Estimate: {
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[],
>       CustomerRef: {
>         name?: string,
>         value: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Estimate: {
>       TxnDate?: string,
>       ShipFromAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       ShipDate?: string,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       PrintStatus?: string,
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       SalesTermRef?: {
>         name?: string,
>         value: string
>       },
>       TxnStatus?: string,
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       AcceptedDate?: string,
>       ExpirationDate?: string,
>       DueDate?: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       DocNumber?: string,
>       PrivateNote?: string,
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       Line?: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[],
>       CustomerMemo?: {
>         value: string
>       },
>       EmailStatus?: string,
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       TaxExemptionRef?: {
>         name?: string,
>         value: string
>       },
>       CustomerRef: {
>         name?: string,
>         value: string
>       },
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       SyncToken: string,
>       AcceptedBy?: string,
>       ExchangeRate?: number,
>       ShipAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       HomeTotalAmt?: number,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       ShipMethodRef?: {
>         name?: string,
>         value: string
>       },
>       BillAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       FreeFormAddress?: boolean,
>       ApplyTaxAfterDiscount?: boolean,
>       BillEmail?: {
>         Address?: string
>       },
>       Id: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Estimate: {
>       TxnDate?: string,
>       ShipFromAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       ShipDate?: string,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       PrintStatus?: string,
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       SalesTermRef?: {
>         name?: string,
>         value: string
>       },
>       TxnStatus?: string,
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       AcceptedDate?: string,
>       ExpirationDate?: string,
>       DueDate?: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       DocNumber?: string,
>       PrivateNote?: string,
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       Line?: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[],
>       CustomerMemo?: {
>         value: string
>       },
>       EmailStatus?: string,
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       TaxExemptionRef?: {
>         name?: string,
>         value: string
>       },
>       CustomerRef: {
>         name?: string,
>         value: string
>       },
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       SyncToken: string,
>       AcceptedBy?: string,
>       ExchangeRate?: number,
>       ShipAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       HomeTotalAmt?: number,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       ShipMethodRef?: {
>         name?: string,
>         value: string
>       },
>       BillAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       FreeFormAddress?: boolean,
>       ApplyTaxAfterDiscount?: boolean,
>       BillEmail?: {
>         Address?: string
>       },
>       Id: string
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     Estimate: {
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Exchangerate: {
>       SyncToken: string,
>       AsOfDate?: string,
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       SourceCurrencyCode?: string,
>       Rate?: number,
>       TargetCurrencyCode?: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       Id: string
>     }
>   } | {
>     bId: string,
>     operation: create,
>     InventoryAdjustment: {
>       DocNumber: string,
>       AdjustAccountRef: {
>         name?: string,
>         value: string
>       },
>       PrivateNote?: string,
>       Line: {
>         DetailType?: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         ItemAdjustmentLineDetail: {
>           QtyDiff: number,
>           ItemRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         Id?: number
>       }[],
>       TxnDate: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     InventoryAdjustment: {
>       DocNumber?: string,
>       AdjustAccountRef: {
>         name?: string,
>         value: string
>       },
>       PrivateNote?: string,
>       Line: {
>         DetailType?: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         ItemAdjustmentLineDetail: {
>           QtyDiff: number,
>           ItemRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         Id?: number
>       }[],
>       TxnDate: string,
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     InventoryAdjustment: {
>       SyncToken: string,
>       id: string,
>       Id: string
>     }
>   } | {
>     bId: string,
>     operation: create,
>     Invoice: {
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       CustomerRef: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[]
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Invoice: {
>       TxnDate?: string,
>       ShipFromAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       HomeBalance?: number,
>       ShipDate?: string,
>       TrackingNum?: string,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       PrintStatus?: string,
>       EmailStatus?: string,
>       SalesTermRef?: {
>         name?: string,
>         value: string
>       },
>       DeliveryInfo?: {
>         DeliveryType?: Email | Tradeshift,
>         DeliveryTime?: string
>       },
>       TxnSource?: string,
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       DepositToAccountRef?: {
>         name?: string,
>         value: string
>       },
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       AllowOnlineAffirmPayment?: boolean,
>       InvoiceLink?: string,
>       AllowOnlineACHPayment?: boolean,
>       TransactionLocationType?: string,
>       DueDate?: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       DocNumber?: string,
>       PrivateNote?: string,
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[],
>       BillEmailCc?: {
>         Address?: string
>       },
>       CustomerMemo?: {
>         value: string
>       },
>       AllowOnlinePayPalPayment?: boolean,
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       ExchangeRate?: number,
>       TaxExemptionRef?: {
>         name?: string,
>         value: string
>       },
>       Deposit?: number,
>       Balance?: number,
>       CustomerRef: {
>         name?: string,
>         value: string
>       },
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       AllowOnlineCreditCardPayment?: boolean,
>       SyncToken: string,
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       ShipAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       HomeTotalAmt?: number,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       BillEmailBcc?: {
>         Address?: string
>       },
>       ShipMethodRef?: {
>         name?: string,
>         value: string
>       },
>       BillAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       FreeFormAddress?: boolean,
>       ApplyTaxAfterDiscount?: boolean,
>       BillEmail?: {
>         Address?: string
>       },
>       Id: string,
>       AllowOnlinePayment?: boolean,
>       AllowIPNPayment?: boolean
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Invoice: {
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       CustomerRef: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[],
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     Invoice: {
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     Invoice: {
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData: void,
>     Invoice: {
>       TxnDate?: string,
>       ShipFromAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       HomeBalance?: number,
>       ShipDate?: string,
>       TrackingNum?: string,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       PrintStatus?: string,
>       EmailStatus?: string,
>       SalesTermRef?: {
>         name?: string,
>         value: string
>       },
>       DeliveryInfo?: {
>         DeliveryType?: Email | Tradeshift,
>         DeliveryTime?: string
>       },
>       TxnSource?: string,
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       DepositToAccountRef?: {
>         name?: string,
>         value: string
>       },
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       AllowOnlineAffirmPayment?: boolean,
>       InvoiceLink?: string,
>       AllowOnlineACHPayment?: boolean,
>       TransactionLocationType?: string,
>       DueDate?: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       DocNumber?: string,
>       PrivateNote?: string,
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       Line?: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[],
>       BillEmailCc?: {
>         Address?: string
>       },
>       CustomerMemo?: {
>         value: string
>       },
>       AllowOnlinePayPalPayment?: boolean,
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       ExchangeRate?: number,
>       TaxExemptionRef?: {
>         name?: string,
>         value: string
>       },
>       Deposit?: number,
>       Balance?: number,
>       CustomerRef?: {
>         name?: string,
>         value: string
>       },
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       AllowOnlineCreditCardPayment?: boolean,
>       SyncToken: string,
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       ShipAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       HomeTotalAmt?: number,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       BillEmailBcc?: {
>         Address?: string
>       },
>       ShipMethodRef?: {
>         name?: string,
>         value: string
>       },
>       BillAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       FreeFormAddress?: boolean,
>       ApplyTaxAfterDiscount?: boolean,
>       BillEmail?: {
>         Address?: string
>       },
>       Id: string,
>       AllowOnlinePayment?: boolean,
>       AllowIPNPayment?: boolean,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: create,
>     Item: {
>       QtyOnHand?: number,
>       Name: string,
>       Type?: string,
>       IncomeAccountRef?: {
>         name?: string,
>         value: string
>       },
>       AssetAccountRef?: {
>         name?: string,
>         value: string
>       },
>       InvStartDate?: string,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       ExpenseAccountRef?: {
>         name?: string,
>         value: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: create,
>     Item: {
>       SubItem?: boolean,
>       Type: Category,
>       Name: string,
>       ParentRef?: {
>         name?: string,
>         value: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Item: {
>       Sku?: string,
>       SalesTaxIncluded?: boolean,
>       TrackQtyOnHand?: boolean,
>       SalesTaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       Source?: string,
>       InvStartDate?: string,
>       Type?: string,
>       PurchaseTaxIncluded?: boolean,
>       FullyQualifiedName?: string,
>       Description?: string,
>       SubItem?: boolean,
>       Taxable?: boolean,
>       ReorderPoint?: number,
>       PurchaseDesc?: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       PrefVendorRef?: {
>         name?: string,
>         value: string
>       },
>       Name: string,
>       Level?: number,
>       IncomeAccountRef?: {
>         name?: string,
>         value: string
>       },
>       Active?: boolean,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       ExpenseAccountRef?: {
>         name?: string,
>         value: string
>       },
>       TaxClassificationRef?: {
>         name?: string,
>         value: string
>       },
>       PurchaseTaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       SyncToken: string,
>       PurchaseCost?: number,
>       QtyOnHand?: number,
>       AssetAccountRef?: {
>         name?: string,
>         value: string
>       },
>       ParentRef?: {
>         name?: string,
>         value: string
>       },
>       UnitPrice?: number,
>       Id: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Item: {
>       SyncToken: string,
>       Name: string,
>       Level?: number,
>       FullyQualifiedName?: string,
>       SubItem?: boolean,
>       ParentRef?: {
>         name?: string,
>         value: string
>       },
>       Active?: boolean,
>       Type: string,
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: create,
>     JournalEntry: {
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       Line: {
>         Description?: string,
>         JournalEntryLineDetail: {
>           TaxAmount?: number,
>           TaxInclusiveAmt?: number,
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           DepartmentRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           BillableStatus?: Billable | NotBillable | HasBeenBilled,
>           TaxApplicableOn?: Purchase | Sales,
>           PostingType: Credit | Debit,
>           AccountRef: {
>             name?: string,
>             value: string
>           },
>           Entity?: {
>             Type?: Customer | Employee | Job | Other | Vendor,
>             EntityRef: {
>               name?: string,
>               value: string
>             }
>           }
>         },
>         DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>         ProjectRef?: {
>           name?: string,
>           value: string
>         },
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LineNum?: number,
>         Amount: number,
>         Id?: string
>       }[]
>     }
>   } | {
>     bId: string,
>     operation: update,
>     JournalEntry: {
>       DocNumber?: string,
>       SyncToken: string,
>       PrivateNote?: string,
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       TxnDate?: string,
>       TotalAmt?: number,
>       ExchangeRate?: number,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       TaxRateRef?: {
>         name?: string,
>         value: string
>       },
>       HomeTotalAmt?: number,
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       Adjustment?: boolean,
>       Id: string,
>       Line: {
>         Description?: string,
>         JournalEntryLineDetail: {
>           TaxAmount?: number,
>           TaxInclusiveAmt?: number,
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           DepartmentRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           BillableStatus?: Billable | NotBillable | HasBeenBilled,
>           TaxApplicableOn?: Purchase | Sales,
>           PostingType: Credit | Debit,
>           AccountRef: {
>             name?: string,
>             value: string
>           },
>           Entity?: {
>             Type?: Customer | Employee | Job | Other | Vendor,
>             EntityRef: {
>               name?: string,
>               value: string
>             }
>           }
>         },
>         DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>         ProjectRef?: {
>           name?: string,
>           value: string
>         },
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LineNum?: number,
>         Amount: number,
>         Id?: string
>       }[],
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: update,
>     JournalEntry: {
>       DocNumber?: string,
>       SyncToken: string,
>       PrivateNote?: string,
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       TxnDate?: string,
>       TotalAmt?: number,
>       ExchangeRate?: number,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       TaxRateRef?: {
>         name?: string,
>         value: string
>       },
>       HomeTotalAmt?: number,
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       Adjustment?: boolean,
>       Id: string,
>       Line: {
>         Description?: string,
>         JournalEntryLineDetail: {
>           TaxAmount?: number,
>           TaxInclusiveAmt?: number,
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           DepartmentRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           BillableStatus?: Billable | NotBillable | HasBeenBilled,
>           TaxApplicableOn?: Purchase | Sales,
>           PostingType: Credit | Debit,
>           AccountRef: {
>             name?: string,
>             value: string
>           },
>           Entity?: {
>             Type?: Customer | Employee | Job | Other | Vendor,
>             EntityRef: {
>               name?: string,
>               value: string
>             }
>           }
>         },
>         DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>         ProjectRef?: {
>           name?: string,
>           value: string
>         },
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LineNum?: number,
>         Amount: number,
>         Id?: string
>       }[],
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     JournalEntry: {
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: create,
>     Payment: {
>       TotalAmt: number,
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       CustomerRef: {
>         name?: string,
>         value: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       Line?: {
>         Amount: number,
>         LinkedTxn: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[]
>       }[]
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Payment: {
>       SyncToken: string,
>       PrivateNote?: string,
>       PaymentMethodRef?: {
>         name?: string,
>         value: string
>       },
>       UnappliedAmt?: number,
>       DepositToAccountRef?: {
>         name?: string,
>         value: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       TotalAmt?: number,
>       ExchangeRate?: number,
>       Line?: {
>         Amount: number,
>         LinkedTxn: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[]
>       }[],
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       TxnSource?: string,
>       PaymentRefNum?: string,
>       TxnDate?: string,
>       CreditCardPayment?: {
>         CreditChargeResponse?: {
>           Status?: Completed | Voided | Unknown,
>           AuthCode?: string,
>           TxnAuthorizationTime?: string,
>           CCTransId?: string
>         },
>         CreditChargeInfo?: {
>           CcExpiryMonth?: number,
>           ProcessPayment?: boolean,
>           PostalCode?: string,
>           Amount?: number,
>           NameOnAcct?: string,
>           CcExpiryYear?: number,
>           Type?: string,
>           BillAddrStreet?: string
>         }
>       },
>       TaxExemptionRef?: {
>         name?: string,
>         value: string
>       },
>       CustomerRef: {
>         name?: string,
>         value: string
>       },
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     Payment: {
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     Payment: {
>       SyncToken: string,
>       id: string,
>       sparse: string,
>       Id: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData: void,
>     Payment: {
>       SyncToken: string,
>       PrivateNote?: string,
>       PaymentMethodRef?: {
>         name?: string,
>         value: string
>       },
>       UnappliedAmt?: number,
>       DepositToAccountRef?: {
>         name?: string,
>         value: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       TotalAmt?: number,
>       ExchangeRate?: number,
>       Line?: {
>         Amount: number,
>         LinkedTxn: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[]
>       }[],
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       TxnSource?: string,
>       PaymentRefNum?: string,
>       TxnDate?: string,
>       CreditCardPayment?: {
>         CreditChargeResponse?: {
>           Status?: Completed | Voided | Unknown,
>           AuthCode?: string,
>           TxnAuthorizationTime?: string,
>           CCTransId?: string
>         },
>         CreditChargeInfo?: {
>           CcExpiryMonth?: number,
>           ProcessPayment?: boolean,
>           PostalCode?: string,
>           Amount?: number,
>           NameOnAcct?: string,
>           CcExpiryYear?: number,
>           Type?: string,
>           BillAddrStreet?: string
>         }
>       },
>       TaxExemptionRef?: {
>         name?: string,
>         value: string
>       },
>       CustomerRef?: {
>         name?: string,
>         value: string
>       },
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: create,
>     PaymentMethod: {
>       Name: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     PaymentMethod: {
>       SyncToken: string,
>       Name: string,
>       Active?: boolean,
>       Type?: string,
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Preferences: {
>       EmailMessagesPrefs?: {
>         InvoiceMessage?: {
>           Message?: string,
>           Subject?: string
>         },
>         EstimateMessage?: {
>           Message?: string,
>           Subject?: string
>         },
>         SalesReceiptMessage?: {
>           Message?: string,
>           Subject?: string
>         },
>         StatementMessage?: {
>           Message?: string,
>           Subject?: string
>         }
>       },
>       SyncToken: string,
>       ProductAndServicesPrefs?: {
>         RevenueRecognitionEnabled?: boolean,
>         RecognitionFrequencyType?: string,
>         ForSales?: boolean,
>         QuantityOnHand?: boolean,
>         QuantityWithPriceAndRate?: boolean,
>         ForPurchase?: boolean
>       },
>       ReportPrefs?: {
>         ReportBasis?: Accrual | Cash,
>         CalcAgingReportFromTxnDate?: boolean
>       },
>       AccountingInfoPrefs?: {
>         FirstMonthOfFiscalYear?: January | February | March | April | May | June | July | August | September | October | November | December,
>         UseAccountNumbers?: boolean,
>         TaxYearMonth?: string,
>         ClassTrackingPerTxn?: boolean,
>         TrackDepartments?: boolean,
>         TaxForm?: string,
>         CustomerTerminology?: string,
>         BookCloseDate?: string,
>         DepartmentTerminology?: string,
>         ClassTrackingPerTxnLine?: boolean
>       },
>       SalesFormsPrefs?: {
>         SalesEmailBcc?: {
>           Address?: string
>         },
>         AllowServiceDate?: boolean,
>         EstimateMessage?: string,
>         EmailCopyToCompany?: boolean,
>         DefaultCustomerMessage?: string,
>         AllowShipping?: boolean,
>         SalesEmailCc?: {
>           Address?: string
>         },
>         DefaultDiscountAccount?: boolean,
>         IPNSupportEnabled?: boolean,
>         ETransactionPaymentEnabled?: boolean,
>         DefaultTerms?: {
>           name?: string,
>           value: string
>         },
>         UsingProgressInvoicing?: boolean,
>         AllowDeposit?: boolean,
>         UsingPriceLevels?: boolean,
>         DefaultShippingAccount?: boolean,
>         ETransactionAttachPDF?: boolean,
>         CustomTxnNumbers?: boolean,
>         ETransactionEnabledStatus?: string,
>         AllowEstimates?: boolean,
>         AllowDiscount?: boolean,
>         CustomField?: {
>           DefinitionId: string,
>           StringValue?: string,
>           Type?: StringType | BooleanType | NumberType | DateType,
>           Name?: string
>         }[],
>         AutoApplyCredit?: boolean
>       },
>       VendorAndPurchasesPrefs?: {
>         DefaultMarkupAccount?: {
>           name?: string,
>           value: string
>         },
>         TrackingByCustomer?: boolean,
>         POCustomField?: {
>           DefinitionId: string,
>           StringValue?: string,
>           Type?: StringType | BooleanType | NumberType | DateType,
>           Name?: string
>         }[],
>         DefaultTerms?: {
>           name?: string,
>           value: string
>         },
>         BillableExpenseTracking?: boolean,
>         DefaultMarkup?: number,
>         TPAREnabled?: boolean
>       },
>       TaxPrefs?: {
>         PartnerTaxEnabled?: boolean,
>         TaxGroupCodeRef?: string,
>         UsingSalesTax?: boolean
>       },
>       OtherPrefs?: {
>         NameValue?: {
>           Name?: string,
>           Value?: string
>         }[]
>       },
>       TimeTrackingPrefs?: {
>         WorkWeekStartDate?: Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday,
>         MarkTimeEntriesBillable?: boolean,
>         ShowBillRateToAll?: boolean,
>         UsingSalesTax?: boolean,
>         BillCustomers?: boolean
>       },
>       CurrencyPrefs?: {
>         HomeCurrency?: string,
>         MultiCurrencyEnabled?: boolean
>       },
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: create,
>     Purchase: {
>       PaymentType: string,
>       AccountRef: {
>         name?: string,
>         value: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           Description?: string,
>           DetailType: AccountBasedExpenseLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           Id?: string,
>           AccountBasedExpenseLineDetail: {
>             TaxAmount?: number,
>             TaxInclusiveAmt?: number,
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             AccountRef: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             }
>           }
>         } | {
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Description?: string,
>           ItemBasedExpenseLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             },
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             Qty?: number,
>             UnitPrice?: number
>           },
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           DetailType: ItemBasedExpenseLineDetail,
>           Id?: string
>         }
>       )[]
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Purchase: {
>       TxnDate?: string,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       PrintStatus?: string,
>       RemitToAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       TxnSource?: string,
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       DocNumber?: string,
>       PrivateNote?: string,
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Description?: string,
>           ItemBasedExpenseLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             },
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             Qty?: number,
>             UnitPrice?: number
>           },
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           DetailType: ItemBasedExpenseLineDetail,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: AccountBasedExpenseLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           Id?: string,
>           AccountBasedExpenseLineDetail: {
>             TaxAmount?: number,
>             TaxInclusiveAmt?: number,
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             AccountRef: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             }
>           }
>         }
>       )[],
>       Credit?: boolean,
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       SyncToken: string,
>       PaymentMethodRef?: {
>         name?: string,
>         value: string
>       },
>       PurchaseEx?: Record<string, any>,
>       ExchangeRate?: number,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       PaymentType: string,
>       EntityRef?: {
>         name?: string,
>         value: string
>       },
>       IncludeInAnnualTPAR?: boolean,
>       AccountRef: {
>         name?: string,
>         value: string
>       },
>       Id: string
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     Purchase: {
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: create,
>     PurchaseOrder: {
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       APAccountRef: {
>         name?: string,
>         value: string
>       },
>       VendorRef: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Description?: string,
>           ItemBasedExpenseLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             },
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             Qty?: number,
>             UnitPrice?: number
>           },
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           DetailType: ItemBasedExpenseLineDetail,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: AccountBasedExpenseLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           Id?: string,
>           AccountBasedExpenseLineDetail: {
>             TaxAmount?: number,
>             TaxInclusiveAmt?: number,
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             AccountRef: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             }
>           }
>         }
>       )[]
>     }
>   } | {
>     bId: string,
>     operation: update,
>     PurchaseOrder: {
>       TxnDate?: string,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       APAccountRef: {
>         name?: string,
>         value: string
>       },
>       POEmail?: {
>         Address?: string
>       },
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       SalesTermRef?: {
>         name?: string,
>         value: string
>       },
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       Memo?: string,
>       POStatus?: string,
>       DueDate?: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       DocNumber?: string,
>       PrivateNote?: string,
>       VendorRef: {
>         name?: string,
>         value: string
>       },
>       ShipMethodRef?: {
>         name?: string,
>         value: string
>       },
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Description?: string,
>           ItemBasedExpenseLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             },
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             Qty?: number,
>             UnitPrice?: number
>           },
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           DetailType: ItemBasedExpenseLineDetail,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: AccountBasedExpenseLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           Id?: string,
>           AccountBasedExpenseLineDetail: {
>             TaxAmount?: number,
>             TaxInclusiveAmt?: number,
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             AccountRef: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             }
>           }
>         }
>       )[],
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       SyncToken: string,
>       ShipTo?: {
>         name?: string,
>         value: string
>       },
>       ExchangeRate?: number,
>       ShipAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       VendorAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       EmailStatus?: string,
>       Id: string
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     PurchaseOrder: {
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: create,
>     RecurringTransaction: {
>       Bill?: {
>         RecurringInfo: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         }
>       },
>       CreditMemo?: {
>         RecurringInfo: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         }
>       },
>       Deposit?: {
>         RecurringInfo: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         }
>       },
>       Estimate?: {
>         RecurringInfo: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         }
>       },
>       Invoice?: {
>         RecurringInfo: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         }
>       },
>       JournalEntry?: {
>         RecurringInfo: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         }
>       },
>       Purchase?: {
>         RecurringInfo: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         }
>       },
>       PurchaseOrder?: {
>         RecurringInfo: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         }
>       },
>       RefundReceipt?: {
>         RecurringInfo: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         }
>       },
>       SalesReceipt?: {
>         RecurringInfo: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         }
>       },
>       Transfer?: {
>         RecurringInfo: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         }
>       },
>       VendorCredit?: {
>         RecurringInfo: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         }
>       }
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     RecurringTransaction: {
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: create,
>     RefundReceipt: {
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       DepositToAccountRef: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[]
>     }
>   } | {
>     bId: string,
>     operation: update,
>     RefundReceipt: {
>       TxnDate?: string,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       HomeBalance?: number,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       PrintStatus?: string,
>       PaymentRefNum?: string,
>       CheckPayment?: {
>         CheckNum?: string,
>         Status?: string,
>         NameOnAcct?: string,
>         AcctNum?: string,
>         BankName?: string
>       },
>       TxnSource?: string,
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       DocNumber?: string,
>       PrivateNote?: string,
>       DepositToAccountRef: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[],
>       CustomerMemo?: {
>         value: string
>       },
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       TaxExemptionRef?: {
>         name?: string,
>         value: string
>       },
>       CreditCardPayment?: {
>         CreditChargeResponse?: {
>           Status?: Completed | Voided | Unknown,
>           AuthCode?: string,
>           TxnAuthorizationTime?: string,
>           CCTransId?: string
>         },
>         CreditChargeInfo?: {
>           CcExpiryMonth?: number,
>           ProcessPayment?: boolean,
>           PostalCode?: string,
>           Amount?: number,
>           NameOnAcct?: string,
>           CcExpiryYear?: number,
>           Type?: string,
>           BillAddrStreet?: string
>         }
>       },
>       Balance?: number,
>       CustomerRef?: {
>         name?: string,
>         value: string
>       },
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       SyncToken: string,
>       PaymentMethodRef?: {
>         name?: string,
>         value: string
>       },
>       ExchangeRate?: number,
>       ShipAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       Id: string,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       PaymentType?: Cash | Check | CreditCard | Expense | Other,
>       BillAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       ApplyTaxAfterDiscount?: boolean,
>       BillEmail?: {
>         Address?: string
>       },
>       HomeTotalAmt?: number
>     }
>   } | {
>     bId: string,
>     operation: update,
>     RefundReceipt: {
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       DepositToAccountRef: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[],
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     RefundReceipt: {
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: create,
>     SalesReceipt: {
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[]
>     }
>   } | {
>     bId: string,
>     operation: update,
>     SalesReceipt: {
>       TxnDate?: string,
>       ShipFromAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       HomeBalance?: number,
>       ShipDate?: string,
>       TrackingNum?: string,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       PrintStatus?: string,
>       PaymentRefNum?: string,
>       DeliveryInfo?: {
>         DeliveryType?: Email | Tradeshift,
>         DeliveryTime?: string
>       },
>       TxnSource?: string,
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       ApplyTaxAfterDiscount?: boolean,
>       DocNumber?: string,
>       PrivateNote?: string,
>       DepositToAccountRef?: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[],
>       CustomerMemo?: {
>         value: string
>       },
>       EmailStatus?: string,
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       CreditCardPayment?: {
>         CreditChargeResponse?: {
>           Status?: Completed | Voided | Unknown,
>           AuthCode?: string,
>           TxnAuthorizationTime?: string,
>           CCTransId?: string
>         },
>         CreditChargeInfo?: {
>           CcExpiryMonth?: number,
>           ProcessPayment?: boolean,
>           PostalCode?: string,
>           Amount?: number,
>           NameOnAcct?: string,
>           CcExpiryYear?: number,
>           Type?: string,
>           BillAddrStreet?: string
>         }
>       },
>       Balance?: number,
>       CustomerRef: {
>         name?: string,
>         value: string
>       },
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       SyncToken: string,
>       PaymentMethodRef?: {
>         name?: string,
>         value: string
>       },
>       ExchangeRate?: number,
>       ShipAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       HomeTotalAmt?: number,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       ShipMethodRef?: {
>         name?: string,
>         value: string
>       },
>       BillAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       FreeFormAddress?: boolean,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       BillEmail?: {
>         Address?: string
>       },
>       Id: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     SalesReceipt: {
>       TxnDate?: string,
>       ShipFromAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       HomeBalance?: number,
>       ShipDate?: string,
>       TrackingNum?: string,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       PrintStatus?: string,
>       PaymentRefNum?: string,
>       DeliveryInfo?: {
>         DeliveryType?: Email | Tradeshift,
>         DeliveryTime?: string
>       },
>       TxnSource?: string,
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       ApplyTaxAfterDiscount?: boolean,
>       DocNumber?: string,
>       PrivateNote?: string,
>       DepositToAccountRef?: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[],
>       CustomerMemo?: {
>         value: string
>       },
>       EmailStatus?: string,
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       CreditCardPayment?: {
>         CreditChargeResponse?: {
>           Status?: Completed | Voided | Unknown,
>           AuthCode?: string,
>           TxnAuthorizationTime?: string,
>           CCTransId?: string
>         },
>         CreditChargeInfo?: {
>           CcExpiryMonth?: number,
>           ProcessPayment?: boolean,
>           PostalCode?: string,
>           Amount?: number,
>           NameOnAcct?: string,
>           CcExpiryYear?: number,
>           Type?: string,
>           BillAddrStreet?: string
>         }
>       },
>       Balance?: number,
>       CustomerRef: {
>         name?: string,
>         value: string
>       },
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       SyncToken: string,
>       PaymentMethodRef?: {
>         name?: string,
>         value: string
>       },
>       ExchangeRate?: number,
>       ShipAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       HomeTotalAmt?: number,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       ShipMethodRef?: {
>         name?: string,
>         value: string
>       },
>       BillAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       FreeFormAddress?: boolean,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       BillEmail?: {
>         Address?: string
>       },
>       Id: string
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     SalesReceipt: {
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     SalesReceipt: {
>       SyncToken: string,
>       id: string,
>       sparse: string,
>       Id: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     optionsData: void,
>     SalesReceipt: {
>       TxnDate?: string,
>       ShipFromAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       HomeBalance?: number,
>       ShipDate?: string,
>       TrackingNum?: string,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       PrintStatus?: string,
>       PaymentRefNum?: string,
>       DeliveryInfo?: {
>         DeliveryType?: Email | Tradeshift,
>         DeliveryTime?: string
>       },
>       TxnSource?: string,
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       ApplyTaxAfterDiscount?: boolean,
>       DocNumber?: string,
>       PrivateNote?: string,
>       DepositToAccountRef?: {
>         name?: string,
>         value: string
>       },
>       Line?: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[],
>       CustomerMemo?: {
>         value: string
>       },
>       EmailStatus?: string,
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       CreditCardPayment?: {
>         CreditChargeResponse?: {
>           Status?: Completed | Voided | Unknown,
>           AuthCode?: string,
>           TxnAuthorizationTime?: string,
>           CCTransId?: string
>         },
>         CreditChargeInfo?: {
>           CcExpiryMonth?: number,
>           ProcessPayment?: boolean,
>           PostalCode?: string,
>           Amount?: number,
>           NameOnAcct?: string,
>           CcExpiryYear?: number,
>           Type?: string,
>           BillAddrStreet?: string
>         }
>       },
>       Balance?: number,
>       CustomerRef?: {
>         name?: string,
>         value: string
>       },
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       SyncToken: string,
>       PaymentMethodRef?: {
>         name?: string,
>         value: string
>       },
>       ExchangeRate?: number,
>       ShipAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       HomeTotalAmt?: number,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       ShipMethodRef?: {
>         name?: string,
>         value: string
>       },
>       BillAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       FreeFormAddress?: boolean,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       BillEmail?: {
>         Address?: string
>       },
>       Id: string,
>       sparse: true
>     }
>   } | {
>     bId: string,
>     operation: create,
>     TaxAgency: {
>       DisplayName: string
>     }
>   } | {
>     bId: string,
>     operation: create,
>     TaxService: {
>       TaxCode: string,
>       TaxRateDetails: {
>         RateValue: string,
>         TaxRateId?: string,
>         TaxApplicableOn?: Purchase | Sales,
>         TaxAgencyId?: string,
>         TaxRateName?: string
>       }[]
>     }
>   } | {
>     bId: string,
>     operation: create,
>     Term: {
>       DayOfMonthDue?: number,
>       DueDays?: number,
>       Name: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Term: {
>       DayOfMonthDue?: number,
>       DueDays?: number,
>       Name: string,
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: create,
>     TimeActivity: {
>       TxnDate?: string,
>       EmployeeRef?: {
>         name?: string,
>         value: string
>       },
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       Hours?: number,
>       Minutes?: number,
>       StartTime?: string,
>       HourlyRate?: number,
>       VendorRef?: {
>         name?: string,
>         value: string
>       },
>       EndTime?: string,
>       CustomerRef?: {
>         name?: string,
>         value: string
>       },
>       NameOf: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     TimeActivity: {
>       TxnDate?: string,
>       NameOf: string,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       BreakHours BreakMinutes?: number,
>       EndTime?: string,
>       Description?: string,
>       Hours?: number,
>       Taxable?: boolean,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       VendorRef?: {
>         name?: string,
>         value: string
>       },
>       CostRate?: number,
>       ItemRef?: {
>         name?: string,
>         value: string
>       },
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       PayrollItemRef?: {
>         name?: string,
>         value: string
>       },
>       BillableStatus?: Billable | NotBillable | HasBeenBilled,
>       HourlyRate?: number,
>       CustomerRef?: {
>         name?: string,
>         value: string
>       },
>       SyncToken: string,
>       EmployeeRef?: {
>         name?: string,
>         value: string
>       },
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       StartTime?: string,
>       Id: string
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     TimeActivity: {
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: create,
>     Transfer: {
>       Amount: number,
>       ToAccountRef: {
>         name?: string,
>         value: string
>       },
>       FromAccountRef: {
>         name?: string,
>         value: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Transfer: {
>       Amount: number,
>       ToAccountRef: {
>         name?: string,
>         value: string
>       },
>       FromAccountRef: {
>         name?: string,
>         value: string
>       },
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Transfer: {
>       Amount: number,
>       ToAccountRef: {
>         name?: string,
>         value: string
>       },
>       FromAccountRef: {
>         name?: string,
>         value: string
>       },
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     Transfer: {
>       SyncToken: string,
>       PrivateNote?: string,
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       TxnDate?: string,
>       ToAccountRef: {
>         name?: string,
>         value: string
>       },
>       Amount: number,
>       Id: string,
>       FromAccountRef: {
>         name?: string,
>         value: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     operation: create,
>     Vendor: {
>       DisplayName?: string,
>       Suffix?: string,
>       Title?: string,
>       MiddleName?: string,
>       FamilyName?: string,
>       GivenName?: string
>     }
>   } | {
>     bId: string,
>     operation: update,
>     Vendor: {
>       PrimaryEmailAddr?: {
>         Address?: string
>       },
>       DisplayName?: string,
>       OtherContactInfo?: {
>         Type?: string,
>         Telephone?: {
>           FreeFormNumber?: string
>         }
>       },
>       Title?: string,
>       TermRef?: {
>         name?: string,
>         value: string
>       },
>       Source?: string,
>       GivenName?: string,
>       T4AEligible?: boolean,
>       Fax?: {
>         FreeFormNumber?: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       Mobile?: {
>         FreeFormNumber?: string
>       },
>       PrimaryPhone?: {
>         FreeFormNumber?: string
>       },
>       Active?: boolean,
>       AlternatePhone?: {
>         FreeFormNumber?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       Vendor1099?: boolean,
>       CostRate?: number,
>       MiddleName?: string,
>       BillRate?: number,
>       WebAddr?: {
>         URI?: string
>       },
>       T5018Eligible?: boolean,
>       Balance?: number,
>       SyncToken: string,
>       Suffix?: string,
>       CompanyName?: string,
>       FamilyName?: string,
>       VendorPaymentBankDetail?: {
>         BankAccountName?: string,
>         BankBranchIdentifier?: string,
>         BankAccountNumber?: string,
>         StatementText?: string
>       },
>       TaxIdentifier?: string,
>       AcctNum?: string,
>       HasTPAR?: boolean,
>       PrintOnCheckName?: string,
>       BillAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       Id: string
>     }
>   } | {
>     bId: string,
>     operation: create,
>     VendorCredit: {
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       VendorRef: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           Description?: string,
>           DetailType: AccountBasedExpenseLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           Id?: string,
>           AccountBasedExpenseLineDetail: {
>             TaxAmount?: number,
>             TaxInclusiveAmt?: number,
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             AccountRef: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             }
>           }
>         } | {
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Description?: string,
>           ItemBasedExpenseLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             },
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             Qty?: number,
>             UnitPrice?: number
>           },
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           DetailType: ItemBasedExpenseLineDetail,
>           Id?: string
>         }
>       )[]
>     }
>   } | {
>     bId: string,
>     operation: update,
>     VendorCredit: {
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       VendorRef: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           Description?: string,
>           DetailType: AccountBasedExpenseLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           Id?: string,
>           AccountBasedExpenseLineDetail: {
>             TaxAmount?: number,
>             TaxInclusiveAmt?: number,
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             AccountRef: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             }
>           }
>         } | {
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Description?: string,
>           ItemBasedExpenseLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             },
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             Qty?: number,
>             UnitPrice?: number
>           },
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           DetailType: ItemBasedExpenseLineDetail,
>           Id?: string
>         }
>       )[],
>       Id: string,
>       SyncToken: string
>     }
>   } | {
>     bId: string,
>     operation: delete,
>     VendorCredit: {
>       Id: string,
>       SyncToken: string
>     }
>   }
> )[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `BatchItemResponse` | `object[]` | Yes | — |

> [accordion] BatchItemResponse full type
>
> ```ts theme={null}
> (
>   {
>     bId: string,
>     QueryResponse: {
>       Account?: {
>         SyncToken?: string,
>         SubAccount?: boolean,
>         Classification?: string,
>         FullyQualifiedName?: string,
>         AccountType?: Bank | Accounts Receivable | Other Current Asset | Fixed Asset | Other Asset | Accounts Payable | Credit Card | Other Current Liability | Long Term Liability | Equity | Income | Cost of Goods Sold | Expense | Other Income | Other Expense | Non-Posting,
>         CurrencyRef?: {
>           name?: string,
>           value: string
>         },
>         CurrentBalanceWithSubAccounts?: number,
>         AcctNum?: string,
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ParentRef?: {
>           name?: string,
>           value: string
>         },
>         AccountSubType?: string,
>         CurrentBalance?: number,
>         Description?: string,
>         Active?: boolean,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         },
>         Id: string,
>         Name: string
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Attachable?: {
>         Category?: string,
>         SyncToken?: string,
>         FileAccessUri?: string,
>         ContentType?: string,
>         PlaceName?: string,
>         Size?: number,
>         AttachableRef?: {
>           IncludeOnSend?: boolean,
>           LineInfo?: string,
>           NoRefOnly?: boolean,
>           CustomField?: {
>             DefinitionId: string,
>             StringValue?: string,
>             Type?: StringType | BooleanType | NumberType | DateType,
>             Name?: string
>           }[],
>           Inactive?: boolean,
>           EntityRef?: {
>             type?: string,
>             value: string,
>             name?: string
>           }
>         }[],
>         Long?: string,
>         FileName?: string,
>         Note?: string,
>         Tag?: string,
>         Lat?: string,
>         ThumbnailFileAccessUri?: string,
>         TempDownloadUri?: string,
>         ThumbnailTempDownloadUri?: string,
>         Id: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Bill?: {
>         TxnDate?: string,
>         CurrencyRef?: {
>           name?: string,
>           value: string
>         },
>         APAccountRef?: {
>           name?: string,
>           value: string
>         },
>         HomeBalance?: number,
>         SalesTermRef?: {
>           name?: string,
>           value: string
>         },
>         LinkedTxn?: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[],
>         GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>         TotalAmt?: number,
>         DueDate?: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         },
>         DocNumber?: string,
>         PrivateNote?: string,
>         VendorRef: {
>           name?: string,
>           value: string
>         },
>         RecurDataRef?: {
>           name?: string,
>           value: string
>         },
>         Line: (
>           {
>             LinkedTxn?: {
>               TxnLineId: string,
>               TxnId: string,
>               TxnType: string
>             }[],
>             Description?: string,
>             ItemBasedExpenseLineDetail: {
>               TaxInclusiveAmt?: number,
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               },
>               CustomerRef?: {
>                 name?: string,
>                 value: string
>               },
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               MarkupInfo?: {
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 Percent?: number,
>                 MarkUpIncomeAccountRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               BillableStatus?: Billable | NotBillable | HasBeenBilled,
>               Qty?: number,
>               UnitPrice?: number
>             },
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LineNum?: number,
>             Amount: number,
>             DetailType: ItemBasedExpenseLineDetail,
>             Id?: string
>           } | {
>             LinkedTxn?: {
>               TxnLineId: string,
>               TxnId: string,
>               TxnType: string
>             }[],
>             Description?: string,
>             DetailType: AccountBasedExpenseLineDetail,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LineNum?: number,
>             Amount: number,
>             Id?: string,
>             AccountBasedExpenseLineDetail: {
>               TaxAmount?: number,
>               TaxInclusiveAmt?: number,
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               MarkupInfo?: {
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 Percent?: number,
>                 MarkUpIncomeAccountRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               BillableStatus?: Billable | NotBillable | HasBeenBilled,
>               AccountRef: {
>                 name?: string,
>                 value: string
>               },
>               CustomerRef?: {
>                 name?: string,
>                 value: string
>               }
>             }
>           }
>         )[],
>         Balance?: number,
>         TxnTaxDetail?: {
>           TxnTaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           TotalTax?: number,
>           TaxLine?: {
>             DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>             Amount?: number,
>             TaxLineDetail: {
>               NetAmountTaxable?: number,
>               PercentBased?: boolean,
>               TaxInclusiveAmount?: number,
>               OverrideDeltaAmount?: number,
>               TaxRateRef: {
>                 name?: string,
>                 value: string
>               },
>               TaxPercent?: number
>             }
>           }[]
>         },
>         SyncToken?: string,
>         ExchangeRate?: number,
>         DepartmentRef?: {
>           name?: string,
>           value: string
>         },
>         IncludeInAnnualTPAR?: boolean,
>         Id: string
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       BillPayment?: {
>         DocNumber?: string,
>         SyncToken?: string,
>         PrivateNote?: string,
>         VendorRef: {
>           name?: string,
>           value: string
>         },
>         Line: {
>           Amount: number,
>           LinkedTxn: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[]
>         }[],
>         TxnDate?: string,
>         TotalAmt: number,
>         ExchangeRate?: number,
>         APAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PayType: Check | CreditCard,
>         DepartmentRef?: {
>           name?: string,
>           value: string
>         },
>         CheckPayment?: {
>           PrintStatus?: NotSet | NeedToPrint | PrintComplete,
>           BankAccountRef: {
>             name?: string,
>             value: string
>           }
>         },
>         CreditCardPayment?: {
>           CCAccountRef: {
>             name?: string,
>             value: string
>           }
>         },
>         ProcessBillPayment?: boolean,
>         Id: string,
>         CurrencyRef?: {
>           name?: string,
>           value: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Budget?: {
>         SyncToken?: string,
>         BudgetEntryType?: Yearly | Quarterly | Monthly,
>         EndDate: string,
>         Name?: string,
>         BudgetDetail?: {
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           DepartmentRef?: {
>             name?: string,
>             value: string
>           },
>           Amount?: number,
>           BudgetDate?: string,
>           AccountRef?: {
>             name?: string,
>             value: string
>           },
>           CustomerRef?: {
>             name?: string,
>             value: string
>           }
>         }[],
>         StartDate: string,
>         BudgetType?: ProfitAndLoss | BalanceSheet,
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         Active?: boolean,
>         Id: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       ChangeOrder?: {
>         TxnDate?: string,
>         PrintStatus?: string,
>         TxnStatus?: string,
>         LinkedTxn: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[],
>         TotalAmt?: number,
>         AcceptedDate?: string,
>         ExpirationDate?: string,
>         ApplyTaxAfterDiscount?: boolean,
>         DocNumber?: string,
>         PrivateNote?: string,
>         Line: (
>           {
>             Description?: string,
>             DetailType: SalesItemLineDetail,
>             SalesItemLineDetail: {
>               TaxInclusiveAmt?: number,
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               },
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               MarkupInfo?: {
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 Percent?: number,
>                 MarkUpIncomeAccountRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               ItemAccountRef?: {
>                 name?: string,
>                 value: string
>               },
>               ServiceDate?: string,
>               Qty?: number,
>               UnitPrice?: number,
>               TaxClassificationRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             LineNum?: number,
>             Amount: number,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LinkedTxn?: {
>               TxnLineId?: string,
>               TxnId: string,
>               TxnType: string
>             }[],
>             Id?: string
>           } | {
>             Description?: string,
>             SubTotalLineDetail: {
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             DetailType: SubTotalLineDetail,
>             LineNum?: number,
>             Amount: number,
>             Id?: string
>           } | {
>             DiscountLineDetail: {
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               DiscountAccountRef?: {
>                 name?: string,
>                 value: string
>               },
>               PercentBased?: boolean,
>               DiscountPercent?: number
>             },
>             Description?: string,
>             DetailType: DiscountLineDetail,
>             LineNum?: number,
>             Amount?: number,
>             Id?: string
>           } | {
>             Description?: string,
>             DetailType: DescriptionOnly,
>             LineNum?: number,
>             Amount?: number,
>             DescriptionLineDetail?: {
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               ServiceDate?: string
>             },
>             Id?: string
>           } | {
>             Description?: string,
>             GroupLineDetail: {
>               Quantity?: number,
>               Line?: {
>                 Description?: string,
>                 DetailType: SalesItemLineDetail,
>                 SalesItemLineDetail: {
>                   TaxInclusiveAmt?: number,
>                   ItemRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   ClassRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   TaxCodeRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   MarkupInfo?: {
>                     PriceLevelRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     Percent?: number,
>                     MarkUpIncomeAccountRef?: {
>                       name?: string,
>                       value: string
>                     }
>                   },
>                   ItemAccountRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   ServiceDate?: string,
>                   Qty?: number,
>                   UnitPrice?: number,
>                   TaxClassificationRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 LineNum?: number,
>                 Amount: number,
>                 CustomExtensions?: {
>                   AssociatedValues?: {
>                     Value: string,
>                     Key: string
>                   }[],
>                   ExtensionType?: string
>                 }[],
>                 LinkedTxn?: {
>                   TxnLineId?: string,
>                   TxnId: string,
>                   TxnType: string
>                 }[],
>                 Id?: string
>               }[],
>               GroupItemRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             DetailType: GroupLineDetail,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LineNum?: number,
>             Id?: string
>           }
>         )[],
>         CustomerMemo?: {
>           value: string
>         },
>         ProjectRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef: {
>           name?: string,
>           value: string
>         },
>         TxnTaxDetail?: {
>           TxnTaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           TotalTax?: number,
>           TaxLine?: {
>             DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>             Amount?: number,
>             TaxLineDetail: {
>               NetAmountTaxable?: number,
>               PercentBased?: boolean,
>               TaxInclusiveAmount?: number,
>               OverrideDeltaAmount?: number,
>               TaxRateRef: {
>                 name?: string,
>                 value: string
>               },
>               TaxPercent?: number
>             }
>           }[]
>         },
>         SyncToken?: string,
>         AcceptedBy?: string,
>         TotalCostAmount?: number,
>         EmailStatus?: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         },
>         BillEmail?: {
>           Address?: string
>         },
>         Id: string
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Class?: {
>         SyncToken?: string,
>         Name: string,
>         FullyQualifiedName?: string,
>         SubClass?: boolean,
>         ParentRef?: {
>           name?: string,
>           value: string
>         },
>         Active?: boolean,
>         Id: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       CompanyCurrency?: {
>         SyncToken?: string,
>         Code: string,
>         Name?: string,
>         CustomField?: {
>           DefinitionId: string,
>           StringValue?: string,
>           Type?: StringType | BooleanType | NumberType | DateType,
>           Name?: string
>         }[],
>         Active?: boolean,
>         Id: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       CompanyInfo?: {
>         SyncToken?: string,
>         LegalAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         SupportedLanguages?: string,
>         CompanyName?: string,
>         Country?: string,
>         CompanyAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         Email?: {
>           Address?: string
>         },
>         WebAddr?: {
>           URI?: string
>         },
>         NameValue?: {
>           Name?: string,
>           Value?: string
>         }[],
>         FiscalYearStartMonth?: January | February | March | April | May | June | July | August | September | October | November | December,
>         CustomerCommunicationAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         PrimaryPhone?: {
>           FreeFormNumber?: string
>         },
>         LegalName?: string,
>         CompanyStartDate?: string,
>         EmployerId?: string,
>         Id: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       CreditCardPayment?: {
>         SyncToken?: string,
>         PrivateNote?: string,
>         VendorRef?: {
>           name?: string,
>           value: string
>         },
>         CreditCardAccountRef: {
>           name?: string,
>           value: string
>         },
>         TxnDate?: string,
>         Memo?: string,
>         PrintStatus?: string,
>         CheckNum?: string,
>         Amount: number,
>         BankAccountRef: {
>           name?: string,
>           value: string
>         },
>         Id: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       CreditMemo?: {
>         TxnDate?: string,
>         CurrencyRef?: {
>           name?: string,
>           value: string
>         },
>         CustomField?: {
>           DefinitionId: string,
>           StringValue?: string,
>           Type?: StringType | BooleanType | NumberType | DateType,
>           Name?: string
>         }[],
>         HomeBalance?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         PrintStatus?: string,
>         SalesTermRef?: {
>           name?: string,
>           value: string
>         },
>         GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>         TotalAmt?: number,
>         RemainingCredit?: number,
>         ApplyTaxAfterDiscount?: boolean,
>         DocNumber?: string,
>         PrivateNote?: string,
>         RecurDataRef?: {
>           name?: string,
>           value: string
>         },
>         Line: (
>           {
>             Description?: string,
>             DetailType: SalesItemLineDetail,
>             SalesItemLineDetail: {
>               TaxInclusiveAmt?: number,
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               },
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               MarkupInfo?: {
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 Percent?: number,
>                 MarkUpIncomeAccountRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               ItemAccountRef?: {
>                 name?: string,
>                 value: string
>               },
>               ServiceDate?: string,
>               Qty?: number,
>               UnitPrice?: number,
>               TaxClassificationRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             LineNum?: number,
>             Amount: number,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LinkedTxn?: {
>               TxnLineId?: string,
>               TxnId: string,
>               TxnType: string
>             }[],
>             Id?: string
>           } | {
>             Description?: string,
>             SubTotalLineDetail: {
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             DetailType: SubTotalLineDetail,
>             LineNum?: number,
>             Amount: number,
>             Id?: string
>           } | {
>             DiscountLineDetail: {
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               DiscountAccountRef?: {
>                 name?: string,
>                 value: string
>               },
>               PercentBased?: boolean,
>               DiscountPercent?: number
>             },
>             Description?: string,
>             DetailType: DiscountLineDetail,
>             LineNum?: number,
>             Amount?: number,
>             Id?: string
>           } | {
>             Description?: string,
>             DetailType: DescriptionOnly,
>             LineNum?: number,
>             Amount?: number,
>             DescriptionLineDetail?: {
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               ServiceDate?: string
>             },
>             Id?: string
>           } | {
>             Description?: string,
>             GroupLineDetail: {
>               Quantity?: number,
>               Line?: {
>                 Description?: string,
>                 DetailType: SalesItemLineDetail,
>                 SalesItemLineDetail: {
>                   TaxInclusiveAmt?: number,
>                   ItemRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   ClassRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   TaxCodeRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   MarkupInfo?: {
>                     PriceLevelRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     Percent?: number,
>                     MarkUpIncomeAccountRef?: {
>                       name?: string,
>                       value: string
>                     }
>                   },
>                   ItemAccountRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   ServiceDate?: string,
>                   Qty?: number,
>                   UnitPrice?: number,
>                   TaxClassificationRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 LineNum?: number,
>                 Amount: number,
>                 CustomExtensions?: {
>                   AssociatedValues?: {
>                     Value: string,
>                     Key: string
>                   }[],
>                   ExtensionType?: string
>                 }[],
>                 LinkedTxn?: {
>                   TxnLineId?: string,
>                   TxnId: string,
>                   TxnType: string
>                 }[],
>                 Id?: string
>               }[],
>               GroupItemRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             DetailType: GroupLineDetail,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LineNum?: number,
>             Id?: string
>           }
>         )[],
>         CustomerMemo?: {
>           value: string
>         },
>         ProjectRef?: {
>           name?: string,
>           value: string
>         },
>         TaxExemptionRef?: {
>           name?: string,
>           value: string
>         },
>         Balance?: number,
>         CustomerRef: {
>           name?: string,
>           value: string
>         },
>         TxnTaxDetail?: {
>           TxnTaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           TotalTax?: number,
>           TaxLine?: {
>             DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>             Amount?: number,
>             TaxLineDetail: {
>               NetAmountTaxable?: number,
>               PercentBased?: boolean,
>               TaxInclusiveAmount?: number,
>               OverrideDeltaAmount?: number,
>               TaxRateRef: {
>                 name?: string,
>                 value: string
>               },
>               TaxPercent?: number
>             }
>           }[]
>         },
>         SyncToken?: string,
>         PaymentMethodRef?: {
>           name?: string,
>           value: string
>         },
>         ExchangeRate?: number,
>         ShipAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         HomeTotalAmt?: number,
>         DepartmentRef?: {
>           name?: string,
>           value: string
>         },
>         EmailStatus?: string,
>         BillAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         },
>         BillEmail?: {
>           Address?: string
>         },
>         Id: string
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Customer?: {
>         PrimaryEmailAddr?: {
>           Address?: string
>         },
>         DisplayName?: string,
>         Title?: string,
>         ResaleNum?: string,
>         SecondaryTaxIdentifier?: string,
>         DefaultTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         PreferredDeliveryMethod?: string,
>         GivenName?: string,
>         SalesTermRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerTypeRef?: {
>           value: string
>         },
>         FullyQualifiedName?: string,
>         Fax?: {
>           FreeFormNumber?: string
>         },
>         BillWithParent?: boolean,
>         CurrencyRef?: {
>           name?: string,
>           value: string
>         },
>         Mobile?: {
>           FreeFormNumber?: string
>         },
>         Job?: boolean,
>         BalanceWithJobs?: number,
>         PrimaryPhone?: {
>           FreeFormNumber?: string
>         },
>         OpenBalanceDate?: string,
>         Taxable?: boolean,
>         AlternatePhone?: {
>           FreeFormNumber?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         },
>         ParentRef?: {
>           name?: string,
>           value: string
>         },
>         Level?: number,
>         MiddleName?: string,
>         Notes?: string,
>         TaxExemptionReasonId?: string,
>         WebAddr?: {
>           URI?: string
>         },
>         Active?: boolean,
>         CompanyName?: string,
>         Balance?: number,
>         SyncToken?: string,
>         ShipAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         PaymentMethodRef?: {
>           name?: string,
>           value: string
>         },
>         Suffix?: string,
>         IsProject?: boolean,
>         Source?: string,
>         FamilyName?: string,
>         PrimaryTaxIdentifier?: string,
>         PrintOnCheckName?: string,
>         BillAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         Id: string
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       CustomerType?: {
>         Active?: boolean,
>         SyncToken?: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         },
>         Name?: string,
>         Id: string
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Department?: {
>         SyncToken?: string,
>         Name: string,
>         FullyQualifiedName?: string,
>         SubDepartment?: boolean,
>         ParentRef?: {
>           name?: string,
>           value: string
>         },
>         Active?: boolean,
>         Id: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Deposit?: {
>         SyncToken?: string,
>         PrivateNote?: string,
>         RecurDataRef?: {
>           name?: string,
>           value: string
>         },
>         DepositToAccountRef: {
>           name?: string,
>           value: string
>         },
>         GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>         TotalAmt?: number,
>         ExchangeRate?: number,
>         CurrencyRef?: {
>           name?: string,
>           value: string
>         },
>         HomeTotalAmt?: number,
>         DepartmentRef?: {
>           name?: string,
>           value: string
>         },
>         TxnSource?: string,
>         TxnDate?: string,
>         Line: (
>           {
>             Amount: number,
>             LinkedTxn: {
>               TxnLineId?: string,
>               TxnId: string,
>               TxnType: string
>             }[]
>           } | {
>             Description?: string,
>             DetailType: DepositLineDetail,
>             ProjectRef?: {
>               name?: string,
>               value: string
>             },
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LineNum?: number,
>             Amount: number,
>             CustomField?: {
>               DefinitionId: string,
>               StringValue?: string,
>               Type?: StringType | BooleanType | NumberType | DateType,
>               Name?: string
>             }[],
>             Id?: string,
>             DepositLineDetail: {
>               PaymentMethodRef?: {
>                 name?: string,
>                 value: string
>               },
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               CheckNum?: string,
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxApplicableOn?: Purchase | Sales,
>               TxnType?: APCreditCard | ARRefundCreditCard | Bill | BillPaymentCheck | BuildAssembly | CarryOver | CashPurchase | Charge | Check | CreditCardPayment | CreditMemo | Deposit | EFPLiabilityCheck | EFTBillPayment | EFTRefund | Estimate | InventoryAdjustment | InventoryTransfer | Invoice | ItemReceipt | JournalEntry | LiabilityAdjustment | Paycheck | PayrollLiabilityCheck | PurchaseOrder | PriorPayment | ReceivePayment | RefundCheck | ReimburseCharge | SalesOrder | SalesReceipt | SalesTaxPaymentCheck | Transfer | TimeActivity | VendorCredit | YTDAdjustment,
>               AccountRef: {
>                 name?: string,
>                 value: string
>               },
>               Entity?: {
>                 name?: string,
>                 value: string
>               }
>             }
>           }
>         )[],
>         CashBack?: {
>           AccountRef: {
>             name?: string,
>             value: string
>           },
>           Amount: string,
>           Memo?: string
>         },
>         Id: string,
>         TxnTaxDetail?: {
>           TxnTaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           TotalTax?: number,
>           TaxLine?: {
>             DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>             Amount?: number,
>             TaxLineDetail: {
>               NetAmountTaxable?: number,
>               PercentBased?: boolean,
>               TaxInclusiveAmount?: number,
>               OverrideDeltaAmount?: number,
>               TaxRateRef: {
>                 name?: string,
>                 value: string
>               },
>               TaxPercent?: number
>             }
>           }[]
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Employee?: {
>         PrimaryEmailAddr?: {
>           Address?: string
>         },
>         DisplayName?: string,
>         Title?: string,
>         BillableTime?: boolean,
>         GivenName?: string,
>         V4IDPseudonym?: string,
>         BirthDate?: string,
>         MiddleName?: string,
>         SSN?: string,
>         PrimaryAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         PrimaryPhone?: {
>           FreeFormNumber?: string
>         },
>         Active?: boolean,
>         ReleasedDate?: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         },
>         CostRate?: number,
>         Mobile?: {
>           FreeFormNumber?: string
>         },
>         Gender?: string,
>         HiredDate?: string,
>         BillRate?: number,
>         Organization?: boolean,
>         SyncToken?: string,
>         Suffix?: string,
>         FamilyName?: string,
>         PrintOnCheckName?: string,
>         EmployeeNumber?: string,
>         Id: string
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Estimate?: {
>         TxnDate?: string,
>         ShipFromAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         CurrencyRef?: {
>           name?: string,
>           value: string
>         },
>         ShipDate?: string,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         PrintStatus?: string,
>         CustomField?: {
>           DefinitionId: string,
>           StringValue?: string,
>           Type?: StringType | BooleanType | NumberType | DateType,
>           Name?: string
>         }[],
>         SalesTermRef?: {
>           name?: string,
>           value: string
>         },
>         TxnStatus?: string,
>         LinkedTxn?: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[],
>         GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>         TotalAmt?: number,
>         AcceptedDate?: string,
>         ExpirationDate?: string,
>         DueDate?: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         },
>         DocNumber?: string,
>         PrivateNote?: string,
>         RecurDataRef?: {
>           name?: string,
>           value: string
>         },
>         Line?: (
>           {
>             Description?: string,
>             DetailType: SalesItemLineDetail,
>             SalesItemLineDetail: {
>               TaxInclusiveAmt?: number,
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               },
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               MarkupInfo?: {
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 Percent?: number,
>                 MarkUpIncomeAccountRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               ItemAccountRef?: {
>                 name?: string,
>                 value: string
>               },
>               ServiceDate?: string,
>               Qty?: number,
>               UnitPrice?: number,
>               TaxClassificationRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             LineNum?: number,
>             Amount: number,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LinkedTxn?: {
>               TxnLineId?: string,
>               TxnId: string,
>               TxnType: string
>             }[],
>             Id?: string
>           } | {
>             Description?: string,
>             SubTotalLineDetail: {
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             DetailType: SubTotalLineDetail,
>             LineNum?: number,
>             Amount: number,
>             Id?: string
>           } | {
>             DiscountLineDetail: {
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               DiscountAccountRef?: {
>                 name?: string,
>                 value: string
>               },
>               PercentBased?: boolean,
>               DiscountPercent?: number
>             },
>             Description?: string,
>             DetailType: DiscountLineDetail,
>             LineNum?: number,
>             Amount?: number,
>             Id?: string
>           } | {
>             Description?: string,
>             DetailType: DescriptionOnly,
>             LineNum?: number,
>             Amount?: number,
>             DescriptionLineDetail?: {
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               ServiceDate?: string
>             },
>             Id?: string
>           } | {
>             Description?: string,
>             GroupLineDetail: {
>               Quantity?: number,
>               Line?: {
>                 Description?: string,
>                 DetailType: SalesItemLineDetail,
>                 SalesItemLineDetail: {
>                   TaxInclusiveAmt?: number,
>                   ItemRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   ClassRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   TaxCodeRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   MarkupInfo?: {
>                     PriceLevelRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     Percent?: number,
>                     MarkUpIncomeAccountRef?: {
>                       name?: string,
>                       value: string
>                     }
>                   },
>                   ItemAccountRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   ServiceDate?: string,
>                   Qty?: number,
>                   UnitPrice?: number,
>                   TaxClassificationRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 LineNum?: number,
>                 Amount: number,
>                 CustomExtensions?: {
>                   AssociatedValues?: {
>                     Value: string,
>                     Key: string
>                   }[],
>                   ExtensionType?: string
>                 }[],
>                 LinkedTxn?: {
>                   TxnLineId?: string,
>                   TxnId: string,
>                   TxnType: string
>                 }[],
>                 Id?: string
>               }[],
>               GroupItemRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             DetailType: GroupLineDetail,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LineNum?: number,
>             Id?: string
>           }
>         )[],
>         CustomerMemo?: {
>           value: string
>         },
>         EmailStatus?: string,
>         ProjectRef?: {
>           name?: string,
>           value: string
>         },
>         TaxExemptionRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef: {
>           name?: string,
>           value: string
>         },
>         TxnTaxDetail?: {
>           TxnTaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           TotalTax?: number,
>           TaxLine?: {
>             DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>             Amount?: number,
>             TaxLineDetail: {
>               NetAmountTaxable?: number,
>               PercentBased?: boolean,
>               TaxInclusiveAmount?: number,
>               OverrideDeltaAmount?: number,
>               TaxRateRef: {
>                 name?: string,
>                 value: string
>               },
>               TaxPercent?: number
>             }
>           }[]
>         },
>         SyncToken?: string,
>         AcceptedBy?: string,
>         ExchangeRate?: number,
>         ShipAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         HomeTotalAmt?: number,
>         DepartmentRef?: {
>           name?: string,
>           value: string
>         },
>         ShipMethodRef?: {
>           name?: string,
>           value: string
>         },
>         BillAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         FreeFormAddress?: boolean,
>         ApplyTaxAfterDiscount?: boolean,
>         BillEmail?: {
>           Address?: string
>         },
>         Id: string
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Exchangerate?: {
>         SyncToken?: string,
>         AsOfDate?: string,
>         CustomField?: {
>           DefinitionId: string,
>           StringValue?: string,
>           Type?: StringType | BooleanType | NumberType | DateType,
>           Name?: string
>         }[],
>         SourceCurrencyCode?: string,
>         Rate?: number,
>         TargetCurrencyCode?: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       InventoryAdjustment?: {
>         DocNumber?: string,
>         TxnDate: string,
>         PrivateNote?: string,
>         SyncToken?: string,
>         Line: {
>           DetailType?: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           ItemAdjustmentLineDetail: {
>             QtyDiff: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           Id?: number
>         }[],
>         AdjustAccountRef: {
>           name?: string,
>           value: string
>         },
>         Id: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Invoice?: {
>         TxnDate?: string,
>         ShipFromAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         CurrencyRef?: {
>           name?: string,
>           value: string
>         },
>         HomeBalance?: number,
>         ShipDate?: string,
>         TrackingNum?: string,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         PrintStatus?: string,
>         EmailStatus?: string,
>         SalesTermRef?: {
>           name?: string,
>           value: string
>         },
>         DeliveryInfo?: {
>           DeliveryType?: Email | Tradeshift,
>           DeliveryTime?: string
>         },
>         TxnSource?: string,
>         LinkedTxn?: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[],
>         DepositToAccountRef?: {
>           name?: string,
>           value: string
>         },
>         GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>         TotalAmt?: number,
>         AllowOnlineAffirmPayment?: boolean,
>         InvoiceLink?: string,
>         AllowOnlineACHPayment?: boolean,
>         TransactionLocationType?: string,
>         DueDate?: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         },
>         DocNumber?: string,
>         PrivateNote?: string,
>         RecurDataRef?: {
>           name?: string,
>           value: string
>         },
>         Line: (
>           {
>             Description?: string,
>             DetailType: SalesItemLineDetail,
>             SalesItemLineDetail: {
>               TaxInclusiveAmt?: number,
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               },
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               MarkupInfo?: {
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 Percent?: number,
>                 MarkUpIncomeAccountRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               ItemAccountRef?: {
>                 name?: string,
>                 value: string
>               },
>               ServiceDate?: string,
>               Qty?: number,
>               UnitPrice?: number,
>               TaxClassificationRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             LineNum?: number,
>             Amount: number,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LinkedTxn?: {
>               TxnLineId?: string,
>               TxnId: string,
>               TxnType: string
>             }[],
>             Id?: string
>           } | {
>             Description?: string,
>             SubTotalLineDetail: {
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             DetailType: SubTotalLineDetail,
>             LineNum?: number,
>             Amount: number,
>             Id?: string
>           } | {
>             DiscountLineDetail: {
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               DiscountAccountRef?: {
>                 name?: string,
>                 value: string
>               },
>               PercentBased?: boolean,
>               DiscountPercent?: number
>             },
>             Description?: string,
>             DetailType: DiscountLineDetail,
>             LineNum?: number,
>             Amount?: number,
>             Id?: string
>           } | {
>             Description?: string,
>             DetailType: DescriptionOnly,
>             LineNum?: number,
>             Amount?: number,
>             DescriptionLineDetail?: {
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               ServiceDate?: string
>             },
>             Id?: string
>           } | {
>             Description?: string,
>             GroupLineDetail: {
>               Quantity?: number,
>               Line?: {
>                 Description?: string,
>                 DetailType: SalesItemLineDetail,
>                 SalesItemLineDetail: {
>                   TaxInclusiveAmt?: number,
>                   ItemRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   ClassRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   TaxCodeRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   MarkupInfo?: {
>                     PriceLevelRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     Percent?: number,
>                     MarkUpIncomeAccountRef?: {
>                       name?: string,
>                       value: string
>                     }
>                   },
>                   ItemAccountRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   ServiceDate?: string,
>                   Qty?: number,
>                   UnitPrice?: number,
>                   TaxClassificationRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 LineNum?: number,
>                 Amount: number,
>                 CustomExtensions?: {
>                   AssociatedValues?: {
>                     Value: string,
>                     Key: string
>                   }[],
>                   ExtensionType?: string
>                 }[],
>                 LinkedTxn?: {
>                   TxnLineId?: string,
>                   TxnId: string,
>                   TxnType: string
>                 }[],
>                 Id?: string
>               }[],
>               GroupItemRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             DetailType: GroupLineDetail,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LineNum?: number,
>             Id?: string
>           }
>         )[],
>         BillEmailCc?: {
>           Address?: string
>         },
>         CustomerMemo?: {
>           value: string
>         },
>         AllowOnlinePayPalPayment?: boolean,
>         ProjectRef?: {
>           name?: string,
>           value: string
>         },
>         ExchangeRate?: number,
>         TaxExemptionRef?: {
>           name?: string,
>           value: string
>         },
>         Deposit?: number,
>         Balance?: number,
>         CustomerRef: {
>           name?: string,
>           value: string
>         },
>         TxnTaxDetail?: {
>           TxnTaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           TotalTax?: number,
>           TaxLine?: {
>             DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>             Amount?: number,
>             TaxLineDetail: {
>               NetAmountTaxable?: number,
>               PercentBased?: boolean,
>               TaxInclusiveAmount?: number,
>               OverrideDeltaAmount?: number,
>               TaxRateRef: {
>                 name?: string,
>                 value: string
>               },
>               TaxPercent?: number
>             }
>           }[]
>         },
>         AllowOnlineCreditCardPayment?: boolean,
>         SyncToken?: string,
>         CustomField?: {
>           DefinitionId: string,
>           StringValue?: string,
>           Type?: StringType | BooleanType | NumberType | DateType,
>           Name?: string
>         }[],
>         ShipAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         HomeTotalAmt?: number,
>         DepartmentRef?: {
>           name?: string,
>           value: string
>         },
>         BillEmailBcc?: {
>           Address?: string
>         },
>         ShipMethodRef?: {
>           name?: string,
>           value: string
>         },
>         BillAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         FreeFormAddress?: boolean,
>         ApplyTaxAfterDiscount?: boolean,
>         BillEmail?: {
>           Address?: string
>         },
>         Id: string,
>         AllowOnlinePayment?: boolean,
>         AllowIPNPayment?: boolean
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Item?: {
>         Sku?: string,
>         SalesTaxIncluded?: boolean,
>         TrackQtyOnHand?: boolean,
>         SalesTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         Source?: string,
>         InvStartDate?: string,
>         Type?: string,
>         PurchaseTaxIncluded?: boolean,
>         FullyQualifiedName?: string,
>         Description?: string,
>         SubItem?: boolean,
>         Taxable?: boolean,
>         ReorderPoint?: number,
>         PurchaseDesc?: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         },
>         PrefVendorRef?: {
>           name?: string,
>           value: string
>         },
>         Name: string,
>         Level?: number,
>         IncomeAccountRef?: {
>           name?: string,
>           value: string
>         },
>         Active?: boolean,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         ExpenseAccountRef?: {
>           name?: string,
>           value: string
>         },
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         },
>         PurchaseTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         SyncToken?: string,
>         PurchaseCost?: number,
>         QtyOnHand?: number,
>         AssetAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ParentRef?: {
>           name?: string,
>           value: string
>         },
>         UnitPrice?: number,
>         Id: string
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       JournalEntry?: {
>         DocNumber?: string,
>         SyncToken?: string,
>         PrivateNote?: string,
>         RecurDataRef?: {
>           name?: string,
>           value: string
>         },
>         TxnDate?: string,
>         TotalAmt?: number,
>         ExchangeRate?: number,
>         CurrencyRef?: {
>           name?: string,
>           value: string
>         },
>         TaxRateRef?: {
>           name?: string,
>           value: string
>         },
>         HomeTotalAmt?: number,
>         TxnTaxDetail?: {
>           TxnTaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           TotalTax?: number,
>           TaxLine?: {
>             DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>             Amount?: number,
>             TaxLineDetail: {
>               NetAmountTaxable?: number,
>               PercentBased?: boolean,
>               TaxInclusiveAmount?: number,
>               OverrideDeltaAmount?: number,
>               TaxRateRef: {
>                 name?: string,
>                 value: string
>               },
>               TaxPercent?: number
>             }
>           }[]
>         },
>         GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>         Adjustment?: boolean,
>         Id: string,
>         Line: {
>           Description?: string,
>           JournalEntryLineDetail: {
>             TaxAmount?: number,
>             TaxInclusiveAmt?: number,
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             DepartmentRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             TaxApplicableOn?: Purchase | Sales,
>             PostingType: Credit | Debit,
>             AccountRef: {
>               name?: string,
>               value: string
>             },
>             Entity?: {
>               Type?: Customer | Employee | Job | Other | Vendor,
>               EntityRef: {
>                 name?: string,
>                 value: string
>               }
>             }
>           },
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           ProjectRef?: {
>             name?: string,
>             value: string
>           },
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         }[],
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Payment?: {
>         SyncToken?: string,
>         PrivateNote?: string,
>         PaymentMethodRef?: {
>           name?: string,
>           value: string
>         },
>         UnappliedAmt?: number,
>         DepositToAccountRef?: {
>           name?: string,
>           value: string
>         },
>         CurrencyRef?: {
>           name?: string,
>           value: string
>         },
>         TotalAmt?: number,
>         ExchangeRate?: number,
>         Line?: {
>           Amount: number,
>           LinkedTxn: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[]
>         }[],
>         ProjectRef?: {
>           name?: string,
>           value: string
>         },
>         TxnSource?: string,
>         PaymentRefNum?: string,
>         TxnDate?: string,
>         CreditCardPayment?: {
>           CreditChargeResponse?: {
>             Status?: Completed | Voided | Unknown,
>             AuthCode?: string,
>             TxnAuthorizationTime?: string,
>             CCTransId?: string
>           },
>           CreditChargeInfo?: {
>             CcExpiryMonth?: number,
>             ProcessPayment?: boolean,
>             PostalCode?: string,
>             Amount?: number,
>             NameOnAcct?: string,
>             CcExpiryYear?: number,
>             Type?: string,
>             BillAddrStreet?: string
>           }
>         },
>         TaxExemptionRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef: {
>           name?: string,
>           value: string
>         },
>         Id: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       PaymentMethod?: {
>         SyncToken?: string,
>         Name: string,
>         Active?: boolean,
>         Type?: string,
>         Id: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Preferences?: {
>         EmailMessagesPrefs?: {
>           InvoiceMessage?: {
>             Message?: string,
>             Subject?: string
>           },
>           EstimateMessage?: {
>             Message?: string,
>             Subject?: string
>           },
>           SalesReceiptMessage?: {
>             Message?: string,
>             Subject?: string
>           },
>           StatementMessage?: {
>             Message?: string,
>             Subject?: string
>           }
>         },
>         SyncToken?: string,
>         ProductAndServicesPrefs?: {
>           RevenueRecognitionEnabled?: boolean,
>           RecognitionFrequencyType?: string,
>           ForSales?: boolean,
>           QuantityOnHand?: boolean,
>           QuantityWithPriceAndRate?: boolean,
>           ForPurchase?: boolean
>         },
>         ReportPrefs?: {
>           ReportBasis?: Accrual | Cash,
>           CalcAgingReportFromTxnDate?: boolean
>         },
>         AccountingInfoPrefs?: {
>           FirstMonthOfFiscalYear?: January | February | March | April | May | June | July | August | September | October | November | December,
>           UseAccountNumbers?: boolean,
>           TaxYearMonth?: string,
>           ClassTrackingPerTxn?: boolean,
>           TrackDepartments?: boolean,
>           TaxForm?: string,
>           CustomerTerminology?: string,
>           BookCloseDate?: string,
>           DepartmentTerminology?: string,
>           ClassTrackingPerTxnLine?: boolean
>         },
>         SalesFormsPrefs?: {
>           SalesEmailBcc?: {
>             Address?: string
>           },
>           AllowServiceDate?: boolean,
>           EstimateMessage?: string,
>           EmailCopyToCompany?: boolean,
>           DefaultCustomerMessage?: string,
>           AllowShipping?: boolean,
>           SalesEmailCc?: {
>             Address?: string
>           },
>           DefaultDiscountAccount?: boolean,
>           IPNSupportEnabled?: boolean,
>           ETransactionPaymentEnabled?: boolean,
>           DefaultTerms?: {
>             name?: string,
>             value: string
>           },
>           UsingProgressInvoicing?: boolean,
>           AllowDeposit?: boolean,
>           UsingPriceLevels?: boolean,
>           DefaultShippingAccount?: boolean,
>           ETransactionAttachPDF?: boolean,
>           CustomTxnNumbers?: boolean,
>           ETransactionEnabledStatus?: string,
>           AllowEstimates?: boolean,
>           AllowDiscount?: boolean,
>           CustomField?: {
>             DefinitionId: string,
>             StringValue?: string,
>             Type?: StringType | BooleanType | NumberType | DateType,
>             Name?: string
>           }[],
>           AutoApplyCredit?: boolean
>         },
>         VendorAndPurchasesPrefs?: {
>           DefaultMarkupAccount?: {
>             name?: string,
>             value: string
>           },
>           TrackingByCustomer?: boolean,
>           POCustomField?: {
>             DefinitionId: string,
>             StringValue?: string,
>             Type?: StringType | BooleanType | NumberType | DateType,
>             Name?: string
>           }[],
>           DefaultTerms?: {
>             name?: string,
>             value: string
>           },
>           BillableExpenseTracking?: boolean,
>           DefaultMarkup?: number,
>           TPAREnabled?: boolean
>         },
>         TaxPrefs?: {
>           PartnerTaxEnabled?: boolean,
>           TaxGroupCodeRef?: string,
>           UsingSalesTax?: boolean
>         },
>         OtherPrefs?: {
>           NameValue?: {
>             Name?: string,
>             Value?: string
>           }[]
>         },
>         TimeTrackingPrefs?: {
>           WorkWeekStartDate?: Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday,
>           MarkTimeEntriesBillable?: boolean,
>           ShowBillRateToAll?: boolean,
>           UsingSalesTax?: boolean,
>           BillCustomers?: boolean
>         },
>         CurrencyPrefs?: {
>           HomeCurrency?: string,
>           MultiCurrencyEnabled?: boolean
>         },
>         Id: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Purchase?: {
>         TxnDate?: string,
>         CurrencyRef?: {
>           name?: string,
>           value: string
>         },
>         PrintStatus?: string,
>         RemitToAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         TxnSource?: string,
>         LinkedTxn?: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[],
>         GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>         TotalAmt?: number,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         },
>         DocNumber?: string,
>         PrivateNote?: string,
>         RecurDataRef?: {
>           name?: string,
>           value: string
>         },
>         Line: (
>           {
>             LinkedTxn?: {
>               TxnLineId?: string,
>               TxnId: string,
>               TxnType: string
>             }[],
>             Description?: string,
>             ItemBasedExpenseLineDetail: {
>               TaxInclusiveAmt?: number,
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               },
>               CustomerRef?: {
>                 name?: string,
>                 value: string
>               },
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               MarkupInfo?: {
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 Percent?: number,
>                 MarkUpIncomeAccountRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               BillableStatus?: Billable | NotBillable | HasBeenBilled,
>               Qty?: number,
>               UnitPrice?: number
>             },
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LineNum?: number,
>             Amount: number,
>             DetailType: ItemBasedExpenseLineDetail,
>             Id?: string
>           } | {
>             Description?: string,
>             DetailType: AccountBasedExpenseLineDetail,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LineNum?: number,
>             Amount: number,
>             Id?: string,
>             AccountBasedExpenseLineDetail: {
>               TaxAmount?: number,
>               TaxInclusiveAmt?: number,
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               MarkupInfo?: {
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 Percent?: number,
>                 MarkUpIncomeAccountRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               BillableStatus?: Billable | NotBillable | HasBeenBilled,
>               AccountRef: {
>                 name?: string,
>                 value: string
>               },
>               CustomerRef?: {
>                 name?: string,
>                 value: string
>               }
>             }
>           }
>         )[],
>         Credit?: boolean,
>         TxnTaxDetail?: {
>           TxnTaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           TotalTax?: number,
>           TaxLine?: {
>             DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>             Amount?: number,
>             TaxLineDetail: {
>               NetAmountTaxable?: number,
>               PercentBased?: boolean,
>               TaxInclusiveAmount?: number,
>               OverrideDeltaAmount?: number,
>               TaxRateRef: {
>                 name?: string,
>                 value: string
>               },
>               TaxPercent?: number
>             }
>           }[]
>         },
>         SyncToken?: string,
>         PaymentMethodRef?: {
>           name?: string,
>           value: string
>         },
>         PurchaseEx?: Record<string, any>,
>         ExchangeRate?: number,
>         DepartmentRef?: {
>           name?: string,
>           value: string
>         },
>         PaymentType: string,
>         EntityRef?: {
>           name?: string,
>           value: string
>         },
>         IncludeInAnnualTPAR?: boolean,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         Id: string
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       PurchaseOrder?: {
>         TxnDate?: string,
>         CurrencyRef?: {
>           name?: string,
>           value: string
>         },
>         CustomField?: {
>           DefinitionId: string,
>           StringValue?: string,
>           Type?: StringType | BooleanType | NumberType | DateType,
>           Name?: string
>         }[],
>         APAccountRef: {
>           name?: string,
>           value: string
>         },
>         POEmail?: {
>           Address?: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         SalesTermRef?: {
>           name?: string,
>           value: string
>         },
>         LinkedTxn?: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[],
>         GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>         TotalAmt?: number,
>         Memo?: string,
>         POStatus?: string,
>         DueDate?: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         },
>         DocNumber?: string,
>         PrivateNote?: string,
>         VendorRef: {
>           name?: string,
>           value: string
>         },
>         ShipMethodRef?: {
>           name?: string,
>           value: string
>         },
>         RecurDataRef?: {
>           name?: string,
>           value: string
>         },
>         Line: (
>           {
>             LinkedTxn?: {
>               TxnLineId?: string,
>               TxnId: string,
>               TxnType: string
>             }[],
>             Description?: string,
>             ItemBasedExpenseLineDetail: {
>               TaxInclusiveAmt?: number,
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               },
>               CustomerRef?: {
>                 name?: string,
>                 value: string
>               },
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               MarkupInfo?: {
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 Percent?: number,
>                 MarkUpIncomeAccountRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               BillableStatus?: Billable | NotBillable | HasBeenBilled,
>               Qty?: number,
>               UnitPrice?: number
>             },
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LineNum?: number,
>             Amount: number,
>             DetailType: ItemBasedExpenseLineDetail,
>             Id?: string
>           } | {
>             Description?: string,
>             DetailType: AccountBasedExpenseLineDetail,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LineNum?: number,
>             Amount: number,
>             Id?: string,
>             AccountBasedExpenseLineDetail: {
>               TaxAmount?: number,
>               TaxInclusiveAmt?: number,
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               MarkupInfo?: {
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 Percent?: number,
>                 MarkUpIncomeAccountRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               BillableStatus?: Billable | NotBillable | HasBeenBilled,
>               AccountRef: {
>                 name?: string,
>                 value: string
>               },
>               CustomerRef?: {
>                 name?: string,
>                 value: string
>               }
>             }
>           }
>         )[],
>         TxnTaxDetail?: {
>           TxnTaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           TotalTax?: number,
>           TaxLine?: {
>             DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>             Amount?: number,
>             TaxLineDetail: {
>               NetAmountTaxable?: number,
>               PercentBased?: boolean,
>               TaxInclusiveAmount?: number,
>               OverrideDeltaAmount?: number,
>               TaxRateRef: {
>                 name?: string,
>                 value: string
>               },
>               TaxPercent?: number
>             }
>           }[]
>         },
>         SyncToken?: string,
>         ShipTo?: {
>           name?: string,
>           value: string
>         },
>         ExchangeRate?: number,
>         ShipAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         VendorAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         EmailStatus?: string,
>         Id: string
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       RecurringTransaction?: {
>         Bill?: {
>           Id: string,
>           SyncToken?: string,
>           RecurringInfo?: {
>             Active?: boolean,
>             RecurType?: string,
>             ScheduleInfo?: {
>               DayOfWeek?: string,
>               StartDate?: string,
>               MaxOccurrences?: number,
>               RemindDays?: number,
>               IntervalType?: string,
>               WeekOfMonth?: string,
>               MonthOfYear?: string,
>               DaysBefore?: number,
>               NextDate?: string,
>               NumInterval?: number,
>               EndDate?: string,
>               PreviousDate?: string,
>               DayOfMonth?: number
>             },
>             Name?: string
>           },
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         },
>         CreditMemo?: {
>           Id: string,
>           SyncToken?: string,
>           RecurringInfo?: {
>             Active?: boolean,
>             RecurType?: string,
>             ScheduleInfo?: {
>               DayOfWeek?: string,
>               StartDate?: string,
>               MaxOccurrences?: number,
>               RemindDays?: number,
>               IntervalType?: string,
>               WeekOfMonth?: string,
>               MonthOfYear?: string,
>               DaysBefore?: number,
>               NextDate?: string,
>               NumInterval?: number,
>               EndDate?: string,
>               PreviousDate?: string,
>               DayOfMonth?: number
>             },
>             Name?: string
>           },
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         },
>         Deposit?: {
>           Id: string,
>           SyncToken?: string,
>           RecurringInfo?: {
>             Active?: boolean,
>             RecurType?: string,
>             ScheduleInfo?: {
>               DayOfWeek?: string,
>               StartDate?: string,
>               MaxOccurrences?: number,
>               RemindDays?: number,
>               IntervalType?: string,
>               WeekOfMonth?: string,
>               MonthOfYear?: string,
>               DaysBefore?: number,
>               NextDate?: string,
>               NumInterval?: number,
>               EndDate?: string,
>               PreviousDate?: string,
>               DayOfMonth?: number
>             },
>             Name?: string
>           },
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         },
>         Estimate?: {
>           Id: string,
>           SyncToken?: string,
>           RecurringInfo?: {
>             Active?: boolean,
>             RecurType?: string,
>             ScheduleInfo?: {
>               DayOfWeek?: string,
>               StartDate?: string,
>               MaxOccurrences?: number,
>               RemindDays?: number,
>               IntervalType?: string,
>               WeekOfMonth?: string,
>               MonthOfYear?: string,
>               DaysBefore?: number,
>               NextDate?: string,
>               NumInterval?: number,
>               EndDate?: string,
>               PreviousDate?: string,
>               DayOfMonth?: number
>             },
>             Name?: string
>           },
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         },
>         Invoice?: {
>           Id: string,
>           SyncToken?: string,
>           RecurringInfo?: {
>             Active?: boolean,
>             RecurType?: string,
>             ScheduleInfo?: {
>               DayOfWeek?: string,
>               StartDate?: string,
>               MaxOccurrences?: number,
>               RemindDays?: number,
>               IntervalType?: string,
>               WeekOfMonth?: string,
>               MonthOfYear?: string,
>               DaysBefore?: number,
>               NextDate?: string,
>               NumInterval?: number,
>               EndDate?: string,
>               PreviousDate?: string,
>               DayOfMonth?: number
>             },
>             Name?: string
>           },
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         },
>         JournalEntry?: {
>           Id: string,
>           SyncToken?: string,
>           RecurringInfo?: {
>             Active?: boolean,
>             RecurType?: string,
>             ScheduleInfo?: {
>               DayOfWeek?: string,
>               StartDate?: string,
>               MaxOccurrences?: number,
>               RemindDays?: number,
>               IntervalType?: string,
>               WeekOfMonth?: string,
>               MonthOfYear?: string,
>               DaysBefore?: number,
>               NextDate?: string,
>               NumInterval?: number,
>               EndDate?: string,
>               PreviousDate?: string,
>               DayOfMonth?: number
>             },
>             Name?: string
>           },
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         },
>         Purchase?: {
>           Id: string,
>           SyncToken?: string,
>           RecurringInfo?: {
>             Active?: boolean,
>             RecurType?: string,
>             ScheduleInfo?: {
>               DayOfWeek?: string,
>               StartDate?: string,
>               MaxOccurrences?: number,
>               RemindDays?: number,
>               IntervalType?: string,
>               WeekOfMonth?: string,
>               MonthOfYear?: string,
>               DaysBefore?: number,
>               NextDate?: string,
>               NumInterval?: number,
>               EndDate?: string,
>               PreviousDate?: string,
>               DayOfMonth?: number
>             },
>             Name?: string
>           },
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         },
>         PurchaseOrder?: {
>           Id: string,
>           SyncToken?: string,
>           RecurringInfo?: {
>             Active?: boolean,
>             RecurType?: string,
>             ScheduleInfo?: {
>               DayOfWeek?: string,
>               StartDate?: string,
>               MaxOccurrences?: number,
>               RemindDays?: number,
>               IntervalType?: string,
>               WeekOfMonth?: string,
>               MonthOfYear?: string,
>               DaysBefore?: number,
>               NextDate?: string,
>               NumInterval?: number,
>               EndDate?: string,
>               PreviousDate?: string,
>               DayOfMonth?: number
>             },
>             Name?: string
>           },
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         },
>         RefundReceipt?: {
>           Id: string,
>           SyncToken?: string,
>           RecurringInfo?: {
>             Active?: boolean,
>             RecurType?: string,
>             ScheduleInfo?: {
>               DayOfWeek?: string,
>               StartDate?: string,
>               MaxOccurrences?: number,
>               RemindDays?: number,
>               IntervalType?: string,
>               WeekOfMonth?: string,
>               MonthOfYear?: string,
>               DaysBefore?: number,
>               NextDate?: string,
>               NumInterval?: number,
>               EndDate?: string,
>               PreviousDate?: string,
>               DayOfMonth?: number
>             },
>             Name?: string
>           },
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         },
>         SalesReceipt?: {
>           Id: string,
>           SyncToken?: string,
>           RecurringInfo?: {
>             Active?: boolean,
>             RecurType?: string,
>             ScheduleInfo?: {
>               DayOfWeek?: string,
>               StartDate?: string,
>               MaxOccurrences?: number,
>               RemindDays?: number,
>               IntervalType?: string,
>               WeekOfMonth?: string,
>               MonthOfYear?: string,
>               DaysBefore?: number,
>               NextDate?: string,
>               NumInterval?: number,
>               EndDate?: string,
>               PreviousDate?: string,
>               DayOfMonth?: number
>             },
>             Name?: string
>           },
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         },
>         Transfer?: {
>           Id: string,
>           SyncToken?: string,
>           RecurringInfo?: {
>             Active?: boolean,
>             RecurType?: string,
>             ScheduleInfo?: {
>               DayOfWeek?: string,
>               StartDate?: string,
>               MaxOccurrences?: number,
>               RemindDays?: number,
>               IntervalType?: string,
>               WeekOfMonth?: string,
>               MonthOfYear?: string,
>               DaysBefore?: number,
>               NextDate?: string,
>               NumInterval?: number,
>               EndDate?: string,
>               PreviousDate?: string,
>               DayOfMonth?: number
>             },
>             Name?: string
>           },
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         },
>         VendorCredit?: {
>           Id: string,
>           SyncToken?: string,
>           RecurringInfo?: {
>             Active?: boolean,
>             RecurType?: string,
>             ScheduleInfo?: {
>               DayOfWeek?: string,
>               StartDate?: string,
>               MaxOccurrences?: number,
>               RemindDays?: number,
>               IntervalType?: string,
>               WeekOfMonth?: string,
>               MonthOfYear?: string,
>               DaysBefore?: number,
>               NextDate?: string,
>               NumInterval?: number,
>               EndDate?: string,
>               PreviousDate?: string,
>               DayOfMonth?: number
>             },
>             Name?: string
>           },
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       RefundReceipt?: {
>         TxnDate?: string,
>         CurrencyRef?: {
>           name?: string,
>           value: string
>         },
>         CustomField?: {
>           DefinitionId: string,
>           StringValue?: string,
>           Type?: StringType | BooleanType | NumberType | DateType,
>           Name?: string
>         }[],
>         HomeBalance?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         PrintStatus?: string,
>         PaymentRefNum?: string,
>         CheckPayment?: {
>           CheckNum?: string,
>           Status?: string,
>           NameOnAcct?: string,
>           AcctNum?: string,
>           BankName?: string
>         },
>         TxnSource?: string,
>         RecurDataRef?: {
>           name?: string,
>           value: string
>         },
>         GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>         TotalAmt?: number,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         },
>         DocNumber?: string,
>         PrivateNote?: string,
>         DepositToAccountRef: {
>           name?: string,
>           value: string
>         },
>         Line: (
>           {
>             Description?: string,
>             DetailType: SalesItemLineDetail,
>             SalesItemLineDetail: {
>               TaxInclusiveAmt?: number,
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               },
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               MarkupInfo?: {
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 Percent?: number,
>                 MarkUpIncomeAccountRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               ItemAccountRef?: {
>                 name?: string,
>                 value: string
>               },
>               ServiceDate?: string,
>               Qty?: number,
>               UnitPrice?: number,
>               TaxClassificationRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             LineNum?: number,
>             Amount: number,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LinkedTxn?: {
>               TxnLineId?: string,
>               TxnId: string,
>               TxnType: string
>             }[],
>             Id?: string
>           } | {
>             Description?: string,
>             SubTotalLineDetail: {
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             DetailType: SubTotalLineDetail,
>             LineNum?: number,
>             Amount: number,
>             Id?: string
>           } | {
>             DiscountLineDetail: {
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               DiscountAccountRef?: {
>                 name?: string,
>                 value: string
>               },
>               PercentBased?: boolean,
>               DiscountPercent?: number
>             },
>             Description?: string,
>             DetailType: DiscountLineDetail,
>             LineNum?: number,
>             Amount?: number,
>             Id?: string
>           } | {
>             Description?: string,
>             DetailType: DescriptionOnly,
>             LineNum?: number,
>             Amount?: number,
>             DescriptionLineDetail?: {
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               ServiceDate?: string
>             },
>             Id?: string
>           } | {
>             Description?: string,
>             GroupLineDetail: {
>               Quantity?: number,
>               Line?: {
>                 Description?: string,
>                 DetailType: SalesItemLineDetail,
>                 SalesItemLineDetail: {
>                   TaxInclusiveAmt?: number,
>                   ItemRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   ClassRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   TaxCodeRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   MarkupInfo?: {
>                     PriceLevelRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     Percent?: number,
>                     MarkUpIncomeAccountRef?: {
>                       name?: string,
>                       value: string
>                     }
>                   },
>                   ItemAccountRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   ServiceDate?: string,
>                   Qty?: number,
>                   UnitPrice?: number,
>                   TaxClassificationRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 LineNum?: number,
>                 Amount: number,
>                 CustomExtensions?: {
>                   AssociatedValues?: {
>                     Value: string,
>                     Key: string
>                   }[],
>                   ExtensionType?: string
>                 }[],
>                 LinkedTxn?: {
>                   TxnLineId?: string,
>                   TxnId: string,
>                   TxnType: string
>                 }[],
>                 Id?: string
>               }[],
>               GroupItemRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             DetailType: GroupLineDetail,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LineNum?: number,
>             Id?: string
>           }
>         )[],
>         CustomerMemo?: {
>           value: string
>         },
>         ProjectRef?: {
>           name?: string,
>           value: string
>         },
>         TaxExemptionRef?: {
>           name?: string,
>           value: string
>         },
>         CreditCardPayment?: {
>           CreditChargeResponse?: {
>             Status?: Completed | Voided | Unknown,
>             AuthCode?: string,
>             TxnAuthorizationTime?: string,
>             CCTransId?: string
>           },
>           CreditChargeInfo?: {
>             CcExpiryMonth?: number,
>             ProcessPayment?: boolean,
>             PostalCode?: string,
>             Amount?: number,
>             NameOnAcct?: string,
>             CcExpiryYear?: number,
>             Type?: string,
>             BillAddrStreet?: string
>           }
>         },
>         Balance?: number,
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         TxnTaxDetail?: {
>           TxnTaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           TotalTax?: number,
>           TaxLine?: {
>             DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>             Amount?: number,
>             TaxLineDetail: {
>               NetAmountTaxable?: number,
>               PercentBased?: boolean,
>               TaxInclusiveAmount?: number,
>               OverrideDeltaAmount?: number,
>               TaxRateRef: {
>                 name?: string,
>                 value: string
>               },
>               TaxPercent?: number
>             }
>           }[]
>         },
>         SyncToken?: string,
>         PaymentMethodRef?: {
>           name?: string,
>           value: string
>         },
>         ExchangeRate?: number,
>         ShipAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         Id: string,
>         DepartmentRef?: {
>           name?: string,
>           value: string
>         },
>         PaymentType?: Cash | Check | CreditCard | Expense | Other,
>         BillAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         ApplyTaxAfterDiscount?: boolean,
>         BillEmail?: {
>           Address?: string
>         },
>         HomeTotalAmt?: number
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       ReimburseCharge?: {
>         SyncToken?: string,
>         PrivateNote?: string,
>         LinkedTxn?: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[],
>         HasBeenInvoiced?: boolean,
>         CurrencyRef?: {
>           name?: string,
>           value: string
>         },
>         ExchangeRate?: number,
>         Line: {
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           LineNum?: number,
>           ReimburseLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           LineId?: string,
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail
>         }[],
>         HomeTotalAmt?: number,
>         Amount: number,
>         CustomerRef: {
>           name?: string,
>           value: string
>         },
>         Id: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       SalesReceipt?: {
>         TxnDate?: string,
>         ShipFromAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         CurrencyRef?: {
>           name?: string,
>           value: string
>         },
>         CustomField?: {
>           DefinitionId: string,
>           StringValue?: string,
>           Type?: StringType | BooleanType | NumberType | DateType,
>           Name?: string
>         }[],
>         HomeBalance?: number,
>         ShipDate?: string,
>         TrackingNum?: string,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         PrintStatus?: string,
>         PaymentRefNum?: string,
>         DeliveryInfo?: {
>           DeliveryType?: Email | Tradeshift,
>           DeliveryTime?: string
>         },
>         TxnSource?: string,
>         LinkedTxn?: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[],
>         RecurDataRef?: {
>           name?: string,
>           value: string
>         },
>         GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>         TotalAmt?: number,
>         ApplyTaxAfterDiscount?: boolean,
>         DocNumber?: string,
>         PrivateNote?: string,
>         DepositToAccountRef?: {
>           name?: string,
>           value: string
>         },
>         Line: (
>           {
>             Description?: string,
>             DetailType: SalesItemLineDetail,
>             SalesItemLineDetail: {
>               TaxInclusiveAmt?: number,
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               },
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               MarkupInfo?: {
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 Percent?: number,
>                 MarkUpIncomeAccountRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               ItemAccountRef?: {
>                 name?: string,
>                 value: string
>               },
>               ServiceDate?: string,
>               Qty?: number,
>               UnitPrice?: number,
>               TaxClassificationRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             LineNum?: number,
>             Amount: number,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LinkedTxn?: {
>               TxnLineId?: string,
>               TxnId: string,
>               TxnType: string
>             }[],
>             Id?: string
>           } | {
>             Description?: string,
>             SubTotalLineDetail: {
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             DetailType: SubTotalLineDetail,
>             LineNum?: number,
>             Amount: number,
>             Id?: string
>           } | {
>             DiscountLineDetail: {
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               DiscountAccountRef?: {
>                 name?: string,
>                 value: string
>               },
>               PercentBased?: boolean,
>               DiscountPercent?: number
>             },
>             Description?: string,
>             DetailType: DiscountLineDetail,
>             LineNum?: number,
>             Amount?: number,
>             Id?: string
>           } | {
>             Description?: string,
>             DetailType: DescriptionOnly,
>             LineNum?: number,
>             Amount?: number,
>             DescriptionLineDetail?: {
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               ServiceDate?: string
>             },
>             Id?: string
>           } | {
>             Description?: string,
>             GroupLineDetail: {
>               Quantity?: number,
>               Line?: {
>                 Description?: string,
>                 DetailType: SalesItemLineDetail,
>                 SalesItemLineDetail: {
>                   TaxInclusiveAmt?: number,
>                   ItemRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   ClassRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   TaxCodeRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   MarkupInfo?: {
>                     PriceLevelRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     Percent?: number,
>                     MarkUpIncomeAccountRef?: {
>                       name?: string,
>                       value: string
>                     }
>                   },
>                   ItemAccountRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   ServiceDate?: string,
>                   Qty?: number,
>                   UnitPrice?: number,
>                   TaxClassificationRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 LineNum?: number,
>                 Amount: number,
>                 CustomExtensions?: {
>                   AssociatedValues?: {
>                     Value: string,
>                     Key: string
>                   }[],
>                   ExtensionType?: string
>                 }[],
>                 LinkedTxn?: {
>                   TxnLineId?: string,
>                   TxnId: string,
>                   TxnType: string
>                 }[],
>                 Id?: string
>               }[],
>               GroupItemRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             DetailType: GroupLineDetail,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LineNum?: number,
>             Id?: string
>           }
>         )[],
>         CustomerMemo?: {
>           value: string
>         },
>         EmailStatus?: string,
>         ProjectRef?: {
>           name?: string,
>           value: string
>         },
>         CreditCardPayment?: {
>           CreditChargeResponse?: {
>             Status?: Completed | Voided | Unknown,
>             AuthCode?: string,
>             TxnAuthorizationTime?: string,
>             CCTransId?: string
>           },
>           CreditChargeInfo?: {
>             CcExpiryMonth?: number,
>             ProcessPayment?: boolean,
>             PostalCode?: string,
>             Amount?: number,
>             NameOnAcct?: string,
>             CcExpiryYear?: number,
>             Type?: string,
>             BillAddrStreet?: string
>           }
>         },
>         Balance?: number,
>         CustomerRef: {
>           name?: string,
>           value: string
>         },
>         TxnTaxDetail?: {
>           TxnTaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           TotalTax?: number,
>           TaxLine?: {
>             DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>             Amount?: number,
>             TaxLineDetail: {
>               NetAmountTaxable?: number,
>               PercentBased?: boolean,
>               TaxInclusiveAmount?: number,
>               OverrideDeltaAmount?: number,
>               TaxRateRef: {
>                 name?: string,
>                 value: string
>               },
>               TaxPercent?: number
>             }
>           }[]
>         },
>         SyncToken?: string,
>         PaymentMethodRef?: {
>           name?: string,
>           value: string
>         },
>         ExchangeRate?: number,
>         ShipAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         HomeTotalAmt?: number,
>         DepartmentRef?: {
>           name?: string,
>           value: string
>         },
>         ShipMethodRef?: {
>           name?: string,
>           value: string
>         },
>         BillAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         FreeFormAddress?: boolean,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         },
>         BillEmail?: {
>           Address?: string
>         },
>         Id: string
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       TaxAgency?: {
>         SyncToken?: string,
>         TaxAgencyConfig?: string,
>         DisplayName: string,
>         TaxTrackedOnSales?: boolean,
>         TaxTrackedOnPurchases?: boolean,
>         LastFileDate?: string,
>         Id: string,
>         TaxRegistrationNumber?: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       TaxClassification?: {
>         ApplicableTo?: (Assembly | Category | Fixed Asset | Group | Inventory | NonInventory | Other Charge | Payment | Service | Subtotal | Discount | Tax | Tax Group | Bundle)[],
>         Code?: string,
>         Name?: string,
>         Level?: string,
>         ParentRef?: {
>           name?: string,
>           value: string
>         },
>         Description?: string,
>         Id?: string
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       TaxCode?: {
>         SyncToken?: string,
>         TaxGroup?: boolean,
>         PurchaseTaxRateList?: {
>           TaxRateDetail?: {
>             TaxTypeApplicable?: string,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxOrder?: number
>           }[]
>         },
>         TaxCodeConfigType?: string,
>         Taxable?: boolean,
>         Name: string,
>         Active?: boolean,
>         Description?: string,
>         Hidden?: boolean,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         },
>         Id: string,
>         SalesTaxRateList?: {
>           TaxRateDetail?: {
>             TaxTypeApplicable?: string,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxOrder?: number
>           }[]
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       TaxPayment?: {
>         Refund?: boolean,
>         TxnDate?: string,
>         PaymentAccountRef?: {
>           name?: string,
>           value: string
>         },
>         Description?: string,
>         SyncToken?: string,
>         PaymentAmount?: number,
>         Id: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       TaxRate?: {
>         RateValue?: number,
>         SyncToken?: string,
>         Name?: string,
>         AgencyRef?: {
>           name?: string,
>           value: string
>         },
>         SpecialTaxType?: string,
>         EffectiveTaxRate?: {
>           RateValue?: number,
>           EndDate?: string,
>           EffectiveDate?: string
>         },
>         DisplayType?: string,
>         TaxReturnLineRef?: {
>           name?: string,
>           value: string
>         },
>         Active?: boolean,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         },
>         Id: string,
>         OriginalTaxRate?: string,
>         Description?: string
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       TaxService?: {
>         TaxCodeId?: string,
>         TaxCode: string,
>         TaxRateDetails: {
>           RateValue: string,
>           TaxRateId?: string,
>           TaxApplicableOn?: Purchase | Sales,
>           TaxAgencyId?: string,
>           TaxRateName?: string
>         }[]
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Term?: {
>         SyncToken?: string,
>         DayOfMonthDue?: number,
>         Name: string,
>         DiscountDayOfMonth?: number,
>         DiscountPercent?: number,
>         DiscountDays?: number,
>         DueNextMonthDays?: number,
>         DueDays?: number,
>         Active?: boolean,
>         Type?: string,
>         Id: string,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       TimeActivity?: {
>         TxnDate?: string,
>         NameOf: string,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         BreakHours BreakMinutes?: number,
>         EndTime?: string,
>         Description?: string,
>         Hours?: number,
>         Taxable?: boolean,
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         },
>         VendorRef?: {
>           name?: string,
>           value: string
>         },
>         CostRate?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ProjectRef?: {
>           name?: string,
>           value: string
>         },
>         PayrollItemRef?: {
>           name?: string,
>           value: string
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         HourlyRate?: number,
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         SyncToken?: string,
>         EmployeeRef?: {
>           name?: string,
>           value: string
>         },
>         DepartmentRef?: {
>           name?: string,
>           value: string
>         },
>         StartTime?: string,
>         Id: string
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Transfer?: {
>         SyncToken?: string,
>         PrivateNote?: string,
>         RecurDataRef?: {
>           name?: string,
>           value: string
>         },
>         TxnDate?: string,
>         ToAccountRef: {
>           name?: string,
>           value: string
>         },
>         Amount: number,
>         Id: string,
>         FromAccountRef: {
>           name?: string,
>           value: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Vendor?: {
>         PrimaryEmailAddr?: {
>           Address?: string
>         },
>         DisplayName?: string,
>         OtherContactInfo?: {
>           Type?: string,
>           Telephone?: {
>             FreeFormNumber?: string
>           }
>         },
>         Title?: string,
>         TermRef?: {
>           name?: string,
>           value: string
>         },
>         Source?: string,
>         GivenName?: string,
>         T4AEligible?: boolean,
>         Fax?: {
>           FreeFormNumber?: string
>         },
>         CurrencyRef?: {
>           name?: string,
>           value: string
>         },
>         Mobile?: {
>           FreeFormNumber?: string
>         },
>         PrimaryPhone?: {
>           FreeFormNumber?: string
>         },
>         Active?: boolean,
>         AlternatePhone?: {
>           FreeFormNumber?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         },
>         Vendor1099?: boolean,
>         CostRate?: number,
>         MiddleName?: string,
>         BillRate?: number,
>         WebAddr?: {
>           URI?: string
>         },
>         T5018Eligible?: boolean,
>         Balance?: number,
>         SyncToken?: string,
>         Suffix?: string,
>         CompanyName?: string,
>         FamilyName?: string,
>         VendorPaymentBankDetail?: {
>           BankAccountName?: string,
>           BankBranchIdentifier?: string,
>           BankAccountNumber?: string,
>           StatementText?: string
>         },
>         TaxIdentifier?: string,
>         AcctNum?: string,
>         HasTPAR?: boolean,
>         PrintOnCheckName?: string,
>         BillAddr?: {
>           City?: string,
>           Country?: string,
>           Line5?: string,
>           Line4?: string,
>           Line3?: string,
>           Line2?: string,
>           Line1?: string,
>           PostalCode?: string,
>           CountrySubDivisionCode?: string,
>           Id?: string
>         },
>         Id: string
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       VendorCredit?: {
>         DocNumber?: string,
>         SyncToken?: string,
>         PrivateNote?: string,
>         LinkedTxn?: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[],
>         VendorRef: {
>           name?: string,
>           value: string
>         },
>         RecurDataRef?: {
>           name?: string,
>           value: string
>         },
>         GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>         TotalAmt?: number,
>         ExchangeRate?: number,
>         APAccountRef?: {
>           name?: string,
>           value: string
>         },
>         DepartmentRef?: {
>           name?: string,
>           value: string
>         },
>         TxnDate?: string,
>         IncludeInAnnualTPAR?: boolean,
>         Line: (
>           {
>             LinkedTxn?: {
>               TxnLineId?: string,
>               TxnId: string,
>               TxnType: string
>             }[],
>             Description?: string,
>             ItemBasedExpenseLineDetail: {
>               TaxInclusiveAmt?: number,
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               },
>               CustomerRef?: {
>                 name?: string,
>                 value: string
>               },
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               MarkupInfo?: {
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 Percent?: number,
>                 MarkUpIncomeAccountRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               BillableStatus?: Billable | NotBillable | HasBeenBilled,
>               Qty?: number,
>               UnitPrice?: number
>             },
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LineNum?: number,
>             Amount: number,
>             DetailType: ItemBasedExpenseLineDetail,
>             Id?: string
>           } | {
>             Description?: string,
>             DetailType: AccountBasedExpenseLineDetail,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LineNum?: number,
>             Amount: number,
>             Id?: string,
>             AccountBasedExpenseLineDetail: {
>               TaxAmount?: number,
>               TaxInclusiveAmt?: number,
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               MarkupInfo?: {
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 Percent?: number,
>                 MarkUpIncomeAccountRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               BillableStatus?: Billable | NotBillable | HasBeenBilled,
>               AccountRef: {
>                 name?: string,
>                 value: string
>               },
>               CustomerRef?: {
>                 name?: string,
>                 value: string
>               }
>             }
>           }
>         )[],
>         Balance?: number,
>         Id: string,
>         CurrencyRef?: {
>           name?: string,
>           value: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     },
>     Fault?: {
>       type?: string,
>       Error?: {
>         Message?: string,
>         Detail?: string,
>         code?: string,
>         element?: string
>       }[]
>     }
>   } | {
>     bId: string,
>     Account: {
>       SyncToken?: string,
>       SubAccount?: boolean,
>       Classification?: string,
>       FullyQualifiedName?: string,
>       AccountType?: Bank | Accounts Receivable | Other Current Asset | Fixed Asset | Other Asset | Accounts Payable | Credit Card | Other Current Liability | Long Term Liability | Equity | Income | Cost of Goods Sold | Expense | Other Income | Other Expense | Non-Posting,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       CurrentBalanceWithSubAccounts?: number,
>       AcctNum?: string,
>       TaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       ParentRef?: {
>         name?: string,
>         value: string
>       },
>       AccountSubType?: string,
>       CurrentBalance?: number,
>       Description?: string,
>       Active?: boolean,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       Id: string,
>       Name: string
>     }
>   } | {
>     bId: string,
>     Attachable: {
>       Category?: string,
>       SyncToken?: string,
>       FileAccessUri?: string,
>       ContentType?: string,
>       PlaceName?: string,
>       Size?: number,
>       AttachableRef?: {
>         IncludeOnSend?: boolean,
>         LineInfo?: string,
>         NoRefOnly?: boolean,
>         CustomField?: {
>           DefinitionId: string,
>           StringValue?: string,
>           Type?: StringType | BooleanType | NumberType | DateType,
>           Name?: string
>         }[],
>         Inactive?: boolean,
>         EntityRef?: {
>           type?: string,
>           value: string,
>           name?: string
>         }
>       }[],
>       Long?: string,
>       FileName?: string,
>       Note?: string,
>       Tag?: string,
>       Lat?: string,
>       ThumbnailFileAccessUri?: string,
>       TempDownloadUri?: string,
>       ThumbnailTempDownloadUri?: string,
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     Bill: {
>       TxnDate?: string,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       APAccountRef?: {
>         name?: string,
>         value: string
>       },
>       HomeBalance?: number,
>       SalesTermRef?: {
>         name?: string,
>         value: string
>       },
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       DueDate?: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       DocNumber?: string,
>       PrivateNote?: string,
>       VendorRef: {
>         name?: string,
>         value: string
>       },
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           LinkedTxn?: {
>             TxnLineId: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Description?: string,
>           ItemBasedExpenseLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             },
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             Qty?: number,
>             UnitPrice?: number
>           },
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           DetailType: ItemBasedExpenseLineDetail,
>           Id?: string
>         } | {
>           LinkedTxn?: {
>             TxnLineId: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Description?: string,
>           DetailType: AccountBasedExpenseLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           Id?: string,
>           AccountBasedExpenseLineDetail: {
>             TaxAmount?: number,
>             TaxInclusiveAmt?: number,
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             AccountRef: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             }
>           }
>         }
>       )[],
>       Balance?: number,
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       SyncToken?: string,
>       ExchangeRate?: number,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       IncludeInAnnualTPAR?: boolean,
>       Id: string
>     }
>   } | {
>     bId: string,
>     BillPayment: {
>       DocNumber?: string,
>       SyncToken?: string,
>       PrivateNote?: string,
>       VendorRef: {
>         name?: string,
>         value: string
>       },
>       Line: {
>         Amount: number,
>         LinkedTxn: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[]
>       }[],
>       TxnDate?: string,
>       TotalAmt: number,
>       ExchangeRate?: number,
>       APAccountRef?: {
>         name?: string,
>         value: string
>       },
>       PayType: Check | CreditCard,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       CheckPayment?: {
>         PrintStatus?: NotSet | NeedToPrint | PrintComplete,
>         BankAccountRef: {
>           name?: string,
>           value: string
>         }
>       },
>       CreditCardPayment?: {
>         CCAccountRef: {
>           name?: string,
>           value: string
>         }
>       },
>       ProcessBillPayment?: boolean,
>       Id: string,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     Budget: {
>       SyncToken?: string,
>       BudgetEntryType?: Yearly | Quarterly | Monthly,
>       EndDate: string,
>       Name?: string,
>       BudgetDetail?: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         DepartmentRef?: {
>           name?: string,
>           value: string
>         },
>         Amount?: number,
>         BudgetDate?: string,
>         AccountRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }[],
>       StartDate: string,
>       BudgetType?: ProfitAndLoss | BalanceSheet,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       Active?: boolean,
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     ChangeOrder: {
>       TxnDate?: string,
>       PrintStatus?: string,
>       TxnStatus?: string,
>       LinkedTxn: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       TotalAmt?: number,
>       AcceptedDate?: string,
>       ExpirationDate?: string,
>       ApplyTaxAfterDiscount?: boolean,
>       DocNumber?: string,
>       PrivateNote?: string,
>       Line: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[],
>       CustomerMemo?: {
>         value: string
>       },
>       ProjectRef: {
>         name?: string,
>         value: string
>       },
>       CustomerRef: {
>         name?: string,
>         value: string
>       },
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       SyncToken?: string,
>       AcceptedBy?: string,
>       TotalCostAmount?: number,
>       EmailStatus?: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       BillEmail?: {
>         Address?: string
>       },
>       Id: string
>     }
>   } | {
>     bId: string,
>     Class: {
>       SyncToken?: string,
>       Name: string,
>       FullyQualifiedName?: string,
>       SubClass?: boolean,
>       ParentRef?: {
>         name?: string,
>         value: string
>       },
>       Active?: boolean,
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     CompanyCurrency: {
>       SyncToken?: string,
>       Code: string,
>       Name?: string,
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       Active?: boolean,
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     CompanyInfo: {
>       SyncToken?: string,
>       LegalAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       SupportedLanguages?: string,
>       CompanyName?: string,
>       Country?: string,
>       CompanyAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       Email?: {
>         Address?: string
>       },
>       WebAddr?: {
>         URI?: string
>       },
>       NameValue?: {
>         Name?: string,
>         Value?: string
>       }[],
>       FiscalYearStartMonth?: January | February | March | April | May | June | July | August | September | October | November | December,
>       CustomerCommunicationAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       PrimaryPhone?: {
>         FreeFormNumber?: string
>       },
>       LegalName?: string,
>       CompanyStartDate?: string,
>       EmployerId?: string,
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     CreditCardPayment: {
>       SyncToken?: string,
>       PrivateNote?: string,
>       VendorRef?: {
>         name?: string,
>         value: string
>       },
>       CreditCardAccountRef: {
>         name?: string,
>         value: string
>       },
>       TxnDate?: string,
>       Memo?: string,
>       PrintStatus?: string,
>       CheckNum?: string,
>       Amount: number,
>       BankAccountRef: {
>         name?: string,
>         value: string
>       },
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     CreditMemo: {
>       TxnDate?: string,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       HomeBalance?: number,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       PrintStatus?: string,
>       SalesTermRef?: {
>         name?: string,
>         value: string
>       },
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       RemainingCredit?: number,
>       ApplyTaxAfterDiscount?: boolean,
>       DocNumber?: string,
>       PrivateNote?: string,
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[],
>       CustomerMemo?: {
>         value: string
>       },
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       TaxExemptionRef?: {
>         name?: string,
>         value: string
>       },
>       Balance?: number,
>       CustomerRef: {
>         name?: string,
>         value: string
>       },
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       SyncToken?: string,
>       PaymentMethodRef?: {
>         name?: string,
>         value: string
>       },
>       ExchangeRate?: number,
>       ShipAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       HomeTotalAmt?: number,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       EmailStatus?: string,
>       BillAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       BillEmail?: {
>         Address?: string
>       },
>       Id: string
>     }
>   } | {
>     bId: string,
>     Customer: {
>       PrimaryEmailAddr?: {
>         Address?: string
>       },
>       DisplayName?: string,
>       Title?: string,
>       ResaleNum?: string,
>       SecondaryTaxIdentifier?: string,
>       DefaultTaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       PreferredDeliveryMethod?: string,
>       GivenName?: string,
>       SalesTermRef?: {
>         name?: string,
>         value: string
>       },
>       CustomerTypeRef?: {
>         value: string
>       },
>       FullyQualifiedName?: string,
>       Fax?: {
>         FreeFormNumber?: string
>       },
>       BillWithParent?: boolean,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       Mobile?: {
>         FreeFormNumber?: string
>       },
>       Job?: boolean,
>       BalanceWithJobs?: number,
>       PrimaryPhone?: {
>         FreeFormNumber?: string
>       },
>       OpenBalanceDate?: string,
>       Taxable?: boolean,
>       AlternatePhone?: {
>         FreeFormNumber?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       ParentRef?: {
>         name?: string,
>         value: string
>       },
>       Level?: number,
>       MiddleName?: string,
>       Notes?: string,
>       TaxExemptionReasonId?: string,
>       WebAddr?: {
>         URI?: string
>       },
>       Active?: boolean,
>       CompanyName?: string,
>       Balance?: number,
>       SyncToken?: string,
>       ShipAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       PaymentMethodRef?: {
>         name?: string,
>         value: string
>       },
>       Suffix?: string,
>       IsProject?: boolean,
>       Source?: string,
>       FamilyName?: string,
>       PrimaryTaxIdentifier?: string,
>       PrintOnCheckName?: string,
>       BillAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       Id: string
>     }
>   } | {
>     bId: string,
>     CustomerType: {
>       Active?: boolean,
>       SyncToken?: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       Name?: string,
>       Id: string
>     }
>   } | {
>     bId: string,
>     Department: {
>       SyncToken?: string,
>       Name: string,
>       FullyQualifiedName?: string,
>       SubDepartment?: boolean,
>       ParentRef?: {
>         name?: string,
>         value: string
>       },
>       Active?: boolean,
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     Deposit: {
>       SyncToken?: string,
>       PrivateNote?: string,
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       DepositToAccountRef: {
>         name?: string,
>         value: string
>       },
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       ExchangeRate?: number,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       HomeTotalAmt?: number,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       TxnSource?: string,
>       TxnDate?: string,
>       Line: (
>         {
>           Amount: number,
>           LinkedTxn: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[]
>         } | {
>           Description?: string,
>           DetailType: DepositLineDetail,
>           ProjectRef?: {
>             name?: string,
>             value: string
>           },
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           CustomField?: {
>             DefinitionId: string,
>             StringValue?: string,
>             Type?: StringType | BooleanType | NumberType | DateType,
>             Name?: string
>           }[],
>           Id?: string,
>           DepositLineDetail: {
>             PaymentMethodRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             CheckNum?: string,
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             TaxApplicableOn?: Purchase | Sales,
>             TxnType?: APCreditCard | ARRefundCreditCard | Bill | BillPaymentCheck | BuildAssembly | CarryOver | CashPurchase | Charge | Check | CreditCardPayment | CreditMemo | Deposit | EFPLiabilityCheck | EFTBillPayment | EFTRefund | Estimate | InventoryAdjustment | InventoryTransfer | Invoice | ItemReceipt | JournalEntry | LiabilityAdjustment | Paycheck | PayrollLiabilityCheck | PurchaseOrder | PriorPayment | ReceivePayment | RefundCheck | ReimburseCharge | SalesOrder | SalesReceipt | SalesTaxPaymentCheck | Transfer | TimeActivity | VendorCredit | YTDAdjustment,
>             AccountRef: {
>               name?: string,
>               value: string
>             },
>             Entity?: {
>               name?: string,
>               value: string
>             }
>           }
>         }
>       )[],
>       CashBack?: {
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         Amount: string,
>         Memo?: string
>       },
>       Id: string,
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     Employee: {
>       PrimaryEmailAddr?: {
>         Address?: string
>       },
>       DisplayName?: string,
>       Title?: string,
>       BillableTime?: boolean,
>       GivenName?: string,
>       V4IDPseudonym?: string,
>       BirthDate?: string,
>       MiddleName?: string,
>       SSN?: string,
>       PrimaryAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       PrimaryPhone?: {
>         FreeFormNumber?: string
>       },
>       Active?: boolean,
>       ReleasedDate?: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       CostRate?: number,
>       Mobile?: {
>         FreeFormNumber?: string
>       },
>       Gender?: string,
>       HiredDate?: string,
>       BillRate?: number,
>       Organization?: boolean,
>       SyncToken?: string,
>       Suffix?: string,
>       FamilyName?: string,
>       PrintOnCheckName?: string,
>       EmployeeNumber?: string,
>       Id: string
>     }
>   } | {
>     bId: string,
>     Estimate: {
>       TxnDate?: string,
>       ShipFromAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       ShipDate?: string,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       PrintStatus?: string,
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       SalesTermRef?: {
>         name?: string,
>         value: string
>       },
>       TxnStatus?: string,
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       AcceptedDate?: string,
>       ExpirationDate?: string,
>       DueDate?: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       DocNumber?: string,
>       PrivateNote?: string,
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       Line?: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[],
>       CustomerMemo?: {
>         value: string
>       },
>       EmailStatus?: string,
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       TaxExemptionRef?: {
>         name?: string,
>         value: string
>       },
>       CustomerRef: {
>         name?: string,
>         value: string
>       },
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       SyncToken?: string,
>       AcceptedBy?: string,
>       ExchangeRate?: number,
>       ShipAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       HomeTotalAmt?: number,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       ShipMethodRef?: {
>         name?: string,
>         value: string
>       },
>       BillAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       FreeFormAddress?: boolean,
>       ApplyTaxAfterDiscount?: boolean,
>       BillEmail?: {
>         Address?: string
>       },
>       Id: string
>     }
>   } | {
>     bId: string,
>     Exchangerate: {
>       SyncToken?: string,
>       AsOfDate?: string,
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       SourceCurrencyCode?: string,
>       Rate?: number,
>       TargetCurrencyCode?: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     InventoryAdjustment: {
>       DocNumber?: string,
>       TxnDate: string,
>       PrivateNote?: string,
>       SyncToken?: string,
>       Line: {
>         DetailType?: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         ItemAdjustmentLineDetail: {
>           QtyDiff: number,
>           ItemRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         Id?: number
>       }[],
>       AdjustAccountRef: {
>         name?: string,
>         value: string
>       },
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     Invoice: {
>       TxnDate?: string,
>       ShipFromAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       HomeBalance?: number,
>       ShipDate?: string,
>       TrackingNum?: string,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       PrintStatus?: string,
>       EmailStatus?: string,
>       SalesTermRef?: {
>         name?: string,
>         value: string
>       },
>       DeliveryInfo?: {
>         DeliveryType?: Email | Tradeshift,
>         DeliveryTime?: string
>       },
>       TxnSource?: string,
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       DepositToAccountRef?: {
>         name?: string,
>         value: string
>       },
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       AllowOnlineAffirmPayment?: boolean,
>       InvoiceLink?: string,
>       AllowOnlineACHPayment?: boolean,
>       TransactionLocationType?: string,
>       DueDate?: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       DocNumber?: string,
>       PrivateNote?: string,
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[],
>       BillEmailCc?: {
>         Address?: string
>       },
>       CustomerMemo?: {
>         value: string
>       },
>       AllowOnlinePayPalPayment?: boolean,
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       ExchangeRate?: number,
>       TaxExemptionRef?: {
>         name?: string,
>         value: string
>       },
>       Deposit?: number,
>       Balance?: number,
>       CustomerRef: {
>         name?: string,
>         value: string
>       },
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       AllowOnlineCreditCardPayment?: boolean,
>       SyncToken?: string,
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       ShipAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       HomeTotalAmt?: number,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       BillEmailBcc?: {
>         Address?: string
>       },
>       ShipMethodRef?: {
>         name?: string,
>         value: string
>       },
>       BillAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       FreeFormAddress?: boolean,
>       ApplyTaxAfterDiscount?: boolean,
>       BillEmail?: {
>         Address?: string
>       },
>       Id: string,
>       AllowOnlinePayment?: boolean,
>       AllowIPNPayment?: boolean
>     }
>   } | {
>     bId: string,
>     Item: {
>       Sku?: string,
>       SalesTaxIncluded?: boolean,
>       TrackQtyOnHand?: boolean,
>       SalesTaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       Source?: string,
>       InvStartDate?: string,
>       Type?: string,
>       PurchaseTaxIncluded?: boolean,
>       FullyQualifiedName?: string,
>       Description?: string,
>       SubItem?: boolean,
>       Taxable?: boolean,
>       ReorderPoint?: number,
>       PurchaseDesc?: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       PrefVendorRef?: {
>         name?: string,
>         value: string
>       },
>       Name: string,
>       Level?: number,
>       IncomeAccountRef?: {
>         name?: string,
>         value: string
>       },
>       Active?: boolean,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       ExpenseAccountRef?: {
>         name?: string,
>         value: string
>       },
>       TaxClassificationRef?: {
>         name?: string,
>         value: string
>       },
>       PurchaseTaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       SyncToken?: string,
>       PurchaseCost?: number,
>       QtyOnHand?: number,
>       AssetAccountRef?: {
>         name?: string,
>         value: string
>       },
>       ParentRef?: {
>         name?: string,
>         value: string
>       },
>       UnitPrice?: number,
>       Id: string
>     }
>   } | {
>     bId: string,
>     JournalEntry: {
>       DocNumber?: string,
>       SyncToken?: string,
>       PrivateNote?: string,
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       TxnDate?: string,
>       TotalAmt?: number,
>       ExchangeRate?: number,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       TaxRateRef?: {
>         name?: string,
>         value: string
>       },
>       HomeTotalAmt?: number,
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       Adjustment?: boolean,
>       Id: string,
>       Line: {
>         Description?: string,
>         JournalEntryLineDetail: {
>           TaxAmount?: number,
>           TaxInclusiveAmt?: number,
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           DepartmentRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           BillableStatus?: Billable | NotBillable | HasBeenBilled,
>           TaxApplicableOn?: Purchase | Sales,
>           PostingType: Credit | Debit,
>           AccountRef: {
>             name?: string,
>             value: string
>           },
>           Entity?: {
>             Type?: Customer | Employee | Job | Other | Vendor,
>             EntityRef: {
>               name?: string,
>               value: string
>             }
>           }
>         },
>         DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>         ProjectRef?: {
>           name?: string,
>           value: string
>         },
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LineNum?: number,
>         Amount: number,
>         Id?: string
>       }[],
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     Payment: {
>       SyncToken?: string,
>       PrivateNote?: string,
>       PaymentMethodRef?: {
>         name?: string,
>         value: string
>       },
>       UnappliedAmt?: number,
>       DepositToAccountRef?: {
>         name?: string,
>         value: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       TotalAmt?: number,
>       ExchangeRate?: number,
>       Line?: {
>         Amount: number,
>         LinkedTxn: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[]
>       }[],
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       TxnSource?: string,
>       PaymentRefNum?: string,
>       TxnDate?: string,
>       CreditCardPayment?: {
>         CreditChargeResponse?: {
>           Status?: Completed | Voided | Unknown,
>           AuthCode?: string,
>           TxnAuthorizationTime?: string,
>           CCTransId?: string
>         },
>         CreditChargeInfo?: {
>           CcExpiryMonth?: number,
>           ProcessPayment?: boolean,
>           PostalCode?: string,
>           Amount?: number,
>           NameOnAcct?: string,
>           CcExpiryYear?: number,
>           Type?: string,
>           BillAddrStreet?: string
>         }
>       },
>       TaxExemptionRef?: {
>         name?: string,
>         value: string
>       },
>       CustomerRef: {
>         name?: string,
>         value: string
>       },
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     PaymentMethod: {
>       SyncToken?: string,
>       Name: string,
>       Active?: boolean,
>       Type?: string,
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     Preferences: {
>       EmailMessagesPrefs?: {
>         InvoiceMessage?: {
>           Message?: string,
>           Subject?: string
>         },
>         EstimateMessage?: {
>           Message?: string,
>           Subject?: string
>         },
>         SalesReceiptMessage?: {
>           Message?: string,
>           Subject?: string
>         },
>         StatementMessage?: {
>           Message?: string,
>           Subject?: string
>         }
>       },
>       SyncToken?: string,
>       ProductAndServicesPrefs?: {
>         RevenueRecognitionEnabled?: boolean,
>         RecognitionFrequencyType?: string,
>         ForSales?: boolean,
>         QuantityOnHand?: boolean,
>         QuantityWithPriceAndRate?: boolean,
>         ForPurchase?: boolean
>       },
>       ReportPrefs?: {
>         ReportBasis?: Accrual | Cash,
>         CalcAgingReportFromTxnDate?: boolean
>       },
>       AccountingInfoPrefs?: {
>         FirstMonthOfFiscalYear?: January | February | March | April | May | June | July | August | September | October | November | December,
>         UseAccountNumbers?: boolean,
>         TaxYearMonth?: string,
>         ClassTrackingPerTxn?: boolean,
>         TrackDepartments?: boolean,
>         TaxForm?: string,
>         CustomerTerminology?: string,
>         BookCloseDate?: string,
>         DepartmentTerminology?: string,
>         ClassTrackingPerTxnLine?: boolean
>       },
>       SalesFormsPrefs?: {
>         SalesEmailBcc?: {
>           Address?: string
>         },
>         AllowServiceDate?: boolean,
>         EstimateMessage?: string,
>         EmailCopyToCompany?: boolean,
>         DefaultCustomerMessage?: string,
>         AllowShipping?: boolean,
>         SalesEmailCc?: {
>           Address?: string
>         },
>         DefaultDiscountAccount?: boolean,
>         IPNSupportEnabled?: boolean,
>         ETransactionPaymentEnabled?: boolean,
>         DefaultTerms?: {
>           name?: string,
>           value: string
>         },
>         UsingProgressInvoicing?: boolean,
>         AllowDeposit?: boolean,
>         UsingPriceLevels?: boolean,
>         DefaultShippingAccount?: boolean,
>         ETransactionAttachPDF?: boolean,
>         CustomTxnNumbers?: boolean,
>         ETransactionEnabledStatus?: string,
>         AllowEstimates?: boolean,
>         AllowDiscount?: boolean,
>         CustomField?: {
>           DefinitionId: string,
>           StringValue?: string,
>           Type?: StringType | BooleanType | NumberType | DateType,
>           Name?: string
>         }[],
>         AutoApplyCredit?: boolean
>       },
>       VendorAndPurchasesPrefs?: {
>         DefaultMarkupAccount?: {
>           name?: string,
>           value: string
>         },
>         TrackingByCustomer?: boolean,
>         POCustomField?: {
>           DefinitionId: string,
>           StringValue?: string,
>           Type?: StringType | BooleanType | NumberType | DateType,
>           Name?: string
>         }[],
>         DefaultTerms?: {
>           name?: string,
>           value: string
>         },
>         BillableExpenseTracking?: boolean,
>         DefaultMarkup?: number,
>         TPAREnabled?: boolean
>       },
>       TaxPrefs?: {
>         PartnerTaxEnabled?: boolean,
>         TaxGroupCodeRef?: string,
>         UsingSalesTax?: boolean
>       },
>       OtherPrefs?: {
>         NameValue?: {
>           Name?: string,
>           Value?: string
>         }[]
>       },
>       TimeTrackingPrefs?: {
>         WorkWeekStartDate?: Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday,
>         MarkTimeEntriesBillable?: boolean,
>         ShowBillRateToAll?: boolean,
>         UsingSalesTax?: boolean,
>         BillCustomers?: boolean
>       },
>       CurrencyPrefs?: {
>         HomeCurrency?: string,
>         MultiCurrencyEnabled?: boolean
>       },
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     Purchase: {
>       TxnDate?: string,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       PrintStatus?: string,
>       RemitToAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       TxnSource?: string,
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       DocNumber?: string,
>       PrivateNote?: string,
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Description?: string,
>           ItemBasedExpenseLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             },
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             Qty?: number,
>             UnitPrice?: number
>           },
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           DetailType: ItemBasedExpenseLineDetail,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: AccountBasedExpenseLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           Id?: string,
>           AccountBasedExpenseLineDetail: {
>             TaxAmount?: number,
>             TaxInclusiveAmt?: number,
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             AccountRef: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             }
>           }
>         }
>       )[],
>       Credit?: boolean,
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       SyncToken?: string,
>       PaymentMethodRef?: {
>         name?: string,
>         value: string
>       },
>       PurchaseEx?: Record<string, any>,
>       ExchangeRate?: number,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       PaymentType: string,
>       EntityRef?: {
>         name?: string,
>         value: string
>       },
>       IncludeInAnnualTPAR?: boolean,
>       AccountRef: {
>         name?: string,
>         value: string
>       },
>       Id: string
>     }
>   } | {
>     bId: string,
>     PurchaseOrder: {
>       TxnDate?: string,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       APAccountRef: {
>         name?: string,
>         value: string
>       },
>       POEmail?: {
>         Address?: string
>       },
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       SalesTermRef?: {
>         name?: string,
>         value: string
>       },
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       Memo?: string,
>       POStatus?: string,
>       DueDate?: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       DocNumber?: string,
>       PrivateNote?: string,
>       VendorRef: {
>         name?: string,
>         value: string
>       },
>       ShipMethodRef?: {
>         name?: string,
>         value: string
>       },
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Description?: string,
>           ItemBasedExpenseLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             },
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             Qty?: number,
>             UnitPrice?: number
>           },
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           DetailType: ItemBasedExpenseLineDetail,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: AccountBasedExpenseLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           Id?: string,
>           AccountBasedExpenseLineDetail: {
>             TaxAmount?: number,
>             TaxInclusiveAmt?: number,
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             AccountRef: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             }
>           }
>         }
>       )[],
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       SyncToken?: string,
>       ShipTo?: {
>         name?: string,
>         value: string
>       },
>       ExchangeRate?: number,
>       ShipAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       VendorAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       EmailStatus?: string,
>       Id: string
>     }
>   } | {
>     bId: string,
>     RecurringTransaction: {
>       Bill?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       CreditMemo?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       Deposit?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       Estimate?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       Invoice?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       JournalEntry?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       Purchase?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       PurchaseOrder?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       RefundReceipt?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       SalesReceipt?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       Transfer?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       VendorCredit?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }
>     }
>   } | {
>     bId: string,
>     RefundReceipt: {
>       TxnDate?: string,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       HomeBalance?: number,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       PrintStatus?: string,
>       PaymentRefNum?: string,
>       CheckPayment?: {
>         CheckNum?: string,
>         Status?: string,
>         NameOnAcct?: string,
>         AcctNum?: string,
>         BankName?: string
>       },
>       TxnSource?: string,
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       DocNumber?: string,
>       PrivateNote?: string,
>       DepositToAccountRef: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[],
>       CustomerMemo?: {
>         value: string
>       },
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       TaxExemptionRef?: {
>         name?: string,
>         value: string
>       },
>       CreditCardPayment?: {
>         CreditChargeResponse?: {
>           Status?: Completed | Voided | Unknown,
>           AuthCode?: string,
>           TxnAuthorizationTime?: string,
>           CCTransId?: string
>         },
>         CreditChargeInfo?: {
>           CcExpiryMonth?: number,
>           ProcessPayment?: boolean,
>           PostalCode?: string,
>           Amount?: number,
>           NameOnAcct?: string,
>           CcExpiryYear?: number,
>           Type?: string,
>           BillAddrStreet?: string
>         }
>       },
>       Balance?: number,
>       CustomerRef?: {
>         name?: string,
>         value: string
>       },
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       SyncToken?: string,
>       PaymentMethodRef?: {
>         name?: string,
>         value: string
>       },
>       ExchangeRate?: number,
>       ShipAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       Id: string,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       PaymentType?: Cash | Check | CreditCard | Expense | Other,
>       BillAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       ApplyTaxAfterDiscount?: boolean,
>       BillEmail?: {
>         Address?: string
>       },
>       HomeTotalAmt?: number
>     }
>   } | {
>     bId: string,
>     ReimburseCharge: {
>       SyncToken?: string,
>       PrivateNote?: string,
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       HasBeenInvoiced?: boolean,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       ExchangeRate?: number,
>       Line: {
>         LinkedTxn?: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[],
>         LineNum?: number,
>         ReimburseLineDetail: {
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           DiscountAccountRef?: {
>             name?: string,
>             value: string
>           },
>           PercentBased?: boolean,
>           DiscountPercent?: number
>         },
>         LineId?: string,
>         DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail
>       }[],
>       HomeTotalAmt?: number,
>       Amount: number,
>       CustomerRef: {
>         name?: string,
>         value: string
>       },
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     SalesReceipt: {
>       TxnDate?: string,
>       ShipFromAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       HomeBalance?: number,
>       ShipDate?: string,
>       TrackingNum?: string,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       PrintStatus?: string,
>       PaymentRefNum?: string,
>       DeliveryInfo?: {
>         DeliveryType?: Email | Tradeshift,
>         DeliveryTime?: string
>       },
>       TxnSource?: string,
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       ApplyTaxAfterDiscount?: boolean,
>       DocNumber?: string,
>       PrivateNote?: string,
>       DepositToAccountRef?: {
>         name?: string,
>         value: string
>       },
>       Line: (
>         {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         } | {
>           Description?: string,
>           SubTotalLineDetail: {
>             ItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: SubTotalLineDetail,
>           LineNum?: number,
>           Amount: number,
>           Id?: string
>         } | {
>           DiscountLineDetail: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             DiscountAccountRef?: {
>               name?: string,
>               value: string
>             },
>             PercentBased?: boolean,
>             DiscountPercent?: number
>           },
>           Description?: string,
>           DetailType: DiscountLineDetail,
>           LineNum?: number,
>           Amount?: number,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: DescriptionOnly,
>           LineNum?: number,
>           Amount?: number,
>           DescriptionLineDetail?: {
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string
>           },
>           Id?: string
>         } | {
>           Description?: string,
>           GroupLineDetail: {
>             Quantity?: number,
>             Line?: {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             }[],
>             GroupItemRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           DetailType: GroupLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Id?: string
>         }
>       )[],
>       CustomerMemo?: {
>         value: string
>       },
>       EmailStatus?: string,
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       CreditCardPayment?: {
>         CreditChargeResponse?: {
>           Status?: Completed | Voided | Unknown,
>           AuthCode?: string,
>           TxnAuthorizationTime?: string,
>           CCTransId?: string
>         },
>         CreditChargeInfo?: {
>           CcExpiryMonth?: number,
>           ProcessPayment?: boolean,
>           PostalCode?: string,
>           Amount?: number,
>           NameOnAcct?: string,
>           CcExpiryYear?: number,
>           Type?: string,
>           BillAddrStreet?: string
>         }
>       },
>       Balance?: number,
>       CustomerRef: {
>         name?: string,
>         value: string
>       },
>       TxnTaxDetail?: {
>         TxnTaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TotalTax?: number,
>         TaxLine?: {
>           DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>           Amount?: number,
>           TaxLineDetail: {
>             NetAmountTaxable?: number,
>             PercentBased?: boolean,
>             TaxInclusiveAmount?: number,
>             OverrideDeltaAmount?: number,
>             TaxRateRef: {
>               name?: string,
>               value: string
>             },
>             TaxPercent?: number
>           }
>         }[]
>       },
>       SyncToken?: string,
>       PaymentMethodRef?: {
>         name?: string,
>         value: string
>       },
>       ExchangeRate?: number,
>       ShipAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       HomeTotalAmt?: number,
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       ShipMethodRef?: {
>         name?: string,
>         value: string
>       },
>       BillAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       FreeFormAddress?: boolean,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       BillEmail?: {
>         Address?: string
>       },
>       Id: string
>     }
>   } | {
>     bId: string,
>     TaxAgency: {
>       SyncToken?: string,
>       TaxAgencyConfig?: string,
>       DisplayName: string,
>       TaxTrackedOnSales?: boolean,
>       TaxTrackedOnPurchases?: boolean,
>       LastFileDate?: string,
>       Id: string,
>       TaxRegistrationNumber?: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     TaxClassification: {
>       ApplicableTo?: (Assembly | Category | Fixed Asset | Group | Inventory | NonInventory | Other Charge | Payment | Service | Subtotal | Discount | Tax | Tax Group | Bundle)[],
>       Code?: string,
>       Name?: string,
>       Level?: string,
>       ParentRef?: {
>         name?: string,
>         value: string
>       },
>       Description?: string,
>       Id?: string
>     }
>   } | {
>     bId: string,
>     TaxCode: {
>       SyncToken?: string,
>       TaxGroup?: boolean,
>       PurchaseTaxRateList?: {
>         TaxRateDetail?: {
>           TaxTypeApplicable?: string,
>           TaxRateRef: {
>             name?: string,
>             value: string
>           },
>           TaxOrder?: number
>         }[]
>       },
>       TaxCodeConfigType?: string,
>       Taxable?: boolean,
>       Name: string,
>       Active?: boolean,
>       Description?: string,
>       Hidden?: boolean,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       Id: string,
>       SalesTaxRateList?: {
>         TaxRateDetail?: {
>           TaxTypeApplicable?: string,
>           TaxRateRef: {
>             name?: string,
>             value: string
>           },
>           TaxOrder?: number
>         }[]
>       }
>     }
>   } | {
>     bId: string,
>     TaxPayment: {
>       Refund?: boolean,
>       TxnDate?: string,
>       PaymentAccountRef?: {
>         name?: string,
>         value: string
>       },
>       Description?: string,
>       SyncToken?: string,
>       PaymentAmount?: number,
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     TaxRate: {
>       RateValue?: number,
>       SyncToken?: string,
>       Name?: string,
>       AgencyRef?: {
>         name?: string,
>         value: string
>       },
>       SpecialTaxType?: string,
>       EffectiveTaxRate?: {
>         RateValue?: number,
>         EndDate?: string,
>         EffectiveDate?: string
>       },
>       DisplayType?: string,
>       TaxReturnLineRef?: {
>         name?: string,
>         value: string
>       },
>       Active?: boolean,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       Id: string,
>       OriginalTaxRate?: string,
>       Description?: string
>     }
>   } | {
>     bId: string,
>     TaxService: {
>       TaxCodeId?: string,
>       TaxCode: string,
>       TaxRateDetails: {
>         RateValue: string,
>         TaxRateId?: string,
>         TaxApplicableOn?: Purchase | Sales,
>         TaxAgencyId?: string,
>         TaxRateName?: string
>       }[]
>     }
>   } | {
>     bId: string,
>     Term: {
>       SyncToken?: string,
>       DayOfMonthDue?: number,
>       Name: string,
>       DiscountDayOfMonth?: number,
>       DiscountPercent?: number,
>       DiscountDays?: number,
>       DueNextMonthDays?: number,
>       DueDays?: number,
>       Active?: boolean,
>       Type?: string,
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     TimeActivity: {
>       TxnDate?: string,
>       NameOf: string,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       BreakHours BreakMinutes?: number,
>       EndTime?: string,
>       Description?: string,
>       Hours?: number,
>       Taxable?: boolean,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       VendorRef?: {
>         name?: string,
>         value: string
>       },
>       CostRate?: number,
>       ItemRef?: {
>         name?: string,
>         value: string
>       },
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       PayrollItemRef?: {
>         name?: string,
>         value: string
>       },
>       BillableStatus?: Billable | NotBillable | HasBeenBilled,
>       HourlyRate?: number,
>       CustomerRef?: {
>         name?: string,
>         value: string
>       },
>       SyncToken?: string,
>       EmployeeRef?: {
>         name?: string,
>         value: string
>       },
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       StartTime?: string,
>       Id: string
>     }
>   } | {
>     bId: string,
>     Transfer: {
>       SyncToken?: string,
>       PrivateNote?: string,
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       TxnDate?: string,
>       ToAccountRef: {
>         name?: string,
>         value: string
>       },
>       Amount: number,
>       Id: string,
>       FromAccountRef: {
>         name?: string,
>         value: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     Vendor: {
>       PrimaryEmailAddr?: {
>         Address?: string
>       },
>       DisplayName?: string,
>       OtherContactInfo?: {
>         Type?: string,
>         Telephone?: {
>           FreeFormNumber?: string
>         }
>       },
>       Title?: string,
>       TermRef?: {
>         name?: string,
>         value: string
>       },
>       Source?: string,
>       GivenName?: string,
>       T4AEligible?: boolean,
>       Fax?: {
>         FreeFormNumber?: string
>       },
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       Mobile?: {
>         FreeFormNumber?: string
>       },
>       PrimaryPhone?: {
>         FreeFormNumber?: string
>       },
>       Active?: boolean,
>       AlternatePhone?: {
>         FreeFormNumber?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       },
>       Vendor1099?: boolean,
>       CostRate?: number,
>       MiddleName?: string,
>       BillRate?: number,
>       WebAddr?: {
>         URI?: string
>       },
>       T5018Eligible?: boolean,
>       Balance?: number,
>       SyncToken?: string,
>       Suffix?: string,
>       CompanyName?: string,
>       FamilyName?: string,
>       VendorPaymentBankDetail?: {
>         BankAccountName?: string,
>         BankBranchIdentifier?: string,
>         BankAccountNumber?: string,
>         StatementText?: string
>       },
>       TaxIdentifier?: string,
>       AcctNum?: string,
>       HasTPAR?: boolean,
>       PrintOnCheckName?: string,
>       BillAddr?: {
>         City?: string,
>         Country?: string,
>         Line5?: string,
>         Line4?: string,
>         Line3?: string,
>         Line2?: string,
>         Line1?: string,
>         PostalCode?: string,
>         CountrySubDivisionCode?: string,
>         Id?: string
>       },
>       Id: string
>     }
>   } | {
>     bId: string,
>     VendorCredit: {
>       DocNumber?: string,
>       SyncToken?: string,
>       PrivateNote?: string,
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       VendorRef: {
>         name?: string,
>         value: string
>       },
>       RecurDataRef?: {
>         name?: string,
>         value: string
>       },
>       GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>       TotalAmt?: number,
>       ExchangeRate?: number,
>       APAccountRef?: {
>         name?: string,
>         value: string
>       },
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       TxnDate?: string,
>       IncludeInAnnualTPAR?: boolean,
>       Line: (
>         {
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Description?: string,
>           ItemBasedExpenseLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             },
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             Qty?: number,
>             UnitPrice?: number
>           },
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           DetailType: ItemBasedExpenseLineDetail,
>           Id?: string
>         } | {
>           Description?: string,
>           DetailType: AccountBasedExpenseLineDetail,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LineNum?: number,
>           Amount: number,
>           Id?: string,
>           AccountBasedExpenseLineDetail: {
>             TaxAmount?: number,
>             TaxInclusiveAmt?: number,
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             BillableStatus?: Billable | NotBillable | HasBeenBilled,
>             AccountRef: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             }
>           }
>         }
>       )[],
>       Balance?: number,
>       Id: string,
>       CurrencyRef?: {
>         name?: string,
>         value: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   } | {
>     bId: string,
>     Fault: {
>       type?: string,
>       Error?: {
>         Message?: string,
>         Detail?: string,
>         code?: string,
>         element?: string
>       }[]
>     }
>   }
> )[]
> ```

***

## Bill

### create

`bill.create`

QuickBooks Create a bill

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.bill.create({"realmId":"12345678","body":{"VendorRef":{"value":"56"},"Line":[{"DetailType":"AccountBasedExpenseLineDetail","Amount":200,"AccountBasedExpenseLineDetail":{"AccountRef":{"value":"7"}}}]}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   VendorRef: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: AccountBasedExpenseLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string,
>       AccountBasedExpenseLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }
>     } | {
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       ItemBasedExpenseLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         PriceLevelRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         Qty?: number,
>         UnitPrice?: number
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       DetailType: ItemBasedExpenseLineDetail,
>       Id?: string
>     }
>   )[]
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Bill` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Bill full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   APAccountRef?: {
>     name?: string,
>     value: string
>   },
>   HomeBalance?: number,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   VendorRef: {
>     name?: string,
>     value: string
>   },
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       LinkedTxn?: {
>         TxnLineId: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       ItemBasedExpenseLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         PriceLevelRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         Qty?: number,
>         UnitPrice?: number
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       DetailType: ItemBasedExpenseLineDetail,
>       Id?: string
>     } | {
>       LinkedTxn?: {
>         TxnLineId: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       DetailType: AccountBasedExpenseLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string,
>       AccountBasedExpenseLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   Balance?: number,
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   ExchangeRate?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   IncludeInAnnualTPAR?: boolean,
>   Id: string
> }
> ```

***

### delete

`bill.delete`

QuickBooks Delete a bill

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.bill.delete({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Bill` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] Bill full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   Id: string,
>   domain?: QBO
> }
> ```

***

### get

`bill.get`

QuickBooks Read a bill

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.bill.get({"realmId":"12345678","billId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `billId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Bill` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Bill full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   APAccountRef?: {
>     name?: string,
>     value: string
>   },
>   HomeBalance?: number,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   VendorRef: {
>     name?: string,
>     value: string
>   },
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       LinkedTxn?: {
>         TxnLineId: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       ItemBasedExpenseLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         PriceLevelRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         Qty?: number,
>         UnitPrice?: number
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       DetailType: ItemBasedExpenseLineDetail,
>       Id?: string
>     } | {
>       LinkedTxn?: {
>         TxnLineId: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       DetailType: AccountBasedExpenseLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string,
>       AccountBasedExpenseLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   Balance?: number,
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   ExchangeRate?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   IncludeInAnnualTPAR?: boolean,
>   Id: string
> }
> ```

***

### list

`bill.list`

QuickBooks Query a bill

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.bill.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   Bill?: {
>     TxnDate?: string,
>     CurrencyRef?: {
>       name?: string,
>       value: string
>     },
>     APAccountRef?: {
>       name?: string,
>       value: string
>     },
>     HomeBalance?: number,
>     SalesTermRef?: {
>       name?: string,
>       value: string
>     },
>     LinkedTxn?: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[],
>     GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>     TotalAmt?: number,
>     DueDate?: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     },
>     DocNumber?: string,
>     PrivateNote?: string,
>     VendorRef: {
>       name?: string,
>       value: string
>     },
>     RecurDataRef?: {
>       name?: string,
>       value: string
>     },
>     Line: (
>       {
>         LinkedTxn?: {
>           TxnLineId: string,
>           TxnId: string,
>           TxnType: string
>         }[],
>         Description?: string,
>         ItemBasedExpenseLineDetail: {
>           TaxInclusiveAmt?: number,
>           ItemRef?: {
>             name?: string,
>             value: string
>           },
>           CustomerRef?: {
>             name?: string,
>             value: string
>           },
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           MarkupInfo?: {
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             Percent?: number,
>             MarkUpIncomeAccountRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           BillableStatus?: Billable | NotBillable | HasBeenBilled,
>           Qty?: number,
>           UnitPrice?: number
>         },
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LineNum?: number,
>         Amount: number,
>         DetailType: ItemBasedExpenseLineDetail,
>         Id?: string
>       } | {
>         LinkedTxn?: {
>           TxnLineId: string,
>           TxnId: string,
>           TxnType: string
>         }[],
>         Description?: string,
>         DetailType: AccountBasedExpenseLineDetail,
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LineNum?: number,
>         Amount: number,
>         Id?: string,
>         AccountBasedExpenseLineDetail: {
>           TaxAmount?: number,
>           TaxInclusiveAmt?: number,
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           MarkupInfo?: {
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             Percent?: number,
>             MarkUpIncomeAccountRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           BillableStatus?: Billable | NotBillable | HasBeenBilled,
>           AccountRef: {
>             name?: string,
>             value: string
>           },
>           CustomerRef?: {
>             name?: string,
>             value: string
>           }
>         }
>       }
>     )[],
>     Balance?: number,
>     TxnTaxDetail?: {
>       TxnTaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       TotalTax?: number,
>       TaxLine?: {
>         DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>         Amount?: number,
>         TaxLineDetail: {
>           NetAmountTaxable?: number,
>           PercentBased?: boolean,
>           TaxInclusiveAmount?: number,
>           OverrideDeltaAmount?: number,
>           TaxRateRef: {
>             name?: string,
>             value: string
>           },
>           TaxPercent?: number
>         }
>       }[]
>     },
>     SyncToken?: string,
>     ExchangeRate?: number,
>     DepartmentRef?: {
>       name?: string,
>       value: string
>     },
>     IncludeInAnnualTPAR?: boolean,
>     Id: string
>   }[]
> }
> ```

***

### update

`bill.update`

QuickBooks Full update a bill

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.bill.update({"realmId":"12345678","body":{"VendorRef":{"value":"sample"},"Line":[],"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   APAccountRef?: {
>     name?: string,
>     value: string
>   },
>   HomeBalance?: number,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   VendorRef?: {
>     name?: string,
>     value: string
>   },
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line?: (
>     {
>       LinkedTxn?: {
>         TxnLineId: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       ItemBasedExpenseLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         PriceLevelRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         Qty?: number,
>         UnitPrice?: number
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       DetailType: ItemBasedExpenseLineDetail,
>       Id?: string
>     } | {
>       LinkedTxn?: {
>         TxnLineId: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       DetailType: AccountBasedExpenseLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string,
>       AccountBasedExpenseLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   Balance?: number,
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken: string,
>   ExchangeRate?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   IncludeInAnnualTPAR?: boolean,
>   Id: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Bill` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Bill full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   APAccountRef?: {
>     name?: string,
>     value: string
>   },
>   HomeBalance?: number,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   VendorRef: {
>     name?: string,
>     value: string
>   },
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       LinkedTxn?: {
>         TxnLineId: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       ItemBasedExpenseLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         PriceLevelRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         Qty?: number,
>         UnitPrice?: number
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       DetailType: ItemBasedExpenseLineDetail,
>       Id?: string
>     } | {
>       LinkedTxn?: {
>         TxnLineId: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       DetailType: AccountBasedExpenseLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string,
>       AccountBasedExpenseLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   Balance?: number,
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   ExchangeRate?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   IncludeInAnnualTPAR?: boolean,
>   Id: string
> }
> ```

***

## Bill Payment

### create

`billPayment.create`

QuickBooks Create a billpayment

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.billPayment.create({"realmId":"12345678","body":{"VendorRef":{"value":"56"},"PayType":"Check","TotalAmt":200,"CheckPayment":{"BankAccountRef":{"value":"35"}},"Line":[{"Amount":200,"LinkedTxn":[{"TxnId":"234","TxnType":"Bill"}]}]}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   VendorRef: {
>     name?: string,
>     value: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   TotalAmt: number,
>   Line: {
>     Amount: number,
>     LinkedTxn: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[]
>   }[],
>   PayType: Check | CreditCard,
>   CreditCardPayment?: {
>     CCAccountRef: {
>       name?: string,
>       value: string
>     }
>   },
>   CheckPayment?: {
>     PrintStatus?: NotSet | NeedToPrint | PrintComplete,
>     BankAccountRef: {
>       name?: string,
>       value: string
>     }
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `BillPayment` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] BillPayment full type
>
> ```ts theme={null}
> {
>   DocNumber?: string,
>   SyncToken?: string,
>   PrivateNote?: string,
>   VendorRef: {
>     name?: string,
>     value: string
>   },
>   Line: {
>     Amount: number,
>     LinkedTxn: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[]
>   }[],
>   TxnDate?: string,
>   TotalAmt: number,
>   ExchangeRate?: number,
>   APAccountRef?: {
>     name?: string,
>     value: string
>   },
>   PayType: Check | CreditCard,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   CheckPayment?: {
>     PrintStatus?: NotSet | NeedToPrint | PrintComplete,
>     BankAccountRef: {
>       name?: string,
>       value: string
>     }
>   },
>   CreditCardPayment?: {
>     CCAccountRef: {
>       name?: string,
>       value: string
>     }
>   },
>   ProcessBillPayment?: boolean,
>   Id: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### delete

`billPayment.delete`

QuickBooks Delete a billpayment

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.billPayment.delete({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `BillPayment` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] BillPayment full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   Id: string,
>   domain?: QBO
> }
> ```

***

### get

`billPayment.get`

QuickBooks Read a billpayment

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.billPayment.get({"realmId":"12345678","billpaymentId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `billpaymentId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `BillPayment` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] BillPayment full type
>
> ```ts theme={null}
> {
>   DocNumber?: string,
>   SyncToken?: string,
>   PrivateNote?: string,
>   VendorRef: {
>     name?: string,
>     value: string
>   },
>   Line: {
>     Amount: number,
>     LinkedTxn: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[]
>   }[],
>   TxnDate?: string,
>   TotalAmt: number,
>   ExchangeRate?: number,
>   APAccountRef?: {
>     name?: string,
>     value: string
>   },
>   PayType: Check | CreditCard,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   CheckPayment?: {
>     PrintStatus?: NotSet | NeedToPrint | PrintComplete,
>     BankAccountRef: {
>       name?: string,
>       value: string
>     }
>   },
>   CreditCardPayment?: {
>     CCAccountRef: {
>       name?: string,
>       value: string
>     }
>   },
>   ProcessBillPayment?: boolean,
>   Id: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### list

`billPayment.list`

QuickBooks Query a billpayment

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.billPayment.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   BillPayment?: {
>     DocNumber?: string,
>     SyncToken?: string,
>     PrivateNote?: string,
>     VendorRef: {
>       name?: string,
>       value: string
>     },
>     Line: {
>       Amount: number,
>       LinkedTxn: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[]
>     }[],
>     TxnDate?: string,
>     TotalAmt: number,
>     ExchangeRate?: number,
>     APAccountRef?: {
>       name?: string,
>       value: string
>     },
>     PayType: Check | CreditCard,
>     DepartmentRef?: {
>       name?: string,
>       value: string
>     },
>     CheckPayment?: {
>       PrintStatus?: NotSet | NeedToPrint | PrintComplete,
>       BankAccountRef: {
>         name?: string,
>         value: string
>       }
>     },
>     CreditCardPayment?: {
>       CCAccountRef: {
>         name?: string,
>         value: string
>       }
>     },
>     ProcessBillPayment?: boolean,
>     Id: string,
>     CurrencyRef?: {
>       name?: string,
>       value: string
>     },
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   }[]
> }
> ```

***

### update

`billPayment.update`

QuickBooks Full update a billpayment

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.billPayment.update({"realmId":"12345678","body":{"VendorRef":{"value":"sample"},"Line":[],"TotalAmt":1,"PayType":"Check","Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   DocNumber?: string,
>   SyncToken: string,
>   PrivateNote?: string,
>   VendorRef?: {
>     name?: string,
>     value: string
>   },
>   Line?: {
>     Amount: number,
>     LinkedTxn: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[]
>   }[],
>   TxnDate?: string,
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   APAccountRef?: {
>     name?: string,
>     value: string
>   },
>   PayType?: Check | CreditCard,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   CheckPayment?: {
>     PrintStatus?: NotSet | NeedToPrint | PrintComplete,
>     BankAccountRef: {
>       name?: string,
>       value: string
>     }
>   },
>   CreditCardPayment?: {
>     CCAccountRef: {
>       name?: string,
>       value: string
>     }
>   },
>   ProcessBillPayment?: boolean,
>   Id: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `BillPayment` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] BillPayment full type
>
> ```ts theme={null}
> {
>   DocNumber?: string,
>   SyncToken?: string,
>   PrivateNote?: string,
>   VendorRef: {
>     name?: string,
>     value: string
>   },
>   Line: {
>     Amount: number,
>     LinkedTxn: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[]
>   }[],
>   TxnDate?: string,
>   TotalAmt: number,
>   ExchangeRate?: number,
>   APAccountRef?: {
>     name?: string,
>     value: string
>   },
>   PayType: Check | CreditCard,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   CheckPayment?: {
>     PrintStatus?: NotSet | NeedToPrint | PrintComplete,
>     BankAccountRef: {
>       name?: string,
>       value: string
>     }
>   },
>   CreditCardPayment?: {
>     CCAccountRef: {
>       name?: string,
>       value: string
>     }
>   },
>   ProcessBillPayment?: boolean,
>   Id: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### void

`billPayment.void`

QuickBooks Void a billpayment

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.billPayment.void({"realmId":"12345678","body":{"Id":"35","SyncToken":"0","sparse":true}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string,
>   sparse?: true
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `BillPayment` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] BillPayment full type
>
> ```ts theme={null}
> {
>   DocNumber?: string,
>   SyncToken?: string,
>   PrivateNote?: string,
>   VendorRef: {
>     name?: string,
>     value: string
>   },
>   Line: {
>     Amount: number,
>     LinkedTxn: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[]
>   }[],
>   TxnDate?: string,
>   TotalAmt: number,
>   ExchangeRate?: number,
>   APAccountRef?: {
>     name?: string,
>     value: string
>   },
>   PayType: Check | CreditCard,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   CheckPayment?: {
>     PrintStatus?: NotSet | NeedToPrint | PrintComplete,
>     BankAccountRef: {
>       name?: string,
>       value: string
>     }
>   },
>   CreditCardPayment?: {
>     CCAccountRef: {
>       name?: string,
>       value: string
>     }
>   },
>   ProcessBillPayment?: boolean,
>   Id: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

## Budget

### create

`budget.create`

QuickBooks Create a budget

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.budget.create({"realmId":"12345678","body":{"EndDate":"2026-12-31","StartDate":"2026-01-01"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   BudgetDetail?: {
>     ClassRef?: {
>       name?: string,
>       value: string
>     },
>     DepartmentRef?: {
>       name?: string,
>       value: string
>     },
>     Amount?: number,
>     BudgetDate?: string,
>     AccountRef?: {
>       name?: string,
>       value: string
>     },
>     CustomerRef?: {
>       name?: string,
>       value: string
>     }
>   }[],
>   BudgetEntryType?: Yearly | Quarterly | Monthly,
>   EndDate: string,
>   Name?: string,
>   StartDate: string,
>   BudgetType?: ProfitAndLoss | BalanceSheet,
>   CustomExtensions?: {
>     AssociatedValues?: {
>       Value: string,
>       Key: string
>     }[],
>     ExtensionType?: string
>   }[]
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Budget` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Budget full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   BudgetEntryType?: Yearly | Quarterly | Monthly,
>   EndDate: string,
>   Name?: string,
>   BudgetDetail?: {
>     ClassRef?: {
>       name?: string,
>       value: string
>     },
>     DepartmentRef?: {
>       name?: string,
>       value: string
>     },
>     Amount?: number,
>     BudgetDate?: string,
>     AccountRef?: {
>       name?: string,
>       value: string
>     },
>     CustomerRef?: {
>       name?: string,
>       value: string
>     }
>   }[],
>   StartDate: string,
>   BudgetType?: ProfitAndLoss | BalanceSheet,
>   CustomExtensions?: {
>     AssociatedValues?: {
>       Value: string,
>       Key: string
>     }[],
>     ExtensionType?: string
>   }[],
>   Active?: boolean,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### delete

`budget.delete`

QuickBooks Delete a budget

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.budget.delete({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Budget` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] Budget full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   Id: string,
>   domain?: QBO
> }
> ```

***

### get

`budget.get`

QuickBooks Read a budget

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.budget.get({"realmId":"12345678","budgetId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `budgetId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Budget` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Budget full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   BudgetEntryType?: Yearly | Quarterly | Monthly,
>   EndDate: string,
>   Name?: string,
>   BudgetDetail?: {
>     ClassRef?: {
>       name?: string,
>       value: string
>     },
>     DepartmentRef?: {
>       name?: string,
>       value: string
>     },
>     Amount?: number,
>     BudgetDate?: string,
>     AccountRef?: {
>       name?: string,
>       value: string
>     },
>     CustomerRef?: {
>       name?: string,
>       value: string
>     }
>   }[],
>   StartDate: string,
>   BudgetType?: ProfitAndLoss | BalanceSheet,
>   CustomExtensions?: {
>     AssociatedValues?: {
>       Value: string,
>       Key: string
>     }[],
>     ExtensionType?: string
>   }[],
>   Active?: boolean,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### list

`budget.list`

QuickBooks Query a budget

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.budget.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   Budget?: {
>     SyncToken?: string,
>     BudgetEntryType?: Yearly | Quarterly | Monthly,
>     EndDate: string,
>     Name?: string,
>     BudgetDetail?: {
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       Amount?: number,
>       BudgetDate?: string,
>       AccountRef?: {
>         name?: string,
>         value: string
>       },
>       CustomerRef?: {
>         name?: string,
>         value: string
>       }
>     }[],
>     StartDate: string,
>     BudgetType?: ProfitAndLoss | BalanceSheet,
>     CustomExtensions?: {
>       AssociatedValues?: {
>         Value: string,
>         Key: string
>       }[],
>       ExtensionType?: string
>     }[],
>     Active?: boolean,
>     Id: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   }[]
> }
> ```

***

### update

`budget.update`

QuickBooks Full update a budget

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.budget.update({"realmId":"12345678","body":{"EndDate":"2026-12-31","StartDate":"2026-01-01","Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   SyncToken: string,
>   BudgetEntryType?: Yearly | Quarterly | Monthly,
>   EndDate?: string,
>   Name?: string,
>   BudgetDetail?: {
>     ClassRef?: {
>       name?: string,
>       value: string
>     },
>     DepartmentRef?: {
>       name?: string,
>       value: string
>     },
>     Amount?: number,
>     BudgetDate?: string,
>     AccountRef?: {
>       name?: string,
>       value: string
>     },
>     CustomerRef?: {
>       name?: string,
>       value: string
>     }
>   }[],
>   StartDate?: string,
>   BudgetType?: ProfitAndLoss | BalanceSheet,
>   CustomExtensions?: {
>     AssociatedValues?: {
>       Value: string,
>       Key: string
>     }[],
>     ExtensionType?: string
>   }[],
>   Active?: boolean,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Budget` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Budget full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   BudgetEntryType?: Yearly | Quarterly | Monthly,
>   EndDate: string,
>   Name?: string,
>   BudgetDetail?: {
>     ClassRef?: {
>       name?: string,
>       value: string
>     },
>     DepartmentRef?: {
>       name?: string,
>       value: string
>     },
>     Amount?: number,
>     BudgetDate?: string,
>     AccountRef?: {
>       name?: string,
>       value: string
>     },
>     CustomerRef?: {
>       name?: string,
>       value: string
>     }
>   }[],
>   StartDate: string,
>   BudgetType?: ProfitAndLoss | BalanceSheet,
>   CustomExtensions?: {
>     AssociatedValues?: {
>       Value: string,
>       Key: string
>     }[],
>     ExtensionType?: string
>   }[],
>   Active?: boolean,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

## Cash Flow

### list

`cashFlow.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.cashFlow.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   customer?: string,
>   vendor?: string,
>   end_date?: string,
>   date_macro?: string,
>   class?: string,
>   item?: string,
>   sort_order?: string,
>   summarize_column_by?: string,
>   department?: string,
>   start_date?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Change Data Capture

### changes

`changeDataCapture.changes`

List supported QuickBooks entities changed since a recent timestamp

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.changeDataCapture.changes({"realmId":"12345678","entities":["Customer"],"changedSince":"2026-11-18T12:00:00Z"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `entities` | `(Account \| Attachable \| Bill \| BillPayment \| Budget \| ChangeOrder \| Class \| CompanyCurrency \| CompanyInfo \| CreditCardPayment \| CreditMemo \| Customer \| CustomerType \| Department \| Deposit \| Employee \| Estimate \| Exchangerate \| InventoryAdjustment \| Invoice \| Item \| JournalEntry \| Payment \| PaymentMethod \| Preferences \| Purchase \| PurchaseOrder \| RecurringTransaction \| RefundReceipt \| ReimburseCharge \| SalesReceipt \| TaxClassification \| TaxPayment \| TaxService \| Term \| Transfer \| Vendor \| VendorCredit)[]` | Yes | — |
| `changedSince` | `string` | Yes | — |

changedSince must be within the previous 30 days. JournalCode, TaxAgency, TimeActivity, TaxCode, and TaxRate are not supported. Source: [https://static.developer.intuit.com/output\_html/qbo/docs/learn/explore-the-quickbooks-online-api/change-data-capture.html](https://static.developer.intuit.com/output_html/qbo/docs/learn/explore-the-quickbooks-online-api/change-data-capture.html)

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `CDCResponse` | `object[]` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] CDCResponse full type
>
> ```ts theme={null}
> {
>   QueryResponse: (
>     {
>     } | {
>       Account?: (
>         {
>           SyncToken?: string,
>           SubAccount?: boolean,
>           Classification?: string,
>           FullyQualifiedName?: string,
>           AccountType?: Bank | Accounts Receivable | Other Current Asset | Fixed Asset | Other Asset | Accounts Payable | Credit Card | Other Current Liability | Long Term Liability | Equity | Income | Cost of Goods Sold | Expense | Other Income | Other Expense | Non-Posting,
>           CurrencyRef?: {
>             name?: string,
>             value: string
>           },
>           CurrentBalanceWithSubAccounts?: number,
>           AcctNum?: string,
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           ParentRef?: {
>             name?: string,
>             value: string
>           },
>           AccountSubType?: string,
>           CurrentBalance?: number,
>           Description?: string,
>           Active?: boolean,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           },
>           Id: string,
>           Name: string
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Attachable?: (
>         {
>           Category?: string,
>           SyncToken?: string,
>           FileAccessUri?: string,
>           ContentType?: string,
>           PlaceName?: string,
>           Size?: number,
>           AttachableRef?: {
>             IncludeOnSend?: boolean,
>             LineInfo?: string,
>             NoRefOnly?: boolean,
>             CustomField?: {
>               DefinitionId: string,
>               StringValue?: string,
>               Type?: StringType | BooleanType | NumberType | DateType,
>               Name?: string
>             }[],
>             Inactive?: boolean,
>             EntityRef?: {
>               type?: string,
>               value: string,
>               name?: string
>             }
>           }[],
>           Long?: string,
>           FileName?: string,
>           Note?: string,
>           Tag?: string,
>           Lat?: string,
>           ThumbnailFileAccessUri?: string,
>           TempDownloadUri?: string,
>           ThumbnailTempDownloadUri?: string,
>           Id: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Bill?: (
>         {
>           TxnDate?: string,
>           CurrencyRef?: {
>             name?: string,
>             value: string
>           },
>           APAccountRef?: {
>             name?: string,
>             value: string
>           },
>           HomeBalance?: number,
>           SalesTermRef?: {
>             name?: string,
>             value: string
>           },
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>           TotalAmt?: number,
>           DueDate?: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           },
>           DocNumber?: string,
>           PrivateNote?: string,
>           VendorRef: {
>             name?: string,
>             value: string
>           },
>           RecurDataRef?: {
>             name?: string,
>             value: string
>           },
>           Line: (
>             {
>               LinkedTxn?: {
>                 TxnLineId: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Description?: string,
>               ItemBasedExpenseLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 CustomerRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 BillableStatus?: Billable | NotBillable | HasBeenBilled,
>                 Qty?: number,
>                 UnitPrice?: number
>               },
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LineNum?: number,
>               Amount: number,
>               DetailType: ItemBasedExpenseLineDetail,
>               Id?: string
>             } | {
>               LinkedTxn?: {
>                 TxnLineId: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Description?: string,
>               DetailType: AccountBasedExpenseLineDetail,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LineNum?: number,
>               Amount: number,
>               Id?: string,
>               AccountBasedExpenseLineDetail: {
>                 TaxAmount?: number,
>                 TaxInclusiveAmt?: number,
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 BillableStatus?: Billable | NotBillable | HasBeenBilled,
>                 AccountRef: {
>                   name?: string,
>                   value: string
>                 },
>                 CustomerRef?: {
>                   name?: string,
>                   value: string
>                 }
>               }
>             }
>           )[],
>           Balance?: number,
>           TxnTaxDetail?: {
>             TxnTaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             TotalTax?: number,
>             TaxLine?: {
>               DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>               Amount?: number,
>               TaxLineDetail: {
>                 NetAmountTaxable?: number,
>                 PercentBased?: boolean,
>                 TaxInclusiveAmount?: number,
>                 OverrideDeltaAmount?: number,
>                 TaxRateRef: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxPercent?: number
>               }
>             }[]
>           },
>           SyncToken?: string,
>           ExchangeRate?: number,
>           DepartmentRef?: {
>             name?: string,
>             value: string
>           },
>           IncludeInAnnualTPAR?: boolean,
>           Id: string
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       BillPayment?: (
>         {
>           DocNumber?: string,
>           SyncToken?: string,
>           PrivateNote?: string,
>           VendorRef: {
>             name?: string,
>             value: string
>           },
>           Line: {
>             Amount: number,
>             LinkedTxn: {
>               TxnLineId?: string,
>               TxnId: string,
>               TxnType: string
>             }[]
>           }[],
>           TxnDate?: string,
>           TotalAmt: number,
>           ExchangeRate?: number,
>           APAccountRef?: {
>             name?: string,
>             value: string
>           },
>           PayType: Check | CreditCard,
>           DepartmentRef?: {
>             name?: string,
>             value: string
>           },
>           CheckPayment?: {
>             PrintStatus?: NotSet | NeedToPrint | PrintComplete,
>             BankAccountRef: {
>               name?: string,
>               value: string
>             }
>           },
>           CreditCardPayment?: {
>             CCAccountRef: {
>               name?: string,
>               value: string
>             }
>           },
>           ProcessBillPayment?: boolean,
>           Id: string,
>           CurrencyRef?: {
>             name?: string,
>             value: string
>           },
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Budget?: (
>         {
>           SyncToken?: string,
>           BudgetEntryType?: Yearly | Quarterly | Monthly,
>           EndDate: string,
>           Name?: string,
>           BudgetDetail?: {
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             DepartmentRef?: {
>               name?: string,
>               value: string
>             },
>             Amount?: number,
>             BudgetDate?: string,
>             AccountRef?: {
>               name?: string,
>               value: string
>             },
>             CustomerRef?: {
>               name?: string,
>               value: string
>             }
>           }[],
>           StartDate: string,
>           BudgetType?: ProfitAndLoss | BalanceSheet,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           Active?: boolean,
>           Id: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       ChangeOrder?: (
>         {
>           TxnDate?: string,
>           PrintStatus?: string,
>           TxnStatus?: string,
>           LinkedTxn: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           TotalAmt?: number,
>           AcceptedDate?: string,
>           ExpirationDate?: string,
>           ApplyTaxAfterDiscount?: boolean,
>           DocNumber?: string,
>           PrivateNote?: string,
>           Line: (
>             {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             } | {
>               Description?: string,
>               SubTotalLineDetail: {
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               DetailType: SubTotalLineDetail,
>               LineNum?: number,
>               Amount: number,
>               Id?: string
>             } | {
>               DiscountLineDetail: {
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 DiscountAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 PercentBased?: boolean,
>                 DiscountPercent?: number
>               },
>               Description?: string,
>               DetailType: DiscountLineDetail,
>               LineNum?: number,
>               Amount?: number,
>               Id?: string
>             } | {
>               Description?: string,
>               DetailType: DescriptionOnly,
>               LineNum?: number,
>               Amount?: number,
>               DescriptionLineDetail?: {
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string
>               },
>               Id?: string
>             } | {
>               Description?: string,
>               GroupLineDetail: {
>                 Quantity?: number,
>                 Line?: {
>                   Description?: string,
>                   DetailType: SalesItemLineDetail,
>                   SalesItemLineDetail: {
>                     TaxInclusiveAmt?: number,
>                     ItemRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     ClassRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     TaxCodeRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     MarkupInfo?: {
>                       PriceLevelRef?: {
>                         name?: string,
>                         value: string
>                       },
>                       Percent?: number,
>                       MarkUpIncomeAccountRef?: {
>                         name?: string,
>                         value: string
>                       }
>                     },
>                     ItemAccountRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     ServiceDate?: string,
>                     Qty?: number,
>                     UnitPrice?: number,
>                     TaxClassificationRef?: {
>                       name?: string,
>                       value: string
>                     }
>                   },
>                   LineNum?: number,
>                   Amount: number,
>                   CustomExtensions?: {
>                     AssociatedValues?: {
>                       Value: string,
>                       Key: string
>                     }[],
>                     ExtensionType?: string
>                   }[],
>                   LinkedTxn?: {
>                     TxnLineId?: string,
>                     TxnId: string,
>                     TxnType: string
>                   }[],
>                   Id?: string
>                 }[],
>                 GroupItemRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               DetailType: GroupLineDetail,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LineNum?: number,
>               Id?: string
>             }
>           )[],
>           CustomerMemo?: {
>             value: string
>           },
>           ProjectRef: {
>             name?: string,
>             value: string
>           },
>           CustomerRef: {
>             name?: string,
>             value: string
>           },
>           TxnTaxDetail?: {
>             TxnTaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             TotalTax?: number,
>             TaxLine?: {
>               DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>               Amount?: number,
>               TaxLineDetail: {
>                 NetAmountTaxable?: number,
>                 PercentBased?: boolean,
>                 TaxInclusiveAmount?: number,
>                 OverrideDeltaAmount?: number,
>                 TaxRateRef: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxPercent?: number
>               }
>             }[]
>           },
>           SyncToken?: string,
>           AcceptedBy?: string,
>           TotalCostAmount?: number,
>           EmailStatus?: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           },
>           BillEmail?: {
>             Address?: string
>           },
>           Id: string
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Class?: (
>         {
>           SyncToken?: string,
>           Name: string,
>           FullyQualifiedName?: string,
>           SubClass?: boolean,
>           ParentRef?: {
>             name?: string,
>             value: string
>           },
>           Active?: boolean,
>           Id: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       CompanyCurrency?: (
>         {
>           SyncToken?: string,
>           Code: string,
>           Name?: string,
>           CustomField?: {
>             DefinitionId: string,
>             StringValue?: string,
>             Type?: StringType | BooleanType | NumberType | DateType,
>             Name?: string
>           }[],
>           Active?: boolean,
>           Id: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       CompanyInfo?: (
>         {
>           SyncToken?: string,
>           LegalAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           SupportedLanguages?: string,
>           CompanyName?: string,
>           Country?: string,
>           CompanyAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           Email?: {
>             Address?: string
>           },
>           WebAddr?: {
>             URI?: string
>           },
>           NameValue?: {
>             Name?: string,
>             Value?: string
>           }[],
>           FiscalYearStartMonth?: January | February | March | April | May | June | July | August | September | October | November | December,
>           CustomerCommunicationAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           PrimaryPhone?: {
>             FreeFormNumber?: string
>           },
>           LegalName?: string,
>           CompanyStartDate?: string,
>           EmployerId?: string,
>           Id: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       CreditCardPayment?: (
>         {
>           SyncToken?: string,
>           PrivateNote?: string,
>           VendorRef?: {
>             name?: string,
>             value: string
>           },
>           CreditCardAccountRef: {
>             name?: string,
>             value: string
>           },
>           TxnDate?: string,
>           Memo?: string,
>           PrintStatus?: string,
>           CheckNum?: string,
>           Amount: number,
>           BankAccountRef: {
>             name?: string,
>             value: string
>           },
>           Id: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       CreditMemo?: (
>         {
>           TxnDate?: string,
>           CurrencyRef?: {
>             name?: string,
>             value: string
>           },
>           CustomField?: {
>             DefinitionId: string,
>             StringValue?: string,
>             Type?: StringType | BooleanType | NumberType | DateType,
>             Name?: string
>           }[],
>           HomeBalance?: number,
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           PrintStatus?: string,
>           SalesTermRef?: {
>             name?: string,
>             value: string
>           },
>           GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>           TotalAmt?: number,
>           RemainingCredit?: number,
>           ApplyTaxAfterDiscount?: boolean,
>           DocNumber?: string,
>           PrivateNote?: string,
>           RecurDataRef?: {
>             name?: string,
>             value: string
>           },
>           Line: (
>             {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             } | {
>               Description?: string,
>               SubTotalLineDetail: {
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               DetailType: SubTotalLineDetail,
>               LineNum?: number,
>               Amount: number,
>               Id?: string
>             } | {
>               DiscountLineDetail: {
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 DiscountAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 PercentBased?: boolean,
>                 DiscountPercent?: number
>               },
>               Description?: string,
>               DetailType: DiscountLineDetail,
>               LineNum?: number,
>               Amount?: number,
>               Id?: string
>             } | {
>               Description?: string,
>               DetailType: DescriptionOnly,
>               LineNum?: number,
>               Amount?: number,
>               DescriptionLineDetail?: {
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string
>               },
>               Id?: string
>             } | {
>               Description?: string,
>               GroupLineDetail: {
>                 Quantity?: number,
>                 Line?: {
>                   Description?: string,
>                   DetailType: SalesItemLineDetail,
>                   SalesItemLineDetail: {
>                     TaxInclusiveAmt?: number,
>                     ItemRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     ClassRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     TaxCodeRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     MarkupInfo?: {
>                       PriceLevelRef?: {
>                         name?: string,
>                         value: string
>                       },
>                       Percent?: number,
>                       MarkUpIncomeAccountRef?: {
>                         name?: string,
>                         value: string
>                       }
>                     },
>                     ItemAccountRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     ServiceDate?: string,
>                     Qty?: number,
>                     UnitPrice?: number,
>                     TaxClassificationRef?: {
>                       name?: string,
>                       value: string
>                     }
>                   },
>                   LineNum?: number,
>                   Amount: number,
>                   CustomExtensions?: {
>                     AssociatedValues?: {
>                       Value: string,
>                       Key: string
>                     }[],
>                     ExtensionType?: string
>                   }[],
>                   LinkedTxn?: {
>                     TxnLineId?: string,
>                     TxnId: string,
>                     TxnType: string
>                   }[],
>                   Id?: string
>                 }[],
>                 GroupItemRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               DetailType: GroupLineDetail,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LineNum?: number,
>               Id?: string
>             }
>           )[],
>           CustomerMemo?: {
>             value: string
>           },
>           ProjectRef?: {
>             name?: string,
>             value: string
>           },
>           TaxExemptionRef?: {
>             name?: string,
>             value: string
>           },
>           Balance?: number,
>           CustomerRef: {
>             name?: string,
>             value: string
>           },
>           TxnTaxDetail?: {
>             TxnTaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             TotalTax?: number,
>             TaxLine?: {
>               DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>               Amount?: number,
>               TaxLineDetail: {
>                 NetAmountTaxable?: number,
>                 PercentBased?: boolean,
>                 TaxInclusiveAmount?: number,
>                 OverrideDeltaAmount?: number,
>                 TaxRateRef: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxPercent?: number
>               }
>             }[]
>           },
>           SyncToken?: string,
>           PaymentMethodRef?: {
>             name?: string,
>             value: string
>           },
>           ExchangeRate?: number,
>           ShipAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           HomeTotalAmt?: number,
>           DepartmentRef?: {
>             name?: string,
>             value: string
>           },
>           EmailStatus?: string,
>           BillAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           },
>           BillEmail?: {
>             Address?: string
>           },
>           Id: string
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Customer?: (
>         {
>           PrimaryEmailAddr?: {
>             Address?: string
>           },
>           DisplayName?: string,
>           Title?: string,
>           ResaleNum?: string,
>           SecondaryTaxIdentifier?: string,
>           DefaultTaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           PreferredDeliveryMethod?: string,
>           GivenName?: string,
>           SalesTermRef?: {
>             name?: string,
>             value: string
>           },
>           CustomerTypeRef?: {
>             value: string
>           },
>           FullyQualifiedName?: string,
>           Fax?: {
>             FreeFormNumber?: string
>           },
>           BillWithParent?: boolean,
>           CurrencyRef?: {
>             name?: string,
>             value: string
>           },
>           Mobile?: {
>             FreeFormNumber?: string
>           },
>           Job?: boolean,
>           BalanceWithJobs?: number,
>           PrimaryPhone?: {
>             FreeFormNumber?: string
>           },
>           OpenBalanceDate?: string,
>           Taxable?: boolean,
>           AlternatePhone?: {
>             FreeFormNumber?: string
>           },
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           },
>           ParentRef?: {
>             name?: string,
>             value: string
>           },
>           Level?: number,
>           MiddleName?: string,
>           Notes?: string,
>           TaxExemptionReasonId?: string,
>           WebAddr?: {
>             URI?: string
>           },
>           Active?: boolean,
>           CompanyName?: string,
>           Balance?: number,
>           SyncToken?: string,
>           ShipAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           PaymentMethodRef?: {
>             name?: string,
>             value: string
>           },
>           Suffix?: string,
>           IsProject?: boolean,
>           Source?: string,
>           FamilyName?: string,
>           PrimaryTaxIdentifier?: string,
>           PrintOnCheckName?: string,
>           BillAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           Id: string
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       CustomerType?: (
>         {
>           Active?: boolean,
>           SyncToken?: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           },
>           Name?: string,
>           Id: string
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Department?: (
>         {
>           SyncToken?: string,
>           Name: string,
>           FullyQualifiedName?: string,
>           SubDepartment?: boolean,
>           ParentRef?: {
>             name?: string,
>             value: string
>           },
>           Active?: boolean,
>           Id: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Deposit?: (
>         {
>           SyncToken?: string,
>           PrivateNote?: string,
>           RecurDataRef?: {
>             name?: string,
>             value: string
>           },
>           DepositToAccountRef: {
>             name?: string,
>             value: string
>           },
>           GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>           TotalAmt?: number,
>           ExchangeRate?: number,
>           CurrencyRef?: {
>             name?: string,
>             value: string
>           },
>           HomeTotalAmt?: number,
>           DepartmentRef?: {
>             name?: string,
>             value: string
>           },
>           TxnSource?: string,
>           TxnDate?: string,
>           Line: (
>             {
>               Amount: number,
>               LinkedTxn: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[]
>             } | {
>               Description?: string,
>               DetailType: DepositLineDetail,
>               ProjectRef?: {
>                 name?: string,
>                 value: string
>               },
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LineNum?: number,
>               Amount: number,
>               CustomField?: {
>                 DefinitionId: string,
>                 StringValue?: string,
>                 Type?: StringType | BooleanType | NumberType | DateType,
>                 Name?: string
>               }[],
>               Id?: string,
>               DepositLineDetail: {
>                 PaymentMethodRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 CheckNum?: string,
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxApplicableOn?: Purchase | Sales,
>                 TxnType?: APCreditCard | ARRefundCreditCard | Bill | BillPaymentCheck | BuildAssembly | CarryOver | CashPurchase | Charge | Check | CreditCardPayment | CreditMemo | Deposit | EFPLiabilityCheck | EFTBillPayment | EFTRefund | Estimate | InventoryAdjustment | InventoryTransfer | Invoice | ItemReceipt | JournalEntry | LiabilityAdjustment | Paycheck | PayrollLiabilityCheck | PurchaseOrder | PriorPayment | ReceivePayment | RefundCheck | ReimburseCharge | SalesOrder | SalesReceipt | SalesTaxPaymentCheck | Transfer | TimeActivity | VendorCredit | YTDAdjustment,
>                 AccountRef: {
>                   name?: string,
>                   value: string
>                 },
>                 Entity?: {
>                   name?: string,
>                   value: string
>                 }
>               }
>             }
>           )[],
>           CashBack?: {
>             AccountRef: {
>               name?: string,
>               value: string
>             },
>             Amount: string,
>             Memo?: string
>           },
>           Id: string,
>           TxnTaxDetail?: {
>             TxnTaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             TotalTax?: number,
>             TaxLine?: {
>               DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>               Amount?: number,
>               TaxLineDetail: {
>                 NetAmountTaxable?: number,
>                 PercentBased?: boolean,
>                 TaxInclusiveAmount?: number,
>                 OverrideDeltaAmount?: number,
>                 TaxRateRef: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxPercent?: number
>               }
>             }[]
>           },
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Employee?: (
>         {
>           PrimaryEmailAddr?: {
>             Address?: string
>           },
>           DisplayName?: string,
>           Title?: string,
>           BillableTime?: boolean,
>           GivenName?: string,
>           V4IDPseudonym?: string,
>           BirthDate?: string,
>           MiddleName?: string,
>           SSN?: string,
>           PrimaryAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           PrimaryPhone?: {
>             FreeFormNumber?: string
>           },
>           Active?: boolean,
>           ReleasedDate?: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           },
>           CostRate?: number,
>           Mobile?: {
>             FreeFormNumber?: string
>           },
>           Gender?: string,
>           HiredDate?: string,
>           BillRate?: number,
>           Organization?: boolean,
>           SyncToken?: string,
>           Suffix?: string,
>           FamilyName?: string,
>           PrintOnCheckName?: string,
>           EmployeeNumber?: string,
>           Id: string
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Estimate?: (
>         {
>           TxnDate?: string,
>           ShipFromAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           CurrencyRef?: {
>             name?: string,
>             value: string
>           },
>           ShipDate?: string,
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           PrintStatus?: string,
>           CustomField?: {
>             DefinitionId: string,
>             StringValue?: string,
>             Type?: StringType | BooleanType | NumberType | DateType,
>             Name?: string
>           }[],
>           SalesTermRef?: {
>             name?: string,
>             value: string
>           },
>           TxnStatus?: string,
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>           TotalAmt?: number,
>           AcceptedDate?: string,
>           ExpirationDate?: string,
>           DueDate?: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           },
>           DocNumber?: string,
>           PrivateNote?: string,
>           RecurDataRef?: {
>             name?: string,
>             value: string
>           },
>           Line?: (
>             {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             } | {
>               Description?: string,
>               SubTotalLineDetail: {
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               DetailType: SubTotalLineDetail,
>               LineNum?: number,
>               Amount: number,
>               Id?: string
>             } | {
>               DiscountLineDetail: {
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 DiscountAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 PercentBased?: boolean,
>                 DiscountPercent?: number
>               },
>               Description?: string,
>               DetailType: DiscountLineDetail,
>               LineNum?: number,
>               Amount?: number,
>               Id?: string
>             } | {
>               Description?: string,
>               DetailType: DescriptionOnly,
>               LineNum?: number,
>               Amount?: number,
>               DescriptionLineDetail?: {
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string
>               },
>               Id?: string
>             } | {
>               Description?: string,
>               GroupLineDetail: {
>                 Quantity?: number,
>                 Line?: {
>                   Description?: string,
>                   DetailType: SalesItemLineDetail,
>                   SalesItemLineDetail: {
>                     TaxInclusiveAmt?: number,
>                     ItemRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     ClassRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     TaxCodeRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     MarkupInfo?: {
>                       PriceLevelRef?: {
>                         name?: string,
>                         value: string
>                       },
>                       Percent?: number,
>                       MarkUpIncomeAccountRef?: {
>                         name?: string,
>                         value: string
>                       }
>                     },
>                     ItemAccountRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     ServiceDate?: string,
>                     Qty?: number,
>                     UnitPrice?: number,
>                     TaxClassificationRef?: {
>                       name?: string,
>                       value: string
>                     }
>                   },
>                   LineNum?: number,
>                   Amount: number,
>                   CustomExtensions?: {
>                     AssociatedValues?: {
>                       Value: string,
>                       Key: string
>                     }[],
>                     ExtensionType?: string
>                   }[],
>                   LinkedTxn?: {
>                     TxnLineId?: string,
>                     TxnId: string,
>                     TxnType: string
>                   }[],
>                   Id?: string
>                 }[],
>                 GroupItemRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               DetailType: GroupLineDetail,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LineNum?: number,
>               Id?: string
>             }
>           )[],
>           CustomerMemo?: {
>             value: string
>           },
>           EmailStatus?: string,
>           ProjectRef?: {
>             name?: string,
>             value: string
>           },
>           TaxExemptionRef?: {
>             name?: string,
>             value: string
>           },
>           CustomerRef: {
>             name?: string,
>             value: string
>           },
>           TxnTaxDetail?: {
>             TxnTaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             TotalTax?: number,
>             TaxLine?: {
>               DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>               Amount?: number,
>               TaxLineDetail: {
>                 NetAmountTaxable?: number,
>                 PercentBased?: boolean,
>                 TaxInclusiveAmount?: number,
>                 OverrideDeltaAmount?: number,
>                 TaxRateRef: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxPercent?: number
>               }
>             }[]
>           },
>           SyncToken?: string,
>           AcceptedBy?: string,
>           ExchangeRate?: number,
>           ShipAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           HomeTotalAmt?: number,
>           DepartmentRef?: {
>             name?: string,
>             value: string
>           },
>           ShipMethodRef?: {
>             name?: string,
>             value: string
>           },
>           BillAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           FreeFormAddress?: boolean,
>           ApplyTaxAfterDiscount?: boolean,
>           BillEmail?: {
>             Address?: string
>           },
>           Id: string
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Exchangerate?: (
>         {
>           SyncToken?: string,
>           AsOfDate?: string,
>           CustomField?: {
>             DefinitionId: string,
>             StringValue?: string,
>             Type?: StringType | BooleanType | NumberType | DateType,
>             Name?: string
>           }[],
>           SourceCurrencyCode?: string,
>           Rate?: number,
>           TargetCurrencyCode?: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       InventoryAdjustment?: (
>         {
>           DocNumber?: string,
>           TxnDate: string,
>           PrivateNote?: string,
>           SyncToken?: string,
>           Line: {
>             DetailType?: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             ItemAdjustmentLineDetail: {
>               QtyDiff: number,
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             Id?: number
>           }[],
>           AdjustAccountRef: {
>             name?: string,
>             value: string
>           },
>           Id: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Invoice?: (
>         {
>           TxnDate?: string,
>           ShipFromAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           CurrencyRef?: {
>             name?: string,
>             value: string
>           },
>           HomeBalance?: number,
>           ShipDate?: string,
>           TrackingNum?: string,
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           PrintStatus?: string,
>           EmailStatus?: string,
>           SalesTermRef?: {
>             name?: string,
>             value: string
>           },
>           DeliveryInfo?: {
>             DeliveryType?: Email | Tradeshift,
>             DeliveryTime?: string
>           },
>           TxnSource?: string,
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           DepositToAccountRef?: {
>             name?: string,
>             value: string
>           },
>           GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>           TotalAmt?: number,
>           AllowOnlineAffirmPayment?: boolean,
>           InvoiceLink?: string,
>           AllowOnlineACHPayment?: boolean,
>           TransactionLocationType?: string,
>           DueDate?: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           },
>           DocNumber?: string,
>           PrivateNote?: string,
>           RecurDataRef?: {
>             name?: string,
>             value: string
>           },
>           Line: (
>             {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             } | {
>               Description?: string,
>               SubTotalLineDetail: {
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               DetailType: SubTotalLineDetail,
>               LineNum?: number,
>               Amount: number,
>               Id?: string
>             } | {
>               DiscountLineDetail: {
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 DiscountAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 PercentBased?: boolean,
>                 DiscountPercent?: number
>               },
>               Description?: string,
>               DetailType: DiscountLineDetail,
>               LineNum?: number,
>               Amount?: number,
>               Id?: string
>             } | {
>               Description?: string,
>               DetailType: DescriptionOnly,
>               LineNum?: number,
>               Amount?: number,
>               DescriptionLineDetail?: {
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string
>               },
>               Id?: string
>             } | {
>               Description?: string,
>               GroupLineDetail: {
>                 Quantity?: number,
>                 Line?: {
>                   Description?: string,
>                   DetailType: SalesItemLineDetail,
>                   SalesItemLineDetail: {
>                     TaxInclusiveAmt?: number,
>                     ItemRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     ClassRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     TaxCodeRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     MarkupInfo?: {
>                       PriceLevelRef?: {
>                         name?: string,
>                         value: string
>                       },
>                       Percent?: number,
>                       MarkUpIncomeAccountRef?: {
>                         name?: string,
>                         value: string
>                       }
>                     },
>                     ItemAccountRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     ServiceDate?: string,
>                     Qty?: number,
>                     UnitPrice?: number,
>                     TaxClassificationRef?: {
>                       name?: string,
>                       value: string
>                     }
>                   },
>                   LineNum?: number,
>                   Amount: number,
>                   CustomExtensions?: {
>                     AssociatedValues?: {
>                       Value: string,
>                       Key: string
>                     }[],
>                     ExtensionType?: string
>                   }[],
>                   LinkedTxn?: {
>                     TxnLineId?: string,
>                     TxnId: string,
>                     TxnType: string
>                   }[],
>                   Id?: string
>                 }[],
>                 GroupItemRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               DetailType: GroupLineDetail,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LineNum?: number,
>               Id?: string
>             }
>           )[],
>           BillEmailCc?: {
>             Address?: string
>           },
>           CustomerMemo?: {
>             value: string
>           },
>           AllowOnlinePayPalPayment?: boolean,
>           ProjectRef?: {
>             name?: string,
>             value: string
>           },
>           ExchangeRate?: number,
>           TaxExemptionRef?: {
>             name?: string,
>             value: string
>           },
>           Deposit?: number,
>           Balance?: number,
>           CustomerRef: {
>             name?: string,
>             value: string
>           },
>           TxnTaxDetail?: {
>             TxnTaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             TotalTax?: number,
>             TaxLine?: {
>               DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>               Amount?: number,
>               TaxLineDetail: {
>                 NetAmountTaxable?: number,
>                 PercentBased?: boolean,
>                 TaxInclusiveAmount?: number,
>                 OverrideDeltaAmount?: number,
>                 TaxRateRef: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxPercent?: number
>               }
>             }[]
>           },
>           AllowOnlineCreditCardPayment?: boolean,
>           SyncToken?: string,
>           CustomField?: {
>             DefinitionId: string,
>             StringValue?: string,
>             Type?: StringType | BooleanType | NumberType | DateType,
>             Name?: string
>           }[],
>           ShipAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           HomeTotalAmt?: number,
>           DepartmentRef?: {
>             name?: string,
>             value: string
>           },
>           BillEmailBcc?: {
>             Address?: string
>           },
>           ShipMethodRef?: {
>             name?: string,
>             value: string
>           },
>           BillAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           FreeFormAddress?: boolean,
>           ApplyTaxAfterDiscount?: boolean,
>           BillEmail?: {
>             Address?: string
>           },
>           Id: string,
>           AllowOnlinePayment?: boolean,
>           AllowIPNPayment?: boolean
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Item?: (
>         {
>           Sku?: string,
>           SalesTaxIncluded?: boolean,
>           TrackQtyOnHand?: boolean,
>           SalesTaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           Source?: string,
>           InvStartDate?: string,
>           Type?: string,
>           PurchaseTaxIncluded?: boolean,
>           FullyQualifiedName?: string,
>           Description?: string,
>           SubItem?: boolean,
>           Taxable?: boolean,
>           ReorderPoint?: number,
>           PurchaseDesc?: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           },
>           PrefVendorRef?: {
>             name?: string,
>             value: string
>           },
>           Name: string,
>           Level?: number,
>           IncomeAccountRef?: {
>             name?: string,
>             value: string
>           },
>           Active?: boolean,
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           ExpenseAccountRef?: {
>             name?: string,
>             value: string
>           },
>           TaxClassificationRef?: {
>             name?: string,
>             value: string
>           },
>           PurchaseTaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           SyncToken?: string,
>           PurchaseCost?: number,
>           QtyOnHand?: number,
>           AssetAccountRef?: {
>             name?: string,
>             value: string
>           },
>           ParentRef?: {
>             name?: string,
>             value: string
>           },
>           UnitPrice?: number,
>           Id: string
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       JournalEntry?: (
>         {
>           DocNumber?: string,
>           SyncToken?: string,
>           PrivateNote?: string,
>           RecurDataRef?: {
>             name?: string,
>             value: string
>           },
>           TxnDate?: string,
>           TotalAmt?: number,
>           ExchangeRate?: number,
>           CurrencyRef?: {
>             name?: string,
>             value: string
>           },
>           TaxRateRef?: {
>             name?: string,
>             value: string
>           },
>           HomeTotalAmt?: number,
>           TxnTaxDetail?: {
>             TxnTaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             TotalTax?: number,
>             TaxLine?: {
>               DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>               Amount?: number,
>               TaxLineDetail: {
>                 NetAmountTaxable?: number,
>                 PercentBased?: boolean,
>                 TaxInclusiveAmount?: number,
>                 OverrideDeltaAmount?: number,
>                 TaxRateRef: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxPercent?: number
>               }
>             }[]
>           },
>           GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>           Adjustment?: boolean,
>           Id: string,
>           Line: {
>             Description?: string,
>             JournalEntryLineDetail: {
>               TaxAmount?: number,
>               TaxInclusiveAmt?: number,
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               DepartmentRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               BillableStatus?: Billable | NotBillable | HasBeenBilled,
>               TaxApplicableOn?: Purchase | Sales,
>               PostingType: Credit | Debit,
>               AccountRef: {
>                 name?: string,
>                 value: string
>               },
>               Entity?: {
>                 Type?: Customer | Employee | Job | Other | Vendor,
>                 EntityRef: {
>                   name?: string,
>                   value: string
>                 }
>               }
>             },
>             DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>             ProjectRef?: {
>               name?: string,
>               value: string
>             },
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LineNum?: number,
>             Amount: number,
>             Id?: string
>           }[],
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Payment?: (
>         {
>           SyncToken?: string,
>           PrivateNote?: string,
>           PaymentMethodRef?: {
>             name?: string,
>             value: string
>           },
>           UnappliedAmt?: number,
>           DepositToAccountRef?: {
>             name?: string,
>             value: string
>           },
>           CurrencyRef?: {
>             name?: string,
>             value: string
>           },
>           TotalAmt?: number,
>           ExchangeRate?: number,
>           Line?: {
>             Amount: number,
>             LinkedTxn: {
>               TxnLineId?: string,
>               TxnId: string,
>               TxnType: string
>             }[]
>           }[],
>           ProjectRef?: {
>             name?: string,
>             value: string
>           },
>           TxnSource?: string,
>           PaymentRefNum?: string,
>           TxnDate?: string,
>           CreditCardPayment?: {
>             CreditChargeResponse?: {
>               Status?: Completed | Voided | Unknown,
>               AuthCode?: string,
>               TxnAuthorizationTime?: string,
>               CCTransId?: string
>             },
>             CreditChargeInfo?: {
>               CcExpiryMonth?: number,
>               ProcessPayment?: boolean,
>               PostalCode?: string,
>               Amount?: number,
>               NameOnAcct?: string,
>               CcExpiryYear?: number,
>               Type?: string,
>               BillAddrStreet?: string
>             }
>           },
>           TaxExemptionRef?: {
>             name?: string,
>             value: string
>           },
>           CustomerRef: {
>             name?: string,
>             value: string
>           },
>           Id: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       PaymentMethod?: (
>         {
>           SyncToken?: string,
>           Name: string,
>           Active?: boolean,
>           Type?: string,
>           Id: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Preferences?: (
>         {
>           EmailMessagesPrefs?: {
>             InvoiceMessage?: {
>               Message?: string,
>               Subject?: string
>             },
>             EstimateMessage?: {
>               Message?: string,
>               Subject?: string
>             },
>             SalesReceiptMessage?: {
>               Message?: string,
>               Subject?: string
>             },
>             StatementMessage?: {
>               Message?: string,
>               Subject?: string
>             }
>           },
>           SyncToken?: string,
>           ProductAndServicesPrefs?: {
>             RevenueRecognitionEnabled?: boolean,
>             RecognitionFrequencyType?: string,
>             ForSales?: boolean,
>             QuantityOnHand?: boolean,
>             QuantityWithPriceAndRate?: boolean,
>             ForPurchase?: boolean
>           },
>           ReportPrefs?: {
>             ReportBasis?: Accrual | Cash,
>             CalcAgingReportFromTxnDate?: boolean
>           },
>           AccountingInfoPrefs?: {
>             FirstMonthOfFiscalYear?: January | February | March | April | May | June | July | August | September | October | November | December,
>             UseAccountNumbers?: boolean,
>             TaxYearMonth?: string,
>             ClassTrackingPerTxn?: boolean,
>             TrackDepartments?: boolean,
>             TaxForm?: string,
>             CustomerTerminology?: string,
>             BookCloseDate?: string,
>             DepartmentTerminology?: string,
>             ClassTrackingPerTxnLine?: boolean
>           },
>           SalesFormsPrefs?: {
>             SalesEmailBcc?: {
>               Address?: string
>             },
>             AllowServiceDate?: boolean,
>             EstimateMessage?: string,
>             EmailCopyToCompany?: boolean,
>             DefaultCustomerMessage?: string,
>             AllowShipping?: boolean,
>             SalesEmailCc?: {
>               Address?: string
>             },
>             DefaultDiscountAccount?: boolean,
>             IPNSupportEnabled?: boolean,
>             ETransactionPaymentEnabled?: boolean,
>             DefaultTerms?: {
>               name?: string,
>               value: string
>             },
>             UsingProgressInvoicing?: boolean,
>             AllowDeposit?: boolean,
>             UsingPriceLevels?: boolean,
>             DefaultShippingAccount?: boolean,
>             ETransactionAttachPDF?: boolean,
>             CustomTxnNumbers?: boolean,
>             ETransactionEnabledStatus?: string,
>             AllowEstimates?: boolean,
>             AllowDiscount?: boolean,
>             CustomField?: {
>               DefinitionId: string,
>               StringValue?: string,
>               Type?: StringType | BooleanType | NumberType | DateType,
>               Name?: string
>             }[],
>             AutoApplyCredit?: boolean
>           },
>           VendorAndPurchasesPrefs?: {
>             DefaultMarkupAccount?: {
>               name?: string,
>               value: string
>             },
>             TrackingByCustomer?: boolean,
>             POCustomField?: {
>               DefinitionId: string,
>               StringValue?: string,
>               Type?: StringType | BooleanType | NumberType | DateType,
>               Name?: string
>             }[],
>             DefaultTerms?: {
>               name?: string,
>               value: string
>             },
>             BillableExpenseTracking?: boolean,
>             DefaultMarkup?: number,
>             TPAREnabled?: boolean
>           },
>           TaxPrefs?: {
>             PartnerTaxEnabled?: boolean,
>             TaxGroupCodeRef?: string,
>             UsingSalesTax?: boolean
>           },
>           OtherPrefs?: {
>             NameValue?: {
>               Name?: string,
>               Value?: string
>             }[]
>           },
>           TimeTrackingPrefs?: {
>             WorkWeekStartDate?: Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday,
>             MarkTimeEntriesBillable?: boolean,
>             ShowBillRateToAll?: boolean,
>             UsingSalesTax?: boolean,
>             BillCustomers?: boolean
>           },
>           CurrencyPrefs?: {
>             HomeCurrency?: string,
>             MultiCurrencyEnabled?: boolean
>           },
>           Id: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Purchase?: (
>         {
>           TxnDate?: string,
>           CurrencyRef?: {
>             name?: string,
>             value: string
>           },
>           PrintStatus?: string,
>           RemitToAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           TxnSource?: string,
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>           TotalAmt?: number,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           },
>           DocNumber?: string,
>           PrivateNote?: string,
>           RecurDataRef?: {
>             name?: string,
>             value: string
>           },
>           Line: (
>             {
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Description?: string,
>               ItemBasedExpenseLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 CustomerRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 BillableStatus?: Billable | NotBillable | HasBeenBilled,
>                 Qty?: number,
>                 UnitPrice?: number
>               },
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LineNum?: number,
>               Amount: number,
>               DetailType: ItemBasedExpenseLineDetail,
>               Id?: string
>             } | {
>               Description?: string,
>               DetailType: AccountBasedExpenseLineDetail,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LineNum?: number,
>               Amount: number,
>               Id?: string,
>               AccountBasedExpenseLineDetail: {
>                 TaxAmount?: number,
>                 TaxInclusiveAmt?: number,
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 BillableStatus?: Billable | NotBillable | HasBeenBilled,
>                 AccountRef: {
>                   name?: string,
>                   value: string
>                 },
>                 CustomerRef?: {
>                   name?: string,
>                   value: string
>                 }
>               }
>             }
>           )[],
>           Credit?: boolean,
>           TxnTaxDetail?: {
>             TxnTaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             TotalTax?: number,
>             TaxLine?: {
>               DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>               Amount?: number,
>               TaxLineDetail: {
>                 NetAmountTaxable?: number,
>                 PercentBased?: boolean,
>                 TaxInclusiveAmount?: number,
>                 OverrideDeltaAmount?: number,
>                 TaxRateRef: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxPercent?: number
>               }
>             }[]
>           },
>           SyncToken?: string,
>           PaymentMethodRef?: {
>             name?: string,
>             value: string
>           },
>           PurchaseEx?: Record<string, any>,
>           ExchangeRate?: number,
>           DepartmentRef?: {
>             name?: string,
>             value: string
>           },
>           PaymentType: string,
>           EntityRef?: {
>             name?: string,
>             value: string
>           },
>           IncludeInAnnualTPAR?: boolean,
>           AccountRef: {
>             name?: string,
>             value: string
>           },
>           Id: string
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       PurchaseOrder?: (
>         {
>           TxnDate?: string,
>           CurrencyRef?: {
>             name?: string,
>             value: string
>           },
>           CustomField?: {
>             DefinitionId: string,
>             StringValue?: string,
>             Type?: StringType | BooleanType | NumberType | DateType,
>             Name?: string
>           }[],
>           APAccountRef: {
>             name?: string,
>             value: string
>           },
>           POEmail?: {
>             Address?: string
>           },
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           SalesTermRef?: {
>             name?: string,
>             value: string
>           },
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>           TotalAmt?: number,
>           Memo?: string,
>           POStatus?: string,
>           DueDate?: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           },
>           DocNumber?: string,
>           PrivateNote?: string,
>           VendorRef: {
>             name?: string,
>             value: string
>           },
>           ShipMethodRef?: {
>             name?: string,
>             value: string
>           },
>           RecurDataRef?: {
>             name?: string,
>             value: string
>           },
>           Line: (
>             {
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Description?: string,
>               ItemBasedExpenseLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 CustomerRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 BillableStatus?: Billable | NotBillable | HasBeenBilled,
>                 Qty?: number,
>                 UnitPrice?: number
>               },
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LineNum?: number,
>               Amount: number,
>               DetailType: ItemBasedExpenseLineDetail,
>               Id?: string
>             } | {
>               Description?: string,
>               DetailType: AccountBasedExpenseLineDetail,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LineNum?: number,
>               Amount: number,
>               Id?: string,
>               AccountBasedExpenseLineDetail: {
>                 TaxAmount?: number,
>                 TaxInclusiveAmt?: number,
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 BillableStatus?: Billable | NotBillable | HasBeenBilled,
>                 AccountRef: {
>                   name?: string,
>                   value: string
>                 },
>                 CustomerRef?: {
>                   name?: string,
>                   value: string
>                 }
>               }
>             }
>           )[],
>           TxnTaxDetail?: {
>             TxnTaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             TotalTax?: number,
>             TaxLine?: {
>               DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>               Amount?: number,
>               TaxLineDetail: {
>                 NetAmountTaxable?: number,
>                 PercentBased?: boolean,
>                 TaxInclusiveAmount?: number,
>                 OverrideDeltaAmount?: number,
>                 TaxRateRef: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxPercent?: number
>               }
>             }[]
>           },
>           SyncToken?: string,
>           ShipTo?: {
>             name?: string,
>             value: string
>           },
>           ExchangeRate?: number,
>           ShipAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           VendorAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           EmailStatus?: string,
>           Id: string
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       RecurringTransaction?: (
>         {
>           Bill?: {
>             Id: string,
>             SyncToken?: string,
>             RecurringInfo?: {
>               Active?: boolean,
>               RecurType?: string,
>               ScheduleInfo?: {
>                 DayOfWeek?: string,
>                 StartDate?: string,
>                 MaxOccurrences?: number,
>                 RemindDays?: number,
>                 IntervalType?: string,
>                 WeekOfMonth?: string,
>                 MonthOfYear?: string,
>                 DaysBefore?: number,
>                 NextDate?: string,
>                 NumInterval?: number,
>                 EndDate?: string,
>                 PreviousDate?: string,
>                 DayOfMonth?: number
>               },
>               Name?: string
>             },
>             MetaData?: {
>               CreateTime?: string,
>               LastUpdatedTime?: string
>             }
>           },
>           CreditMemo?: {
>             Id: string,
>             SyncToken?: string,
>             RecurringInfo?: {
>               Active?: boolean,
>               RecurType?: string,
>               ScheduleInfo?: {
>                 DayOfWeek?: string,
>                 StartDate?: string,
>                 MaxOccurrences?: number,
>                 RemindDays?: number,
>                 IntervalType?: string,
>                 WeekOfMonth?: string,
>                 MonthOfYear?: string,
>                 DaysBefore?: number,
>                 NextDate?: string,
>                 NumInterval?: number,
>                 EndDate?: string,
>                 PreviousDate?: string,
>                 DayOfMonth?: number
>               },
>               Name?: string
>             },
>             MetaData?: {
>               CreateTime?: string,
>               LastUpdatedTime?: string
>             }
>           },
>           Deposit?: {
>             Id: string,
>             SyncToken?: string,
>             RecurringInfo?: {
>               Active?: boolean,
>               RecurType?: string,
>               ScheduleInfo?: {
>                 DayOfWeek?: string,
>                 StartDate?: string,
>                 MaxOccurrences?: number,
>                 RemindDays?: number,
>                 IntervalType?: string,
>                 WeekOfMonth?: string,
>                 MonthOfYear?: string,
>                 DaysBefore?: number,
>                 NextDate?: string,
>                 NumInterval?: number,
>                 EndDate?: string,
>                 PreviousDate?: string,
>                 DayOfMonth?: number
>               },
>               Name?: string
>             },
>             MetaData?: {
>               CreateTime?: string,
>               LastUpdatedTime?: string
>             }
>           },
>           Estimate?: {
>             Id: string,
>             SyncToken?: string,
>             RecurringInfo?: {
>               Active?: boolean,
>               RecurType?: string,
>               ScheduleInfo?: {
>                 DayOfWeek?: string,
>                 StartDate?: string,
>                 MaxOccurrences?: number,
>                 RemindDays?: number,
>                 IntervalType?: string,
>                 WeekOfMonth?: string,
>                 MonthOfYear?: string,
>                 DaysBefore?: number,
>                 NextDate?: string,
>                 NumInterval?: number,
>                 EndDate?: string,
>                 PreviousDate?: string,
>                 DayOfMonth?: number
>               },
>               Name?: string
>             },
>             MetaData?: {
>               CreateTime?: string,
>               LastUpdatedTime?: string
>             }
>           },
>           Invoice?: {
>             Id: string,
>             SyncToken?: string,
>             RecurringInfo?: {
>               Active?: boolean,
>               RecurType?: string,
>               ScheduleInfo?: {
>                 DayOfWeek?: string,
>                 StartDate?: string,
>                 MaxOccurrences?: number,
>                 RemindDays?: number,
>                 IntervalType?: string,
>                 WeekOfMonth?: string,
>                 MonthOfYear?: string,
>                 DaysBefore?: number,
>                 NextDate?: string,
>                 NumInterval?: number,
>                 EndDate?: string,
>                 PreviousDate?: string,
>                 DayOfMonth?: number
>               },
>               Name?: string
>             },
>             MetaData?: {
>               CreateTime?: string,
>               LastUpdatedTime?: string
>             }
>           },
>           JournalEntry?: {
>             Id: string,
>             SyncToken?: string,
>             RecurringInfo?: {
>               Active?: boolean,
>               RecurType?: string,
>               ScheduleInfo?: {
>                 DayOfWeek?: string,
>                 StartDate?: string,
>                 MaxOccurrences?: number,
>                 RemindDays?: number,
>                 IntervalType?: string,
>                 WeekOfMonth?: string,
>                 MonthOfYear?: string,
>                 DaysBefore?: number,
>                 NextDate?: string,
>                 NumInterval?: number,
>                 EndDate?: string,
>                 PreviousDate?: string,
>                 DayOfMonth?: number
>               },
>               Name?: string
>             },
>             MetaData?: {
>               CreateTime?: string,
>               LastUpdatedTime?: string
>             }
>           },
>           Purchase?: {
>             Id: string,
>             SyncToken?: string,
>             RecurringInfo?: {
>               Active?: boolean,
>               RecurType?: string,
>               ScheduleInfo?: {
>                 DayOfWeek?: string,
>                 StartDate?: string,
>                 MaxOccurrences?: number,
>                 RemindDays?: number,
>                 IntervalType?: string,
>                 WeekOfMonth?: string,
>                 MonthOfYear?: string,
>                 DaysBefore?: number,
>                 NextDate?: string,
>                 NumInterval?: number,
>                 EndDate?: string,
>                 PreviousDate?: string,
>                 DayOfMonth?: number
>               },
>               Name?: string
>             },
>             MetaData?: {
>               CreateTime?: string,
>               LastUpdatedTime?: string
>             }
>           },
>           PurchaseOrder?: {
>             Id: string,
>             SyncToken?: string,
>             RecurringInfo?: {
>               Active?: boolean,
>               RecurType?: string,
>               ScheduleInfo?: {
>                 DayOfWeek?: string,
>                 StartDate?: string,
>                 MaxOccurrences?: number,
>                 RemindDays?: number,
>                 IntervalType?: string,
>                 WeekOfMonth?: string,
>                 MonthOfYear?: string,
>                 DaysBefore?: number,
>                 NextDate?: string,
>                 NumInterval?: number,
>                 EndDate?: string,
>                 PreviousDate?: string,
>                 DayOfMonth?: number
>               },
>               Name?: string
>             },
>             MetaData?: {
>               CreateTime?: string,
>               LastUpdatedTime?: string
>             }
>           },
>           RefundReceipt?: {
>             Id: string,
>             SyncToken?: string,
>             RecurringInfo?: {
>               Active?: boolean,
>               RecurType?: string,
>               ScheduleInfo?: {
>                 DayOfWeek?: string,
>                 StartDate?: string,
>                 MaxOccurrences?: number,
>                 RemindDays?: number,
>                 IntervalType?: string,
>                 WeekOfMonth?: string,
>                 MonthOfYear?: string,
>                 DaysBefore?: number,
>                 NextDate?: string,
>                 NumInterval?: number,
>                 EndDate?: string,
>                 PreviousDate?: string,
>                 DayOfMonth?: number
>               },
>               Name?: string
>             },
>             MetaData?: {
>               CreateTime?: string,
>               LastUpdatedTime?: string
>             }
>           },
>           SalesReceipt?: {
>             Id: string,
>             SyncToken?: string,
>             RecurringInfo?: {
>               Active?: boolean,
>               RecurType?: string,
>               ScheduleInfo?: {
>                 DayOfWeek?: string,
>                 StartDate?: string,
>                 MaxOccurrences?: number,
>                 RemindDays?: number,
>                 IntervalType?: string,
>                 WeekOfMonth?: string,
>                 MonthOfYear?: string,
>                 DaysBefore?: number,
>                 NextDate?: string,
>                 NumInterval?: number,
>                 EndDate?: string,
>                 PreviousDate?: string,
>                 DayOfMonth?: number
>               },
>               Name?: string
>             },
>             MetaData?: {
>               CreateTime?: string,
>               LastUpdatedTime?: string
>             }
>           },
>           Transfer?: {
>             Id: string,
>             SyncToken?: string,
>             RecurringInfo?: {
>               Active?: boolean,
>               RecurType?: string,
>               ScheduleInfo?: {
>                 DayOfWeek?: string,
>                 StartDate?: string,
>                 MaxOccurrences?: number,
>                 RemindDays?: number,
>                 IntervalType?: string,
>                 WeekOfMonth?: string,
>                 MonthOfYear?: string,
>                 DaysBefore?: number,
>                 NextDate?: string,
>                 NumInterval?: number,
>                 EndDate?: string,
>                 PreviousDate?: string,
>                 DayOfMonth?: number
>               },
>               Name?: string
>             },
>             MetaData?: {
>               CreateTime?: string,
>               LastUpdatedTime?: string
>             }
>           },
>           VendorCredit?: {
>             Id: string,
>             SyncToken?: string,
>             RecurringInfo?: {
>               Active?: boolean,
>               RecurType?: string,
>               ScheduleInfo?: {
>                 DayOfWeek?: string,
>                 StartDate?: string,
>                 MaxOccurrences?: number,
>                 RemindDays?: number,
>                 IntervalType?: string,
>                 WeekOfMonth?: string,
>                 MonthOfYear?: string,
>                 DaysBefore?: number,
>                 NextDate?: string,
>                 NumInterval?: number,
>                 EndDate?: string,
>                 PreviousDate?: string,
>                 DayOfMonth?: number
>               },
>               Name?: string
>             },
>             MetaData?: {
>               CreateTime?: string,
>               LastUpdatedTime?: string
>             }
>           }
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       RefundReceipt?: (
>         {
>           TxnDate?: string,
>           CurrencyRef?: {
>             name?: string,
>             value: string
>           },
>           CustomField?: {
>             DefinitionId: string,
>             StringValue?: string,
>             Type?: StringType | BooleanType | NumberType | DateType,
>             Name?: string
>           }[],
>           HomeBalance?: number,
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           PrintStatus?: string,
>           PaymentRefNum?: string,
>           CheckPayment?: {
>             CheckNum?: string,
>             Status?: string,
>             NameOnAcct?: string,
>             AcctNum?: string,
>             BankName?: string
>           },
>           TxnSource?: string,
>           RecurDataRef?: {
>             name?: string,
>             value: string
>           },
>           GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>           TotalAmt?: number,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           },
>           DocNumber?: string,
>           PrivateNote?: string,
>           DepositToAccountRef: {
>             name?: string,
>             value: string
>           },
>           Line: (
>             {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             } | {
>               Description?: string,
>               SubTotalLineDetail: {
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               DetailType: SubTotalLineDetail,
>               LineNum?: number,
>               Amount: number,
>               Id?: string
>             } | {
>               DiscountLineDetail: {
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 DiscountAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 PercentBased?: boolean,
>                 DiscountPercent?: number
>               },
>               Description?: string,
>               DetailType: DiscountLineDetail,
>               LineNum?: number,
>               Amount?: number,
>               Id?: string
>             } | {
>               Description?: string,
>               DetailType: DescriptionOnly,
>               LineNum?: number,
>               Amount?: number,
>               DescriptionLineDetail?: {
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string
>               },
>               Id?: string
>             } | {
>               Description?: string,
>               GroupLineDetail: {
>                 Quantity?: number,
>                 Line?: {
>                   Description?: string,
>                   DetailType: SalesItemLineDetail,
>                   SalesItemLineDetail: {
>                     TaxInclusiveAmt?: number,
>                     ItemRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     ClassRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     TaxCodeRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     MarkupInfo?: {
>                       PriceLevelRef?: {
>                         name?: string,
>                         value: string
>                       },
>                       Percent?: number,
>                       MarkUpIncomeAccountRef?: {
>                         name?: string,
>                         value: string
>                       }
>                     },
>                     ItemAccountRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     ServiceDate?: string,
>                     Qty?: number,
>                     UnitPrice?: number,
>                     TaxClassificationRef?: {
>                       name?: string,
>                       value: string
>                     }
>                   },
>                   LineNum?: number,
>                   Amount: number,
>                   CustomExtensions?: {
>                     AssociatedValues?: {
>                       Value: string,
>                       Key: string
>                     }[],
>                     ExtensionType?: string
>                   }[],
>                   LinkedTxn?: {
>                     TxnLineId?: string,
>                     TxnId: string,
>                     TxnType: string
>                   }[],
>                   Id?: string
>                 }[],
>                 GroupItemRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               DetailType: GroupLineDetail,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LineNum?: number,
>               Id?: string
>             }
>           )[],
>           CustomerMemo?: {
>             value: string
>           },
>           ProjectRef?: {
>             name?: string,
>             value: string
>           },
>           TaxExemptionRef?: {
>             name?: string,
>             value: string
>           },
>           CreditCardPayment?: {
>             CreditChargeResponse?: {
>               Status?: Completed | Voided | Unknown,
>               AuthCode?: string,
>               TxnAuthorizationTime?: string,
>               CCTransId?: string
>             },
>             CreditChargeInfo?: {
>               CcExpiryMonth?: number,
>               ProcessPayment?: boolean,
>               PostalCode?: string,
>               Amount?: number,
>               NameOnAcct?: string,
>               CcExpiryYear?: number,
>               Type?: string,
>               BillAddrStreet?: string
>             }
>           },
>           Balance?: number,
>           CustomerRef?: {
>             name?: string,
>             value: string
>           },
>           TxnTaxDetail?: {
>             TxnTaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             TotalTax?: number,
>             TaxLine?: {
>               DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>               Amount?: number,
>               TaxLineDetail: {
>                 NetAmountTaxable?: number,
>                 PercentBased?: boolean,
>                 TaxInclusiveAmount?: number,
>                 OverrideDeltaAmount?: number,
>                 TaxRateRef: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxPercent?: number
>               }
>             }[]
>           },
>           SyncToken?: string,
>           PaymentMethodRef?: {
>             name?: string,
>             value: string
>           },
>           ExchangeRate?: number,
>           ShipAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           Id: string,
>           DepartmentRef?: {
>             name?: string,
>             value: string
>           },
>           PaymentType?: Cash | Check | CreditCard | Expense | Other,
>           BillAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           ApplyTaxAfterDiscount?: boolean,
>           BillEmail?: {
>             Address?: string
>           },
>           HomeTotalAmt?: number
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       ReimburseCharge?: (
>         {
>           SyncToken?: string,
>           PrivateNote?: string,
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           HasBeenInvoiced?: boolean,
>           CurrencyRef?: {
>             name?: string,
>             value: string
>           },
>           ExchangeRate?: number,
>           Line: {
>             LinkedTxn?: {
>               TxnLineId?: string,
>               TxnId: string,
>               TxnType: string
>             }[],
>             LineNum?: number,
>             ReimburseLineDetail: {
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               DiscountAccountRef?: {
>                 name?: string,
>                 value: string
>               },
>               PercentBased?: boolean,
>               DiscountPercent?: number
>             },
>             LineId?: string,
>             DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail
>           }[],
>           HomeTotalAmt?: number,
>           Amount: number,
>           CustomerRef: {
>             name?: string,
>             value: string
>           },
>           Id: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       SalesReceipt?: (
>         {
>           TxnDate?: string,
>           ShipFromAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           CurrencyRef?: {
>             name?: string,
>             value: string
>           },
>           CustomField?: {
>             DefinitionId: string,
>             StringValue?: string,
>             Type?: StringType | BooleanType | NumberType | DateType,
>             Name?: string
>           }[],
>           HomeBalance?: number,
>           ShipDate?: string,
>           TrackingNum?: string,
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           PrintStatus?: string,
>           PaymentRefNum?: string,
>           DeliveryInfo?: {
>             DeliveryType?: Email | Tradeshift,
>             DeliveryTime?: string
>           },
>           TxnSource?: string,
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           RecurDataRef?: {
>             name?: string,
>             value: string
>           },
>           GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>           TotalAmt?: number,
>           ApplyTaxAfterDiscount?: boolean,
>           DocNumber?: string,
>           PrivateNote?: string,
>           DepositToAccountRef?: {
>             name?: string,
>             value: string
>           },
>           Line: (
>             {
>               Description?: string,
>               DetailType: SalesItemLineDetail,
>               SalesItemLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 ItemAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string,
>                 Qty?: number,
>                 UnitPrice?: number,
>                 TaxClassificationRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               LineNum?: number,
>               Amount: number,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Id?: string
>             } | {
>               Description?: string,
>               SubTotalLineDetail: {
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               DetailType: SubTotalLineDetail,
>               LineNum?: number,
>               Amount: number,
>               Id?: string
>             } | {
>               DiscountLineDetail: {
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 DiscountAccountRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 PercentBased?: boolean,
>                 DiscountPercent?: number
>               },
>               Description?: string,
>               DetailType: DiscountLineDetail,
>               LineNum?: number,
>               Amount?: number,
>               Id?: string
>             } | {
>               Description?: string,
>               DetailType: DescriptionOnly,
>               LineNum?: number,
>               Amount?: number,
>               DescriptionLineDetail?: {
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ServiceDate?: string
>               },
>               Id?: string
>             } | {
>               Description?: string,
>               GroupLineDetail: {
>                 Quantity?: number,
>                 Line?: {
>                   Description?: string,
>                   DetailType: SalesItemLineDetail,
>                   SalesItemLineDetail: {
>                     TaxInclusiveAmt?: number,
>                     ItemRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     ClassRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     TaxCodeRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     MarkupInfo?: {
>                       PriceLevelRef?: {
>                         name?: string,
>                         value: string
>                       },
>                       Percent?: number,
>                       MarkUpIncomeAccountRef?: {
>                         name?: string,
>                         value: string
>                       }
>                     },
>                     ItemAccountRef?: {
>                       name?: string,
>                       value: string
>                     },
>                     ServiceDate?: string,
>                     Qty?: number,
>                     UnitPrice?: number,
>                     TaxClassificationRef?: {
>                       name?: string,
>                       value: string
>                     }
>                   },
>                   LineNum?: number,
>                   Amount: number,
>                   CustomExtensions?: {
>                     AssociatedValues?: {
>                       Value: string,
>                       Key: string
>                     }[],
>                     ExtensionType?: string
>                   }[],
>                   LinkedTxn?: {
>                     TxnLineId?: string,
>                     TxnId: string,
>                     TxnType: string
>                   }[],
>                   Id?: string
>                 }[],
>                 GroupItemRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               DetailType: GroupLineDetail,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LineNum?: number,
>               Id?: string
>             }
>           )[],
>           CustomerMemo?: {
>             value: string
>           },
>           EmailStatus?: string,
>           ProjectRef?: {
>             name?: string,
>             value: string
>           },
>           CreditCardPayment?: {
>             CreditChargeResponse?: {
>               Status?: Completed | Voided | Unknown,
>               AuthCode?: string,
>               TxnAuthorizationTime?: string,
>               CCTransId?: string
>             },
>             CreditChargeInfo?: {
>               CcExpiryMonth?: number,
>               ProcessPayment?: boolean,
>               PostalCode?: string,
>               Amount?: number,
>               NameOnAcct?: string,
>               CcExpiryYear?: number,
>               Type?: string,
>               BillAddrStreet?: string
>             }
>           },
>           Balance?: number,
>           CustomerRef: {
>             name?: string,
>             value: string
>           },
>           TxnTaxDetail?: {
>             TxnTaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             TotalTax?: number,
>             TaxLine?: {
>               DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>               Amount?: number,
>               TaxLineDetail: {
>                 NetAmountTaxable?: number,
>                 PercentBased?: boolean,
>                 TaxInclusiveAmount?: number,
>                 OverrideDeltaAmount?: number,
>                 TaxRateRef: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxPercent?: number
>               }
>             }[]
>           },
>           SyncToken?: string,
>           PaymentMethodRef?: {
>             name?: string,
>             value: string
>           },
>           ExchangeRate?: number,
>           ShipAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           HomeTotalAmt?: number,
>           DepartmentRef?: {
>             name?: string,
>             value: string
>           },
>           ShipMethodRef?: {
>             name?: string,
>             value: string
>           },
>           BillAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           FreeFormAddress?: boolean,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           },
>           BillEmail?: {
>             Address?: string
>           },
>           Id: string
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       TaxClassification?: (
>         {
>           ApplicableTo?: (Assembly | Category | Fixed Asset | Group | Inventory | NonInventory | Other Charge | Payment | Service | Subtotal | Discount | Tax | Tax Group | Bundle)[],
>           Code?: string,
>           Name?: string,
>           Level?: string,
>           ParentRef?: {
>             name?: string,
>             value: string
>           },
>           Description?: string,
>           Id?: string
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       TaxPayment?: (
>         {
>           Refund?: boolean,
>           TxnDate?: string,
>           PaymentAccountRef?: {
>             name?: string,
>             value: string
>           },
>           Description?: string,
>           SyncToken?: string,
>           PaymentAmount?: number,
>           Id: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       TaxService?: (
>         {
>           TaxCodeId?: string,
>           TaxCode: string,
>           TaxRateDetails: {
>             RateValue: string,
>             TaxRateId?: string,
>             TaxApplicableOn?: Purchase | Sales,
>             TaxAgencyId?: string,
>             TaxRateName?: string
>           }[]
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Term?: (
>         {
>           SyncToken?: string,
>           DayOfMonthDue?: number,
>           Name: string,
>           DiscountDayOfMonth?: number,
>           DiscountPercent?: number,
>           DiscountDays?: number,
>           DueNextMonthDays?: number,
>           DueDays?: number,
>           Active?: boolean,
>           Type?: string,
>           Id: string,
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Transfer?: (
>         {
>           SyncToken?: string,
>           PrivateNote?: string,
>           RecurDataRef?: {
>             name?: string,
>             value: string
>           },
>           TxnDate?: string,
>           ToAccountRef: {
>             name?: string,
>             value: string
>           },
>           Amount: number,
>           Id: string,
>           FromAccountRef: {
>             name?: string,
>             value: string
>           },
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       Vendor?: (
>         {
>           PrimaryEmailAddr?: {
>             Address?: string
>           },
>           DisplayName?: string,
>           OtherContactInfo?: {
>             Type?: string,
>             Telephone?: {
>               FreeFormNumber?: string
>             }
>           },
>           Title?: string,
>           TermRef?: {
>             name?: string,
>             value: string
>           },
>           Source?: string,
>           GivenName?: string,
>           T4AEligible?: boolean,
>           Fax?: {
>             FreeFormNumber?: string
>           },
>           CurrencyRef?: {
>             name?: string,
>             value: string
>           },
>           Mobile?: {
>             FreeFormNumber?: string
>           },
>           PrimaryPhone?: {
>             FreeFormNumber?: string
>           },
>           Active?: boolean,
>           AlternatePhone?: {
>             FreeFormNumber?: string
>           },
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           },
>           Vendor1099?: boolean,
>           CostRate?: number,
>           MiddleName?: string,
>           BillRate?: number,
>           WebAddr?: {
>             URI?: string
>           },
>           T5018Eligible?: boolean,
>           Balance?: number,
>           SyncToken?: string,
>           Suffix?: string,
>           CompanyName?: string,
>           FamilyName?: string,
>           VendorPaymentBankDetail?: {
>             BankAccountName?: string,
>             BankBranchIdentifier?: string,
>             BankAccountNumber?: string,
>             StatementText?: string
>           },
>           TaxIdentifier?: string,
>           AcctNum?: string,
>           HasTPAR?: boolean,
>           PrintOnCheckName?: string,
>           BillAddr?: {
>             City?: string,
>             Country?: string,
>             Line5?: string,
>             Line4?: string,
>             Line3?: string,
>             Line2?: string,
>             Line1?: string,
>             PostalCode?: string,
>             CountrySubDivisionCode?: string,
>             Id?: string
>           },
>           Id: string
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     } | {
>       VendorCredit?: (
>         {
>           DocNumber?: string,
>           SyncToken?: string,
>           PrivateNote?: string,
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           VendorRef: {
>             name?: string,
>             value: string
>           },
>           RecurDataRef?: {
>             name?: string,
>             value: string
>           },
>           GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>           TotalAmt?: number,
>           ExchangeRate?: number,
>           APAccountRef?: {
>             name?: string,
>             value: string
>           },
>           DepartmentRef?: {
>             name?: string,
>             value: string
>           },
>           TxnDate?: string,
>           IncludeInAnnualTPAR?: boolean,
>           Line: (
>             {
>               LinkedTxn?: {
>                 TxnLineId?: string,
>                 TxnId: string,
>                 TxnType: string
>               }[],
>               Description?: string,
>               ItemBasedExpenseLineDetail: {
>                 TaxInclusiveAmt?: number,
>                 ItemRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 CustomerRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 BillableStatus?: Billable | NotBillable | HasBeenBilled,
>                 Qty?: number,
>                 UnitPrice?: number
>               },
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LineNum?: number,
>               Amount: number,
>               DetailType: ItemBasedExpenseLineDetail,
>               Id?: string
>             } | {
>               Description?: string,
>               DetailType: AccountBasedExpenseLineDetail,
>               CustomExtensions?: {
>                 AssociatedValues?: {
>                   Value: string,
>                   Key: string
>                 }[],
>                 ExtensionType?: string
>               }[],
>               LineNum?: number,
>               Amount: number,
>               Id?: string,
>               AccountBasedExpenseLineDetail: {
>                 TaxAmount?: number,
>                 TaxInclusiveAmt?: number,
>                 ClassRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 TaxCodeRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 MarkupInfo?: {
>                   PriceLevelRef?: {
>                     name?: string,
>                     value: string
>                   },
>                   Percent?: number,
>                   MarkUpIncomeAccountRef?: {
>                     name?: string,
>                     value: string
>                   }
>                 },
>                 BillableStatus?: Billable | NotBillable | HasBeenBilled,
>                 AccountRef: {
>                   name?: string,
>                   value: string
>                 },
>                 CustomerRef?: {
>                   name?: string,
>                   value: string
>                 }
>               }
>             }
>           )[],
>           Balance?: number,
>           Id: string,
>           CurrencyRef?: {
>             name?: string,
>             value: string
>           },
>           MetaData?: {
>             CreateTime?: string,
>             LastUpdatedTime?: string
>           }
>         } | {
>           Id?: string,
>           status: Deleted,
>           domain?: QBO,
>           MetaData?: {
>             LastUpdatedTime?: string
>           }
>         }
>       )[],
>       startPosition?: number,
>       maxResults?: number,
>       totalCount?: number
>     }
>   )[]
> }[]
> ```

***

## Change Order

### create

`changeOrder.create`

QuickBooks Create a change order

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.changeOrder.create({"realmId":"12345678","body":{"ProjectRef":{"value":"39298045"},"CustomerRef":{"value":"1"},"Line":[{"DetailType":"SalesItemLineDetail","Amount":100,"SalesItemLineDetail":{"ItemRef":{"value":"1"},"Qty":1,"UnitPrice":100},"LinkedTxn":[{"TxnId":"100","TxnType":"Estimate"}]}]}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   DocNumber?: string,
>   TxnStatus?: string,
>   PrivateNote?: string,
>   TxnDate?: string,
>   BillEmail?: {
>     Address?: string
>   },
>   CustomerMemo?: {
>     value: string
>   },
>   ProjectRef: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   ExpirationDate?: string,
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   EmailStatus?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `ChangeOrder` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] ChangeOrder full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   PrintStatus?: string,
>   TxnStatus?: string,
>   LinkedTxn: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   TotalAmt?: number,
>   AcceptedDate?: string,
>   ExpirationDate?: string,
>   ApplyTaxAfterDiscount?: boolean,
>   DocNumber?: string,
>   PrivateNote?: string,
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   ProjectRef: {
>     name?: string,
>     value: string
>   },
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   AcceptedBy?: string,
>   TotalCostAmount?: number,
>   EmailStatus?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

***

### delete

`changeOrder.delete`

QuickBooks Delete a change order

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.changeOrder.delete({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `ChangeOrder` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] ChangeOrder full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   Id: string,
>   domain?: QBO
> }
> ```

***

### get

`changeOrder.get`

QuickBooks Read a change order

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.changeOrder.get({"realmId":"12345678","changeorderId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `changeorderId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `ChangeOrder` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] ChangeOrder full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   PrintStatus?: string,
>   TxnStatus?: string,
>   LinkedTxn: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   TotalAmt?: number,
>   AcceptedDate?: string,
>   ExpirationDate?: string,
>   ApplyTaxAfterDiscount?: boolean,
>   DocNumber?: string,
>   PrivateNote?: string,
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   ProjectRef: {
>     name?: string,
>     value: string
>   },
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   AcceptedBy?: string,
>   TotalCostAmount?: number,
>   EmailStatus?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

***

### update

`changeOrder.update`

QuickBooks Full update a change order

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.changeOrder.update({"realmId":"12345678","body":{"LinkedTxn":[],"Line":[],"ProjectRef":{"value":"sample"},"CustomerRef":{"value":"sample"},"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   PrintStatus?: string,
>   TxnStatus?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   TotalAmt?: number,
>   AcceptedDate?: string,
>   ExpirationDate?: string,
>   ApplyTaxAfterDiscount?: boolean,
>   DocNumber?: string,
>   PrivateNote?: string,
>   Line?: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerRef?: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken: string,
>   AcceptedBy?: string,
>   TotalCostAmount?: number,
>   EmailStatus?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `ChangeOrder` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] ChangeOrder full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   PrintStatus?: string,
>   TxnStatus?: string,
>   LinkedTxn: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   TotalAmt?: number,
>   AcceptedDate?: string,
>   ExpirationDate?: string,
>   ApplyTaxAfterDiscount?: boolean,
>   DocNumber?: string,
>   PrivateNote?: string,
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   ProjectRef: {
>     name?: string,
>     value: string
>   },
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   AcceptedBy?: string,
>   TotalCostAmount?: number,
>   EmailStatus?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

***

## Class

### create

`class.create`

QuickBooks Create a class

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.class.create({"realmId":"12345678","body":{"Name":"sample"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Name: string,
>   ParentRef?: {
>     name?: string,
>     value: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Class` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Class full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   Name: string,
>   FullyQualifiedName?: string,
>   SubClass?: boolean,
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   Active?: boolean,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### get

`class.get`

QuickBooks Read a class

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.class.get({"realmId":"12345678","classId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `classId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Class` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Class full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   Name: string,
>   FullyQualifiedName?: string,
>   SubClass?: boolean,
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   Active?: boolean,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### list

`class.list`

QuickBooks Query a class

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.class.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   Class?: {
>     SyncToken?: string,
>     Name: string,
>     FullyQualifiedName?: string,
>     SubClass?: boolean,
>     ParentRef?: {
>       name?: string,
>       value: string
>     },
>     Active?: boolean,
>     Id: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   }[]
> }
> ```

***

### update

`class.update`

QuickBooks Full update a class

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.class.update({"realmId":"12345678","body":{"Name":"sample","Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   SyncToken: string,
>   Name?: string,
>   FullyQualifiedName?: string,
>   SubClass?: boolean,
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   Active?: boolean,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Class` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Class full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   Name: string,
>   FullyQualifiedName?: string,
>   SubClass?: boolean,
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   Active?: boolean,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

## Company

### get

`company.get`

Read basic company information for a realm

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.company.get({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | QuickBooks company realm ID returned in Intuit’s OAuth redirect |

GET /v3/company/\{realmId}/companyinfo/\{realmId}. The realmId is required twice in the provider path. Source: [https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/companyinfo](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/companyinfo)

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `CompanyInfo` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] CompanyInfo full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken?: string,
>   MetaData?: {
>     CreatedByRef?: {
>       name?: string,
>       type?: string,
>       value: string
>     },
>     CreateTime?: string,
>     LastModifiedByRef?: {
>       name?: string,
>       type?: string,
>       value: string
>     },
>     LastUpdatedTime?: string,
>     LastChangedInQB?: string,
>     Synchronized?: boolean
>   },
>   CompanyName: string,
>   LegalName?: string,
>   CompanyAddr?: {
>     Id?: string,
>     Line1?: string,
>     Line2?: string,
>     Line3?: string,
>     Line4?: string,
>     Line5?: string,
>     City?: string,
>     Country?: string,
>     CountryCode?: string,
>     County?: string,
>     CountrySubDivisionCode?: string,
>     PostalCode?: string,
>     PostalCodeSuffix?: string,
>     Lat?: string,
>     Long?: string,
>     Tag?: string,
>     Note?: string
>   },
>   CustomerCommunicationAddr?: {
>     Id?: string,
>     Line1?: string,
>     Line2?: string,
>     Line3?: string,
>     Line4?: string,
>     Line5?: string,
>     City?: string,
>     Country?: string,
>     CountryCode?: string,
>     County?: string,
>     CountrySubDivisionCode?: string,
>     PostalCode?: string,
>     PostalCodeSuffix?: string,
>     Lat?: string,
>     Long?: string,
>     Tag?: string,
>     Note?: string
>   },
>   LegalAddr?: {
>     Id?: string,
>     Line1?: string,
>     Line2?: string,
>     Line3?: string,
>     Line4?: string,
>     Line5?: string,
>     City?: string,
>     Country?: string,
>     CountryCode?: string,
>     County?: string,
>     CountrySubDivisionCode?: string,
>     PostalCode?: string,
>     PostalCodeSuffix?: string,
>     Lat?: string,
>     Long?: string,
>     Tag?: string,
>     Note?: string
>   },
>   CompanyEmailAddr?: {
>     Id?: string,
>     Address?: string,
>     Default?: boolean,
>     Tag?: string
>   },
>   CustomerCommunicationEmailAddr?: {
>     Id?: string,
>     Address?: string,
>     Default?: boolean,
>     Tag?: string
>   },
>   CompanyURL?: {
>     Id?: string,
>     URI?: string,
>     Default?: boolean,
>     Tag?: string
>   },
>   PrimaryPhone?: {
>     Id?: string,
>     DeviceType?: string,
>     CountryCode?: string,
>     AreaCode?: string,
>     ExchangeCode?: string,
>     Extension?: string,
>     FreeFormNumber?: string,
>     Default?: boolean,
>     Tag?: string
>   },
>   OtherContactInfo?: {
>     Type?: TelephoneNumber | EmailAddress | WebSiteAddress | GenericContactType
>   }[],
>   CompanyFileName?: string,
>   FlavorStratum?: string,
>   SampleFile?: boolean,
>   CompanyUserId?: string,
>   CompanyUserAdminEmail?: string,
>   CompanyStartDate?: string,
>   EmployerId?: string,
>   FiscalYearStartMonth?: January | February | March | April | May | June | July | August | September | October | November | December,
>   TaxYearStartMonth?: January | February | March | April | May | June | July | August | September | October | November | December,
>   QBVersion?: string,
>   Country?: string,
>   ShipAddr?: {
>     Id?: string,
>     Line1?: string,
>     Line2?: string,
>     Line3?: string,
>     Line4?: string,
>     Line5?: string,
>     City?: string,
>     Country?: string,
>     CountryCode?: string,
>     County?: string,
>     CountrySubDivisionCode?: string,
>     PostalCode?: string,
>     PostalCodeSuffix?: string,
>     Lat?: string,
>     Long?: string,
>     Tag?: string,
>     Note?: string
>   },
>   OtherAddr?: {
>     Id?: string,
>     Line1?: string,
>     Line2?: string,
>     Line3?: string,
>     Line4?: string,
>     Line5?: string,
>     City?: string,
>     Country?: string,
>     CountryCode?: string,
>     County?: string,
>     CountrySubDivisionCode?: string,
>     PostalCode?: string,
>     PostalCodeSuffix?: string,
>     Lat?: string,
>     Long?: string,
>     Tag?: string,
>     Note?: string
>   }[],
>   Mobile?: {
>     Id?: string,
>     DeviceType?: string,
>     CountryCode?: string,
>     AreaCode?: string,
>     ExchangeCode?: string,
>     Extension?: string,
>     FreeFormNumber?: string,
>     Default?: boolean,
>     Tag?: string
>   },
>   Fax?: {
>     Id?: string,
>     DeviceType?: string,
>     CountryCode?: string,
>     AreaCode?: string,
>     ExchangeCode?: string,
>     Extension?: string,
>     FreeFormNumber?: string,
>     Default?: boolean,
>     Tag?: string
>   },
>   Email?: {
>     Id?: string,
>     Address?: string,
>     Default?: boolean,
>     Tag?: string
>   },
>   WebAddr?: {
>     Id?: string,
>     URI?: string,
>     Default?: boolean,
>     Tag?: string
>   },
>   LastImportedTime?: string,
>   LastSyncTime?: string,
>   SupportedLanguages?: string,
>   DefaultTimeZone?: string,
>   MultiByteCharsSupported?: boolean,
>   NameValue?: {
>     Name?: string,
>     Value?: string
>   }[],
>   FifoCalculationStatus?: None | InProgress | Completed | Error,
>   CompanyInfoEx?: any,
>   domain?: QBO,
>   sparse?: boolean
> }
> ```

***

### list

`company.list`

Query the CompanyInfo resource for a realm

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.company.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | QuickBooks company realm ID returned in Intuit’s OAuth redirect |

GET /v3/company/\{realmId}/query with SELECT \* FROM CompanyInfo. Source: [https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/companyinfo](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/companyinfo)

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   CompanyInfo?: {
>     Id: string,
>     SyncToken?: string,
>     MetaData?: {
>       CreatedByRef?: {
>         name?: string,
>         type?: string,
>         value: string
>       },
>       CreateTime?: string,
>       LastModifiedByRef?: {
>         name?: string,
>         type?: string,
>         value: string
>       },
>       LastUpdatedTime?: string,
>       LastChangedInQB?: string,
>       Synchronized?: boolean
>     },
>     CompanyName: string,
>     LegalName?: string,
>     CompanyAddr?: {
>       Id?: string,
>       Line1?: string,
>       Line2?: string,
>       Line3?: string,
>       Line4?: string,
>       Line5?: string,
>       City?: string,
>       Country?: string,
>       CountryCode?: string,
>       County?: string,
>       CountrySubDivisionCode?: string,
>       PostalCode?: string,
>       PostalCodeSuffix?: string,
>       Lat?: string,
>       Long?: string,
>       Tag?: string,
>       Note?: string
>     },
>     CustomerCommunicationAddr?: {
>       Id?: string,
>       Line1?: string,
>       Line2?: string,
>       Line3?: string,
>       Line4?: string,
>       Line5?: string,
>       City?: string,
>       Country?: string,
>       CountryCode?: string,
>       County?: string,
>       CountrySubDivisionCode?: string,
>       PostalCode?: string,
>       PostalCodeSuffix?: string,
>       Lat?: string,
>       Long?: string,
>       Tag?: string,
>       Note?: string
>     },
>     LegalAddr?: {
>       Id?: string,
>       Line1?: string,
>       Line2?: string,
>       Line3?: string,
>       Line4?: string,
>       Line5?: string,
>       City?: string,
>       Country?: string,
>       CountryCode?: string,
>       County?: string,
>       CountrySubDivisionCode?: string,
>       PostalCode?: string,
>       PostalCodeSuffix?: string,
>       Lat?: string,
>       Long?: string,
>       Tag?: string,
>       Note?: string
>     },
>     CompanyEmailAddr?: {
>       Id?: string,
>       Address?: string,
>       Default?: boolean,
>       Tag?: string
>     },
>     CustomerCommunicationEmailAddr?: {
>       Id?: string,
>       Address?: string,
>       Default?: boolean,
>       Tag?: string
>     },
>     CompanyURL?: {
>       Id?: string,
>       URI?: string,
>       Default?: boolean,
>       Tag?: string
>     },
>     PrimaryPhone?: {
>       Id?: string,
>       DeviceType?: string,
>       CountryCode?: string,
>       AreaCode?: string,
>       ExchangeCode?: string,
>       Extension?: string,
>       FreeFormNumber?: string,
>       Default?: boolean,
>       Tag?: string
>     },
>     OtherContactInfo?: {
>       Type?: TelephoneNumber | EmailAddress | WebSiteAddress | GenericContactType
>     }[],
>     CompanyFileName?: string,
>     FlavorStratum?: string,
>     SampleFile?: boolean,
>     CompanyUserId?: string,
>     CompanyUserAdminEmail?: string,
>     CompanyStartDate?: string,
>     EmployerId?: string,
>     FiscalYearStartMonth?: January | February | March | April | May | June | July | August | September | October | November | December,
>     TaxYearStartMonth?: January | February | March | April | May | June | July | August | September | October | November | December,
>     QBVersion?: string,
>     Country?: string,
>     ShipAddr?: {
>       Id?: string,
>       Line1?: string,
>       Line2?: string,
>       Line3?: string,
>       Line4?: string,
>       Line5?: string,
>       City?: string,
>       Country?: string,
>       CountryCode?: string,
>       County?: string,
>       CountrySubDivisionCode?: string,
>       PostalCode?: string,
>       PostalCodeSuffix?: string,
>       Lat?: string,
>       Long?: string,
>       Tag?: string,
>       Note?: string
>     },
>     OtherAddr?: {
>       Id?: string,
>       Line1?: string,
>       Line2?: string,
>       Line3?: string,
>       Line4?: string,
>       Line5?: string,
>       City?: string,
>       Country?: string,
>       CountryCode?: string,
>       County?: string,
>       CountrySubDivisionCode?: string,
>       PostalCode?: string,
>       PostalCodeSuffix?: string,
>       Lat?: string,
>       Long?: string,
>       Tag?: string,
>       Note?: string
>     }[],
>     Mobile?: {
>       Id?: string,
>       DeviceType?: string,
>       CountryCode?: string,
>       AreaCode?: string,
>       ExchangeCode?: string,
>       Extension?: string,
>       FreeFormNumber?: string,
>       Default?: boolean,
>       Tag?: string
>     },
>     Fax?: {
>       Id?: string,
>       DeviceType?: string,
>       CountryCode?: string,
>       AreaCode?: string,
>       ExchangeCode?: string,
>       Extension?: string,
>       FreeFormNumber?: string,
>       Default?: boolean,
>       Tag?: string
>     },
>     Email?: {
>       Id?: string,
>       Address?: string,
>       Default?: boolean,
>       Tag?: string
>     },
>     WebAddr?: {
>       Id?: string,
>       URI?: string,
>       Default?: boolean,
>       Tag?: string
>     },
>     LastImportedTime?: string,
>     LastSyncTime?: string,
>     SupportedLanguages?: string,
>     DefaultTimeZone?: string,
>     MultiByteCharsSupported?: boolean,
>     NameValue?: {
>       Name?: string,
>       Value?: string
>     }[],
>     FifoCalculationStatus?: None | InProgress | Completed | Error,
>     CompanyInfoEx?: any,
>     domain?: QBO,
>     sparse?: boolean
>   }[]
> }
> ```

***

### sparseUpdate

`company.sparseUpdate`

QuickBooks Sparse update companyinfo

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.company.sparseUpdate({"realmId":"12345678","body":{"Id":"35","SyncToken":"0","sparse":true}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   SyncToken: string,
>   LegalAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   SupportedLanguages?: string,
>   CompanyName?: string,
>   Country?: string,
>   CompanyAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   Email?: {
>     Address?: string
>   },
>   WebAddr?: {
>     URI?: string
>   },
>   NameValue?: {
>     Name?: string,
>     Value?: string
>   }[],
>   FiscalYearStartMonth?: January | February | March | April | May | June | July | August | September | October | November | December,
>   CustomerCommunicationAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   PrimaryPhone?: {
>     FreeFormNumber?: string
>   },
>   LegalName?: string,
>   CompanyStartDate?: string,
>   EmployerId?: string,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   sparse: true
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `CompanyInfo` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] CompanyInfo full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   LegalAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   SupportedLanguages?: string,
>   CompanyName?: string,
>   Country?: string,
>   CompanyAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   Email?: {
>     Address?: string
>   },
>   WebAddr?: {
>     URI?: string
>   },
>   NameValue?: {
>     Name?: string,
>     Value?: string
>   }[],
>   FiscalYearStartMonth?: January | February | March | April | May | June | July | August | September | October | November | December,
>   CustomerCommunicationAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   PrimaryPhone?: {
>     FreeFormNumber?: string
>   },
>   LegalName?: string,
>   CompanyStartDate?: string,
>   EmployerId?: string,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### update

`company.update`

QuickBooks Full update companyinfo

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.company.update({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

Full update: omitted writable CompanyInfo fields are set to null. Use company.sparseUpdate for documented sparse semantics. Source: [https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/companyinfo](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/companyinfo)

> [accordion] body full type
>
> ```ts theme={null}
> {
>   SyncToken: string,
>   LegalAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   SupportedLanguages?: string,
>   CompanyName?: string,
>   Country?: string,
>   CompanyAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   Email?: {
>     Address?: string
>   },
>   WebAddr?: {
>     URI?: string
>   },
>   NameValue?: {
>     Name?: string,
>     Value?: string
>   }[],
>   FiscalYearStartMonth?: January | February | March | April | May | June | July | August | September | October | November | December,
>   CustomerCommunicationAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   PrimaryPhone?: {
>     FreeFormNumber?: string
>   },
>   LegalName?: string,
>   CompanyStartDate?: string,
>   EmployerId?: string,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `CompanyInfo` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] CompanyInfo full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   LegalAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   SupportedLanguages?: string,
>   CompanyName?: string,
>   Country?: string,
>   CompanyAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   Email?: {
>     Address?: string
>   },
>   WebAddr?: {
>     URI?: string
>   },
>   NameValue?: {
>     Name?: string,
>     Value?: string
>   }[],
>   FiscalYearStartMonth?: January | February | March | April | May | June | July | August | September | October | November | December,
>   CustomerCommunicationAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   PrimaryPhone?: {
>     FreeFormNumber?: string
>   },
>   LegalName?: string,
>   CompanyStartDate?: string,
>   EmployerId?: string,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

## Company Currency

### create

`companyCurrency.create`

QuickBooks Create a companycurrency

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.companyCurrency.create({"realmId":"12345678","body":{"Code":"sample"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

Needs multicurrency turned on for the company (fault 9029 otherwise). Turning multicurrency on in QuickBooks can't be undone.

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Code: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `CompanyCurrency` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] CompanyCurrency full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   Code: string,
>   Name?: string,
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   Active?: boolean,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### get

`companyCurrency.get`

QuickBooks Read a companycurrency

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.companyCurrency.get({"realmId":"12345678","companycurrencyId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `companycurrencyId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `CompanyCurrency` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] CompanyCurrency full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   Code: string,
>   Name?: string,
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   Active?: boolean,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### list

`companyCurrency.list`

QuickBooks Query a companycurrency

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.companyCurrency.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   CompanyCurrency?: {
>     SyncToken?: string,
>     Code: string,
>     Name?: string,
>     CustomField?: {
>       DefinitionId: string,
>       StringValue?: string,
>       Type?: StringType | BooleanType | NumberType | DateType,
>       Name?: string
>     }[],
>     Active?: boolean,
>     Id: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   }[]
> }
> ```

***

### update

`companyCurrency.update`

QuickBooks Update a companycurrency

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.companyCurrency.update({"realmId":"12345678","body":{"Code":"sample","Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   SyncToken: string,
>   Code?: string,
>   Name?: string,
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   Active?: boolean,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `CompanyCurrency` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] CompanyCurrency full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   Code: string,
>   Name?: string,
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   Active?: boolean,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

## Credit Card Payment

### create

`creditCardPayment.create`

QuickBooks Create a creditcardpayment

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.creditCardPayment.create({"realmId":"12345678","body":{"TxnDate":"2026-11-23","Amount":1,"BankAccountRef":{"value":"sample"},"CreditCardAccountRef":{"value":"sample"}}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   PrivateNote?: string,
>   TxnDate: string,
>   Amount: number,
>   BankAccountRef: {
>     name?: string,
>     value: string
>   },
>   CreditCardAccountRef: {
>     name?: string,
>     value: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `CreditCardPaymentTxn` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] CreditCardPaymentTxn full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   PrivateNote?: string,
>   VendorRef?: {
>     name?: string,
>     value: string
>   },
>   CreditCardAccountRef: {
>     name?: string,
>     value: string
>   },
>   TxnDate?: string,
>   Memo?: string,
>   PrintStatus?: string,
>   CheckNum?: string,
>   Amount: number,
>   BankAccountRef: {
>     name?: string,
>     value: string
>   },
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### delete

`creditCardPayment.delete`

QuickBooks Delete a creditcardpayment

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.creditCardPayment.delete({"realmId":"12345678","body":{"CreditCardAccountRef":{"value":"sample"},"Amount":1,"BankAccountRef":{"value":"sample"},"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   SyncToken: string,
>   PrivateNote?: string,
>   VendorRef?: {
>     name?: string,
>     value: string
>   },
>   CreditCardAccountRef?: {
>     name?: string,
>     value: string
>   },
>   TxnDate?: string,
>   Memo?: string,
>   PrintStatus?: string,
>   CheckNum?: string,
>   Amount?: number,
>   BankAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `CreditCardPaymentTxn` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] CreditCardPaymentTxn full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   Id: string,
>   domain?: QBO
> }
> ```

***

### get

`creditCardPayment.get`

QuickBooks Read a creditcardpayment

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.creditCardPayment.get({"realmId":"12345678","creditcardpaymentId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `creditcardpaymentId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `CreditCardPaymentTxn` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] CreditCardPaymentTxn full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   PrivateNote?: string,
>   VendorRef?: {
>     name?: string,
>     value: string
>   },
>   CreditCardAccountRef: {
>     name?: string,
>     value: string
>   },
>   TxnDate?: string,
>   Memo?: string,
>   PrintStatus?: string,
>   CheckNum?: string,
>   Amount: number,
>   BankAccountRef: {
>     name?: string,
>     value: string
>   },
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### list

`creditCardPayment.list`

QuickBooks Query a creditcardpayment

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.creditCardPayment.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   CreditCardPaymentTxn?: {
>     SyncToken?: string,
>     PrivateNote?: string,
>     VendorRef?: {
>       name?: string,
>       value: string
>     },
>     CreditCardAccountRef: {
>       name?: string,
>       value: string
>     },
>     TxnDate?: string,
>     Memo?: string,
>     PrintStatus?: string,
>     CheckNum?: string,
>     Amount: number,
>     BankAccountRef: {
>       name?: string,
>       value: string
>     },
>     Id: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   }[]
> }
> ```

***

### sparseUpdate

`creditCardPayment.sparseUpdate`

QuickBooks Sparse update a creditcardpayment

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.creditCardPayment.sparseUpdate({"realmId":"12345678","body":{"TxnDate":"2026-11-23","Amount":1,"BankAccountRef":{"value":"sample"},"CreditCardAccountRef":{"value":"sample"},"Id":"35","SyncToken":"0","sparse":true}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

QuickBooks still requires CreditCardAccountRef, BankAccountRef and Amount in a sparse update (fault 2020 otherwise).

> [accordion] body full type
>
> ```ts theme={null}
> {
>   PrivateNote?: string,
>   TxnDate?: string,
>   Amount?: number,
>   BankAccountRef?: {
>     name?: string,
>     value: string
>   },
>   CreditCardAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Id: string,
>   SyncToken: string,
>   sparse: true
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `CreditCardPaymentTxn` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] CreditCardPaymentTxn full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   PrivateNote?: string,
>   VendorRef?: {
>     name?: string,
>     value: string
>   },
>   CreditCardAccountRef: {
>     name?: string,
>     value: string
>   },
>   TxnDate?: string,
>   Memo?: string,
>   PrintStatus?: string,
>   CheckNum?: string,
>   Amount: number,
>   BankAccountRef: {
>     name?: string,
>     value: string
>   },
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### update

`creditCardPayment.update`

QuickBooks Full update a creditcardpayment

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.creditCardPayment.update({"realmId":"12345678","body":{"TxnDate":"2026-11-23","Amount":1,"BankAccountRef":{"value":"sample"},"CreditCardAccountRef":{"value":"sample"},"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   PrivateNote?: string,
>   TxnDate?: string,
>   Amount?: number,
>   BankAccountRef?: {
>     name?: string,
>     value: string
>   },
>   CreditCardAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `CreditCardPaymentTxn` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] CreditCardPaymentTxn full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   PrivateNote?: string,
>   VendorRef?: {
>     name?: string,
>     value: string
>   },
>   CreditCardAccountRef: {
>     name?: string,
>     value: string
>   },
>   TxnDate?: string,
>   Memo?: string,
>   PrintStatus?: string,
>   CheckNum?: string,
>   Amount: number,
>   BankAccountRef: {
>     name?: string,
>     value: string
>   },
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

## Credit Memo

### create

`creditMemo.create`

QuickBooks Create a credit memo

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.creditMemo.create({"realmId":"12345678","body":{"CustomerRef":{"value":"1"},"Line":[{"DetailType":"SalesItemLineDetail","Amount":100,"SalesItemLineDetail":{"ItemRef":{"value":"1"},"Qty":1,"UnitPrice":100}}]}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `CreditMemo` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] CreditMemo full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   HomeBalance?: number,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   RemainingCredit?: number,
>   ApplyTaxAfterDiscount?: boolean,
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   Balance?: number,
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   EmailStatus?: string,
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

***

### delete

`creditMemo.delete`

QuickBooks Delete a credit memo

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.creditMemo.delete({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `CreditMemo` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] CreditMemo full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   Id: string,
>   domain?: QBO
> }
> ```

***

### get

`creditMemo.get`

QuickBooks Read a credit memo

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.creditMemo.get({"realmId":"12345678","creditmemoId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `creditmemoId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `CreditMemo` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] CreditMemo full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   HomeBalance?: number,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   RemainingCredit?: number,
>   ApplyTaxAfterDiscount?: boolean,
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   Balance?: number,
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   EmailStatus?: string,
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

***

### getPdf

`creditMemo.getPdf`

QuickBooks Get a credit memo as PDF

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.creditMemo.getPdf({"realmId":"12345678","creditmemoId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `creditmemoId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `kind` | `binary` | Yes | — |
| `contentType` | `string` | Yes | — |
| `base64` | `string` | Yes | — |
| `sizeBytes` | `number` | Yes | — |

***

### list

`creditMemo.list`

QuickBooks Query a credit memo

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.creditMemo.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   CreditMemo?: {
>     TxnDate?: string,
>     CurrencyRef?: {
>       name?: string,
>       value: string
>     },
>     CustomField?: {
>       DefinitionId: string,
>       StringValue?: string,
>       Type?: StringType | BooleanType | NumberType | DateType,
>       Name?: string
>     }[],
>     HomeBalance?: number,
>     ClassRef?: {
>       name?: string,
>       value: string
>     },
>     PrintStatus?: string,
>     SalesTermRef?: {
>       name?: string,
>       value: string
>     },
>     GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>     TotalAmt?: number,
>     RemainingCredit?: number,
>     ApplyTaxAfterDiscount?: boolean,
>     DocNumber?: string,
>     PrivateNote?: string,
>     RecurDataRef?: {
>       name?: string,
>       value: string
>     },
>     Line: (
>       {
>         Description?: string,
>         DetailType: SalesItemLineDetail,
>         SalesItemLineDetail: {
>           TaxInclusiveAmt?: number,
>           ItemRef?: {
>             name?: string,
>             value: string
>           },
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           MarkupInfo?: {
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             Percent?: number,
>             MarkUpIncomeAccountRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           ItemAccountRef?: {
>             name?: string,
>             value: string
>           },
>           ServiceDate?: string,
>           Qty?: number,
>           UnitPrice?: number,
>           TaxClassificationRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         LineNum?: number,
>         Amount: number,
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LinkedTxn?: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[],
>         Id?: string
>       } | {
>         Description?: string,
>         SubTotalLineDetail: {
>           ItemRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         DetailType: SubTotalLineDetail,
>         LineNum?: number,
>         Amount: number,
>         Id?: string
>       } | {
>         DiscountLineDetail: {
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           DiscountAccountRef?: {
>             name?: string,
>             value: string
>           },
>           PercentBased?: boolean,
>           DiscountPercent?: number
>         },
>         Description?: string,
>         DetailType: DiscountLineDetail,
>         LineNum?: number,
>         Amount?: number,
>         Id?: string
>       } | {
>         Description?: string,
>         DetailType: DescriptionOnly,
>         LineNum?: number,
>         Amount?: number,
>         DescriptionLineDetail?: {
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           ServiceDate?: string
>         },
>         Id?: string
>       } | {
>         Description?: string,
>         GroupLineDetail: {
>           Quantity?: number,
>           Line?: {
>             Description?: string,
>             DetailType: SalesItemLineDetail,
>             SalesItemLineDetail: {
>               TaxInclusiveAmt?: number,
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               },
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               MarkupInfo?: {
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 Percent?: number,
>                 MarkUpIncomeAccountRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               ItemAccountRef?: {
>                 name?: string,
>                 value: string
>               },
>               ServiceDate?: string,
>               Qty?: number,
>               UnitPrice?: number,
>               TaxClassificationRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             LineNum?: number,
>             Amount: number,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LinkedTxn?: {
>               TxnLineId?: string,
>               TxnId: string,
>               TxnType: string
>             }[],
>             Id?: string
>           }[],
>           GroupItemRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         DetailType: GroupLineDetail,
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LineNum?: number,
>         Id?: string
>       }
>     )[],
>     CustomerMemo?: {
>       value: string
>     },
>     ProjectRef?: {
>       name?: string,
>       value: string
>     },
>     TaxExemptionRef?: {
>       name?: string,
>       value: string
>     },
>     Balance?: number,
>     CustomerRef: {
>       name?: string,
>       value: string
>     },
>     TxnTaxDetail?: {
>       TxnTaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       TotalTax?: number,
>       TaxLine?: {
>         DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>         Amount?: number,
>         TaxLineDetail: {
>           NetAmountTaxable?: number,
>           PercentBased?: boolean,
>           TaxInclusiveAmount?: number,
>           OverrideDeltaAmount?: number,
>           TaxRateRef: {
>             name?: string,
>             value: string
>           },
>           TaxPercent?: number
>         }
>       }[]
>     },
>     SyncToken?: string,
>     PaymentMethodRef?: {
>       name?: string,
>       value: string
>     },
>     ExchangeRate?: number,
>     ShipAddr?: {
>       City?: string,
>       Country?: string,
>       Line5?: string,
>       Line4?: string,
>       Line3?: string,
>       Line2?: string,
>       Line1?: string,
>       PostalCode?: string,
>       CountrySubDivisionCode?: string,
>       Id?: string
>     },
>     HomeTotalAmt?: number,
>     DepartmentRef?: {
>       name?: string,
>       value: string
>     },
>     EmailStatus?: string,
>     BillAddr?: {
>       City?: string,
>       Country?: string,
>       Line5?: string,
>       Line4?: string,
>       Line3?: string,
>       Line2?: string,
>       Line1?: string,
>       PostalCode?: string,
>       CountrySubDivisionCode?: string,
>       Id?: string
>     },
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     },
>     BillEmail?: {
>       Address?: string
>     },
>     Id: string
>   }[]
> }
> ```

***

### send

`creditMemo.send`

QuickBooks Send a credit memo

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.creditMemo.send({"realmId":"12345678","creditmemoId":"35","sendTo":"billing@example.test"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `creditmemoId` | `string` | Yes | — |
| `sendTo` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `CreditMemo` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] CreditMemo full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   HomeBalance?: number,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   RemainingCredit?: number,
>   ApplyTaxAfterDiscount?: boolean,
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   Balance?: number,
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   EmailStatus?: string,
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

***

### update

`creditMemo.update`

QuickBooks Full update a credit memo

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.creditMemo.update({"realmId":"12345678","body":{"Line":[],"CustomerRef":{"value":"sample"},"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   HomeBalance?: number,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   RemainingCredit?: number,
>   ApplyTaxAfterDiscount?: boolean,
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line?: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   Balance?: number,
>   CustomerRef?: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   EmailStatus?: string,
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `CreditMemo` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] CreditMemo full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   HomeBalance?: number,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   RemainingCredit?: number,
>   ApplyTaxAfterDiscount?: boolean,
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   Balance?: number,
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   EmailStatus?: string,
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

***

## Customer

### create

`customer.create`

QuickBooks Create a customer

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.customer.create({"realmId":"12345678","body":{"DisplayName":"Example Customer Ltd"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   DisplayName?: string,
>   Suffix?: string,
>   Title?: string,
>   MiddleName?: string,
>   FamilyName?: string,
>   GivenName?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Customer` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Customer full type
>
> ```ts theme={null}
> {
>   PrimaryEmailAddr?: {
>     Address?: string
>   },
>   DisplayName?: string,
>   Title?: string,
>   ResaleNum?: string,
>   SecondaryTaxIdentifier?: string,
>   DefaultTaxCodeRef?: {
>     name?: string,
>     value: string
>   },
>   PreferredDeliveryMethod?: string,
>   GivenName?: string,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerTypeRef?: {
>     value: string
>   },
>   FullyQualifiedName?: string,
>   Fax?: {
>     FreeFormNumber?: string
>   },
>   BillWithParent?: boolean,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   Mobile?: {
>     FreeFormNumber?: string
>   },
>   Job?: boolean,
>   BalanceWithJobs?: number,
>   PrimaryPhone?: {
>     FreeFormNumber?: string
>   },
>   OpenBalanceDate?: string,
>   Taxable?: boolean,
>   AlternatePhone?: {
>     FreeFormNumber?: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   Level?: number,
>   MiddleName?: string,
>   Notes?: string,
>   TaxExemptionReasonId?: string,
>   WebAddr?: {
>     URI?: string
>   },
>   Active?: boolean,
>   CompanyName?: string,
>   Balance?: number,
>   SyncToken?: string,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   Suffix?: string,
>   IsProject?: boolean,
>   Source?: string,
>   FamilyName?: string,
>   PrimaryTaxIdentifier?: string,
>   PrintOnCheckName?: string,
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   Id: string
> }
> ```

***

### get

`customer.get`

QuickBooks Read a customer

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.customer.get({"realmId":"12345678","customerId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `customerId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Customer` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Customer full type
>
> ```ts theme={null}
> {
>   PrimaryEmailAddr?: {
>     Address?: string
>   },
>   DisplayName?: string,
>   Title?: string,
>   ResaleNum?: string,
>   SecondaryTaxIdentifier?: string,
>   DefaultTaxCodeRef?: {
>     name?: string,
>     value: string
>   },
>   PreferredDeliveryMethod?: string,
>   GivenName?: string,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerTypeRef?: {
>     value: string
>   },
>   FullyQualifiedName?: string,
>   Fax?: {
>     FreeFormNumber?: string
>   },
>   BillWithParent?: boolean,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   Mobile?: {
>     FreeFormNumber?: string
>   },
>   Job?: boolean,
>   BalanceWithJobs?: number,
>   PrimaryPhone?: {
>     FreeFormNumber?: string
>   },
>   OpenBalanceDate?: string,
>   Taxable?: boolean,
>   AlternatePhone?: {
>     FreeFormNumber?: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   Level?: number,
>   MiddleName?: string,
>   Notes?: string,
>   TaxExemptionReasonId?: string,
>   WebAddr?: {
>     URI?: string
>   },
>   Active?: boolean,
>   CompanyName?: string,
>   Balance?: number,
>   SyncToken?: string,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   Suffix?: string,
>   IsProject?: boolean,
>   Source?: string,
>   FamilyName?: string,
>   PrimaryTaxIdentifier?: string,
>   PrintOnCheckName?: string,
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   Id: string
> }
> ```

***

### list

`customer.list`

QuickBooks Query a customer

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.customer.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   Customer?: {
>     PrimaryEmailAddr?: {
>       Address?: string
>     },
>     DisplayName?: string,
>     Title?: string,
>     ResaleNum?: string,
>     SecondaryTaxIdentifier?: string,
>     DefaultTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     PreferredDeliveryMethod?: string,
>     GivenName?: string,
>     SalesTermRef?: {
>       name?: string,
>       value: string
>     },
>     CustomerTypeRef?: {
>       value: string
>     },
>     FullyQualifiedName?: string,
>     Fax?: {
>       FreeFormNumber?: string
>     },
>     BillWithParent?: boolean,
>     CurrencyRef?: {
>       name?: string,
>       value: string
>     },
>     Mobile?: {
>       FreeFormNumber?: string
>     },
>     Job?: boolean,
>     BalanceWithJobs?: number,
>     PrimaryPhone?: {
>       FreeFormNumber?: string
>     },
>     OpenBalanceDate?: string,
>     Taxable?: boolean,
>     AlternatePhone?: {
>       FreeFormNumber?: string
>     },
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     },
>     ParentRef?: {
>       name?: string,
>       value: string
>     },
>     Level?: number,
>     MiddleName?: string,
>     Notes?: string,
>     TaxExemptionReasonId?: string,
>     WebAddr?: {
>       URI?: string
>     },
>     Active?: boolean,
>     CompanyName?: string,
>     Balance?: number,
>     SyncToken?: string,
>     ShipAddr?: {
>       City?: string,
>       Country?: string,
>       Line5?: string,
>       Line4?: string,
>       Line3?: string,
>       Line2?: string,
>       Line1?: string,
>       PostalCode?: string,
>       CountrySubDivisionCode?: string,
>       Id?: string
>     },
>     PaymentMethodRef?: {
>       name?: string,
>       value: string
>     },
>     Suffix?: string,
>     IsProject?: boolean,
>     Source?: string,
>     FamilyName?: string,
>     PrimaryTaxIdentifier?: string,
>     PrintOnCheckName?: string,
>     BillAddr?: {
>       City?: string,
>       Country?: string,
>       Line5?: string,
>       Line4?: string,
>       Line3?: string,
>       Line2?: string,
>       Line1?: string,
>       PostalCode?: string,
>       CountrySubDivisionCode?: string,
>       Id?: string
>     },
>     Id: string
>   }[]
> }
> ```

***

### sparseUpdate

`customer.sparseUpdate`

QuickBooks Sparse update a customer

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.customer.sparseUpdate({"realmId":"12345678","body":{"Id":"35","SyncToken":"0","sparse":true}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   PrimaryEmailAddr?: {
>     Address?: string
>   },
>   DisplayName?: string,
>   Title?: string,
>   ResaleNum?: string,
>   SecondaryTaxIdentifier?: string,
>   DefaultTaxCodeRef?: {
>     name?: string,
>     value: string
>   },
>   PreferredDeliveryMethod?: string,
>   GivenName?: string,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerTypeRef?: {
>     value: string
>   },
>   FullyQualifiedName?: string,
>   Fax?: {
>     FreeFormNumber?: string
>   },
>   BillWithParent?: boolean,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   Mobile?: {
>     FreeFormNumber?: string
>   },
>   Job?: boolean,
>   BalanceWithJobs?: number,
>   PrimaryPhone?: {
>     FreeFormNumber?: string
>   },
>   OpenBalanceDate?: string,
>   Taxable?: boolean,
>   AlternatePhone?: {
>     FreeFormNumber?: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   Level?: number,
>   MiddleName?: string,
>   Notes?: string,
>   TaxExemptionReasonId?: string,
>   WebAddr?: {
>     URI?: string
>   },
>   Active?: boolean,
>   CompanyName?: string,
>   Balance?: number,
>   SyncToken: string,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   Suffix?: string,
>   IsProject?: boolean,
>   Source?: string,
>   FamilyName?: string,
>   PrimaryTaxIdentifier?: string,
>   PrintOnCheckName?: string,
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   Id: string,
>   sparse: true
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Customer` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Customer full type
>
> ```ts theme={null}
> {
>   PrimaryEmailAddr?: {
>     Address?: string
>   },
>   DisplayName?: string,
>   Title?: string,
>   ResaleNum?: string,
>   SecondaryTaxIdentifier?: string,
>   DefaultTaxCodeRef?: {
>     name?: string,
>     value: string
>   },
>   PreferredDeliveryMethod?: string,
>   GivenName?: string,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerTypeRef?: {
>     value: string
>   },
>   FullyQualifiedName?: string,
>   Fax?: {
>     FreeFormNumber?: string
>   },
>   BillWithParent?: boolean,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   Mobile?: {
>     FreeFormNumber?: string
>   },
>   Job?: boolean,
>   BalanceWithJobs?: number,
>   PrimaryPhone?: {
>     FreeFormNumber?: string
>   },
>   OpenBalanceDate?: string,
>   Taxable?: boolean,
>   AlternatePhone?: {
>     FreeFormNumber?: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   Level?: number,
>   MiddleName?: string,
>   Notes?: string,
>   TaxExemptionReasonId?: string,
>   WebAddr?: {
>     URI?: string
>   },
>   Active?: boolean,
>   CompanyName?: string,
>   Balance?: number,
>   SyncToken?: string,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   Suffix?: string,
>   IsProject?: boolean,
>   Source?: string,
>   FamilyName?: string,
>   PrimaryTaxIdentifier?: string,
>   PrintOnCheckName?: string,
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   Id: string
> }
> ```

***

### update

`customer.update`

QuickBooks Full update a customer

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.customer.update({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   PrimaryEmailAddr?: {
>     Address?: string
>   },
>   DisplayName?: string,
>   Title?: string,
>   ResaleNum?: string,
>   SecondaryTaxIdentifier?: string,
>   DefaultTaxCodeRef?: {
>     name?: string,
>     value: string
>   },
>   PreferredDeliveryMethod?: string,
>   GivenName?: string,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerTypeRef?: {
>     value: string
>   },
>   FullyQualifiedName?: string,
>   Fax?: {
>     FreeFormNumber?: string
>   },
>   BillWithParent?: boolean,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   Mobile?: {
>     FreeFormNumber?: string
>   },
>   Job?: boolean,
>   BalanceWithJobs?: number,
>   PrimaryPhone?: {
>     FreeFormNumber?: string
>   },
>   OpenBalanceDate?: string,
>   Taxable?: boolean,
>   AlternatePhone?: {
>     FreeFormNumber?: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   Level?: number,
>   MiddleName?: string,
>   Notes?: string,
>   TaxExemptionReasonId?: string,
>   WebAddr?: {
>     URI?: string
>   },
>   Active?: boolean,
>   CompanyName?: string,
>   Balance?: number,
>   SyncToken: string,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   Suffix?: string,
>   IsProject?: boolean,
>   Source?: string,
>   FamilyName?: string,
>   PrimaryTaxIdentifier?: string,
>   PrintOnCheckName?: string,
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   Id: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Customer` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Customer full type
>
> ```ts theme={null}
> {
>   PrimaryEmailAddr?: {
>     Address?: string
>   },
>   DisplayName?: string,
>   Title?: string,
>   ResaleNum?: string,
>   SecondaryTaxIdentifier?: string,
>   DefaultTaxCodeRef?: {
>     name?: string,
>     value: string
>   },
>   PreferredDeliveryMethod?: string,
>   GivenName?: string,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerTypeRef?: {
>     value: string
>   },
>   FullyQualifiedName?: string,
>   Fax?: {
>     FreeFormNumber?: string
>   },
>   BillWithParent?: boolean,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   Mobile?: {
>     FreeFormNumber?: string
>   },
>   Job?: boolean,
>   BalanceWithJobs?: number,
>   PrimaryPhone?: {
>     FreeFormNumber?: string
>   },
>   OpenBalanceDate?: string,
>   Taxable?: boolean,
>   AlternatePhone?: {
>     FreeFormNumber?: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   Level?: number,
>   MiddleName?: string,
>   Notes?: string,
>   TaxExemptionReasonId?: string,
>   WebAddr?: {
>     URI?: string
>   },
>   Active?: boolean,
>   CompanyName?: string,
>   Balance?: number,
>   SyncToken?: string,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   Suffix?: string,
>   IsProject?: boolean,
>   Source?: string,
>   FamilyName?: string,
>   PrimaryTaxIdentifier?: string,
>   PrintOnCheckName?: string,
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   Id: string
> }
> ```

***

## Customer Balance

### list

`customerBalance.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.customerBalance.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   customer?: string,
>   accounting_method?: string,
>   date_macro?: string,
>   arpaid?: string,
>   report_date?: string,
>   sort_order?: string,
>   summarize_column_by?: string,
>   department?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Customer Balance Detail

### list

`customerBalanceDetail.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.customerBalanceDetail.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   customer?: string,
>   shipvia?: string,
>   term?: string,
>   end_duedate?: string,
>   start_duedate?: string,
>   custom1?: string,
>   sort_by?: string,
>   arpaid?: string,
>   report_date?: string,
>   sort_order?: string,
>   aging_method?: string,
>   department?: string,
>   columns?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Customer Income

### list

`customerIncome.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.customerIncome.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   customer?: string,
>   term?: string,
>   accounting_method?: string,
>   end_date?: string,
>   date_macro?: string,
>   class?: string,
>   sort_order?: string,
>   summarize_column_by?: string,
>   department?: string,
>   vendor?: string,
>   start_date?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Customer Type

### get

`customerType.get`

QuickBooks Read a customertype

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.customerType.get({"realmId":"12345678","id":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `id` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `CustomerType` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] CustomerType full type
>
> ```ts theme={null}
> {
>   Active?: boolean,
>   SyncToken?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   Name?: string,
>   Id: string
> }
> ```

***

### list

`customerType.list`

QuickBooks Query a customertype

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.customerType.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   CustomerType?: {
>     Active?: boolean,
>     SyncToken?: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     },
>     Name?: string,
>     Id: string
>   }[]
> }
> ```

***

## Department

### create

`department.create`

QuickBooks Create a department

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.department.create({"realmId":"12345678","body":{"Name":"sample"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Name: string,
>   ParentRef?: {
>     name?: string,
>     value: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Department` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Department full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   Name: string,
>   FullyQualifiedName?: string,
>   SubDepartment?: boolean,
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   Active?: boolean,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### get

`department.get`

QuickBooks Read a department

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.department.get({"realmId":"12345678","departmentId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `departmentId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Department` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Department full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   Name: string,
>   FullyQualifiedName?: string,
>   SubDepartment?: boolean,
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   Active?: boolean,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### list

`department.list`

QuickBooks Query a department

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.department.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   Department?: {
>     SyncToken?: string,
>     Name: string,
>     FullyQualifiedName?: string,
>     SubDepartment?: boolean,
>     ParentRef?: {
>       name?: string,
>       value: string
>     },
>     Active?: boolean,
>     Id: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   }[]
> }
> ```

***

### update

`department.update`

QuickBooks Full update a department

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.department.update({"realmId":"12345678","body":{"Name":"sample","Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   SyncToken: string,
>   Name?: string,
>   FullyQualifiedName?: string,
>   SubDepartment?: boolean,
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   Active?: boolean,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Department` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Department full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   Name: string,
>   FullyQualifiedName?: string,
>   SubDepartment?: boolean,
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   Active?: boolean,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

## Deposit

### create

`deposit.create`

QuickBooks Create a deposit

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.deposit.create({"realmId":"12345678","body":{"DepositToAccountRef":{"value":"35"},"Line":[{"DetailType":"DepositLineDetail","Amount":20,"DepositLineDetail":{"AccountRef":{"value":"87"}}}]}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   ExchangeRate?: number,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Line?: (
>     {
>       Description?: string,
>       DetailType: DepositLineDetail,
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       Id?: string,
>       DepositLineDetail: {
>         PaymentMethodRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         CheckNum?: string,
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TaxApplicableOn?: Purchase | Sales,
>         TxnType?: APCreditCard | ARRefundCreditCard | Bill | BillPaymentCheck | BuildAssembly | CarryOver | CashPurchase | Charge | Check | CreditCardPayment | CreditMemo | Deposit | EFPLiabilityCheck | EFTBillPayment | EFTRefund | Estimate | InventoryAdjustment | InventoryTransfer | Invoice | ItemReceipt | JournalEntry | LiabilityAdjustment | Paycheck | PayrollLiabilityCheck | PurchaseOrder | PriorPayment | ReceivePayment | RefundCheck | ReimburseCharge | SalesOrder | SalesReceipt | SalesTaxPaymentCheck | Transfer | TimeActivity | VendorCredit | YTDAdjustment,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         Entity?: {
>           name?: string,
>           value: string
>         }
>       }
>     } | {
>       Amount: number,
>       LinkedTxn: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[]
>     }
>   )[]
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Deposit` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Deposit full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   DepositToAccountRef: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   TxnSource?: string,
>   TxnDate?: string,
>   Line: (
>     {
>       Amount: number,
>       LinkedTxn: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[]
>     } | {
>       Description?: string,
>       DetailType: DepositLineDetail,
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       Id?: string,
>       DepositLineDetail: {
>         PaymentMethodRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         CheckNum?: string,
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TaxApplicableOn?: Purchase | Sales,
>         TxnType?: APCreditCard | ARRefundCreditCard | Bill | BillPaymentCheck | BuildAssembly | CarryOver | CashPurchase | Charge | Check | CreditCardPayment | CreditMemo | Deposit | EFPLiabilityCheck | EFTBillPayment | EFTRefund | Estimate | InventoryAdjustment | InventoryTransfer | Invoice | ItemReceipt | JournalEntry | LiabilityAdjustment | Paycheck | PayrollLiabilityCheck | PurchaseOrder | PriorPayment | ReceivePayment | RefundCheck | ReimburseCharge | SalesOrder | SalesReceipt | SalesTaxPaymentCheck | Transfer | TimeActivity | VendorCredit | YTDAdjustment,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         Entity?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   CashBack?: {
>     AccountRef: {
>       name?: string,
>       value: string
>     },
>     Amount: string,
>     Memo?: string
>   },
>   Id: string,
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### delete

`deposit.delete`

QuickBooks Delete a deposit

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.deposit.delete({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Deposit` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] Deposit full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   Id: string,
>   domain?: QBO
> }
> ```

***

### get

`deposit.get`

QuickBooks Read a deposit

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.deposit.get({"realmId":"12345678","depositId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `depositId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Deposit` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Deposit full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   DepositToAccountRef: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   TxnSource?: string,
>   TxnDate?: string,
>   Line: (
>     {
>       Amount: number,
>       LinkedTxn: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[]
>     } | {
>       Description?: string,
>       DetailType: DepositLineDetail,
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       Id?: string,
>       DepositLineDetail: {
>         PaymentMethodRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         CheckNum?: string,
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TaxApplicableOn?: Purchase | Sales,
>         TxnType?: APCreditCard | ARRefundCreditCard | Bill | BillPaymentCheck | BuildAssembly | CarryOver | CashPurchase | Charge | Check | CreditCardPayment | CreditMemo | Deposit | EFPLiabilityCheck | EFTBillPayment | EFTRefund | Estimate | InventoryAdjustment | InventoryTransfer | Invoice | ItemReceipt | JournalEntry | LiabilityAdjustment | Paycheck | PayrollLiabilityCheck | PurchaseOrder | PriorPayment | ReceivePayment | RefundCheck | ReimburseCharge | SalesOrder | SalesReceipt | SalesTaxPaymentCheck | Transfer | TimeActivity | VendorCredit | YTDAdjustment,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         Entity?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   CashBack?: {
>     AccountRef: {
>       name?: string,
>       value: string
>     },
>     Amount: string,
>     Memo?: string
>   },
>   Id: string,
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### list

`deposit.list`

QuickBooks Query a deposit

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.deposit.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   Deposit?: {
>     SyncToken?: string,
>     PrivateNote?: string,
>     RecurDataRef?: {
>       name?: string,
>       value: string
>     },
>     DepositToAccountRef: {
>       name?: string,
>       value: string
>     },
>     GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>     TotalAmt?: number,
>     ExchangeRate?: number,
>     CurrencyRef?: {
>       name?: string,
>       value: string
>     },
>     HomeTotalAmt?: number,
>     DepartmentRef?: {
>       name?: string,
>       value: string
>     },
>     TxnSource?: string,
>     TxnDate?: string,
>     Line: (
>       {
>         Amount: number,
>         LinkedTxn: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[]
>       } | {
>         Description?: string,
>         DetailType: DepositLineDetail,
>         ProjectRef?: {
>           name?: string,
>           value: string
>         },
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LineNum?: number,
>         Amount: number,
>         CustomField?: {
>           DefinitionId: string,
>           StringValue?: string,
>           Type?: StringType | BooleanType | NumberType | DateType,
>           Name?: string
>         }[],
>         Id?: string,
>         DepositLineDetail: {
>           PaymentMethodRef?: {
>             name?: string,
>             value: string
>           },
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           CheckNum?: string,
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           TaxApplicableOn?: Purchase | Sales,
>           TxnType?: APCreditCard | ARRefundCreditCard | Bill | BillPaymentCheck | BuildAssembly | CarryOver | CashPurchase | Charge | Check | CreditCardPayment | CreditMemo | Deposit | EFPLiabilityCheck | EFTBillPayment | EFTRefund | Estimate | InventoryAdjustment | InventoryTransfer | Invoice | ItemReceipt | JournalEntry | LiabilityAdjustment | Paycheck | PayrollLiabilityCheck | PurchaseOrder | PriorPayment | ReceivePayment | RefundCheck | ReimburseCharge | SalesOrder | SalesReceipt | SalesTaxPaymentCheck | Transfer | TimeActivity | VendorCredit | YTDAdjustment,
>           AccountRef: {
>             name?: string,
>             value: string
>           },
>           Entity?: {
>             name?: string,
>             value: string
>           }
>         }
>       }
>     )[],
>     CashBack?: {
>       AccountRef: {
>         name?: string,
>         value: string
>       },
>       Amount: string,
>       Memo?: string
>     },
>     Id: string,
>     TxnTaxDetail?: {
>       TxnTaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       TotalTax?: number,
>       TaxLine?: {
>         DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>         Amount?: number,
>         TaxLineDetail: {
>           NetAmountTaxable?: number,
>           PercentBased?: boolean,
>           TaxInclusiveAmount?: number,
>           OverrideDeltaAmount?: number,
>           TaxRateRef: {
>             name?: string,
>             value: string
>           },
>           TaxPercent?: number
>         }
>       }[]
>     },
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   }[]
> }
> ```

***

### sparseUpdate

`deposit.sparseUpdate`

QuickBooks Sparse update a deposit

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.deposit.sparseUpdate({"realmId":"12345678","body":{"DepositToAccountRef":{"value":"sample"},"Line":[],"Id":"35","SyncToken":"0","sparse":true}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

QuickBooks still requires DepositToAccountRef and Line in a sparse Deposit update (fault 2020 otherwise).

> [accordion] body full type
>
> ```ts theme={null}
> {
>   SyncToken: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   TxnSource?: string,
>   TxnDate?: string,
>   Line?: (
>     {
>       Amount: number,
>       LinkedTxn: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[]
>     } | {
>       Description?: string,
>       DetailType: DepositLineDetail,
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       Id?: string,
>       DepositLineDetail: {
>         PaymentMethodRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         CheckNum?: string,
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TaxApplicableOn?: Purchase | Sales,
>         TxnType?: APCreditCard | ARRefundCreditCard | Bill | BillPaymentCheck | BuildAssembly | CarryOver | CashPurchase | Charge | Check | CreditCardPayment | CreditMemo | Deposit | EFPLiabilityCheck | EFTBillPayment | EFTRefund | Estimate | InventoryAdjustment | InventoryTransfer | Invoice | ItemReceipt | JournalEntry | LiabilityAdjustment | Paycheck | PayrollLiabilityCheck | PurchaseOrder | PriorPayment | ReceivePayment | RefundCheck | ReimburseCharge | SalesOrder | SalesReceipt | SalesTaxPaymentCheck | Transfer | TimeActivity | VendorCredit | YTDAdjustment,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         Entity?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   CashBack?: {
>     AccountRef: {
>       name?: string,
>       value: string
>     },
>     Amount: string,
>     Memo?: string
>   },
>   Id: string,
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   sparse: true
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Deposit` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Deposit full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   DepositToAccountRef: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   TxnSource?: string,
>   TxnDate?: string,
>   Line: (
>     {
>       Amount: number,
>       LinkedTxn: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[]
>     } | {
>       Description?: string,
>       DetailType: DepositLineDetail,
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       Id?: string,
>       DepositLineDetail: {
>         PaymentMethodRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         CheckNum?: string,
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TaxApplicableOn?: Purchase | Sales,
>         TxnType?: APCreditCard | ARRefundCreditCard | Bill | BillPaymentCheck | BuildAssembly | CarryOver | CashPurchase | Charge | Check | CreditCardPayment | CreditMemo | Deposit | EFPLiabilityCheck | EFTBillPayment | EFTRefund | Estimate | InventoryAdjustment | InventoryTransfer | Invoice | ItemReceipt | JournalEntry | LiabilityAdjustment | Paycheck | PayrollLiabilityCheck | PurchaseOrder | PriorPayment | ReceivePayment | RefundCheck | ReimburseCharge | SalesOrder | SalesReceipt | SalesTaxPaymentCheck | Transfer | TimeActivity | VendorCredit | YTDAdjustment,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         Entity?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   CashBack?: {
>     AccountRef: {
>       name?: string,
>       value: string
>     },
>     Amount: string,
>     Memo?: string
>   },
>   Id: string,
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### update

`deposit.update`

QuickBooks Full update a deposit

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.deposit.update({"realmId":"12345678","body":{"DepositToAccountRef":{"value":"sample"},"Line":[],"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   SyncToken: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   TxnSource?: string,
>   TxnDate?: string,
>   Line?: (
>     {
>       Amount: number,
>       LinkedTxn: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[]
>     } | {
>       Description?: string,
>       DetailType: DepositLineDetail,
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       Id?: string,
>       DepositLineDetail: {
>         PaymentMethodRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         CheckNum?: string,
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TaxApplicableOn?: Purchase | Sales,
>         TxnType?: APCreditCard | ARRefundCreditCard | Bill | BillPaymentCheck | BuildAssembly | CarryOver | CashPurchase | Charge | Check | CreditCardPayment | CreditMemo | Deposit | EFPLiabilityCheck | EFTBillPayment | EFTRefund | Estimate | InventoryAdjustment | InventoryTransfer | Invoice | ItemReceipt | JournalEntry | LiabilityAdjustment | Paycheck | PayrollLiabilityCheck | PurchaseOrder | PriorPayment | ReceivePayment | RefundCheck | ReimburseCharge | SalesOrder | SalesReceipt | SalesTaxPaymentCheck | Transfer | TimeActivity | VendorCredit | YTDAdjustment,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         Entity?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   CashBack?: {
>     AccountRef: {
>       name?: string,
>       value: string
>     },
>     Amount: string,
>     Memo?: string
>   },
>   Id: string,
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Deposit` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Deposit full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   DepositToAccountRef: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   TxnSource?: string,
>   TxnDate?: string,
>   Line: (
>     {
>       Amount: number,
>       LinkedTxn: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[]
>     } | {
>       Description?: string,
>       DetailType: DepositLineDetail,
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       Id?: string,
>       DepositLineDetail: {
>         PaymentMethodRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         CheckNum?: string,
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         TaxApplicableOn?: Purchase | Sales,
>         TxnType?: APCreditCard | ARRefundCreditCard | Bill | BillPaymentCheck | BuildAssembly | CarryOver | CashPurchase | Charge | Check | CreditCardPayment | CreditMemo | Deposit | EFPLiabilityCheck | EFTBillPayment | EFTRefund | Estimate | InventoryAdjustment | InventoryTransfer | Invoice | ItemReceipt | JournalEntry | LiabilityAdjustment | Paycheck | PayrollLiabilityCheck | PurchaseOrder | PriorPayment | ReceivePayment | RefundCheck | ReimburseCharge | SalesOrder | SalesReceipt | SalesTaxPaymentCheck | Transfer | TimeActivity | VendorCredit | YTDAdjustment,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         Entity?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   CashBack?: {
>     AccountRef: {
>       name?: string,
>       value: string
>     },
>     Amount: string,
>     Memo?: string
>   },
>   Id: string,
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

## Employee

### create

`employee.create`

QuickBooks Create an employee

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.employee.create({"realmId":"12345678","body":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   GivenName?: string,
>   PrimaryAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FamilyName?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Employee` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Employee full type
>
> ```ts theme={null}
> {
>   PrimaryEmailAddr?: {
>     Address?: string
>   },
>   DisplayName?: string,
>   Title?: string,
>   BillableTime?: boolean,
>   GivenName?: string,
>   V4IDPseudonym?: string,
>   BirthDate?: string,
>   MiddleName?: string,
>   SSN?: string,
>   PrimaryAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   PrimaryPhone?: {
>     FreeFormNumber?: string
>   },
>   Active?: boolean,
>   ReleasedDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   CostRate?: number,
>   Mobile?: {
>     FreeFormNumber?: string
>   },
>   Gender?: string,
>   HiredDate?: string,
>   BillRate?: number,
>   Organization?: boolean,
>   SyncToken?: string,
>   Suffix?: string,
>   FamilyName?: string,
>   PrintOnCheckName?: string,
>   EmployeeNumber?: string,
>   Id: string
> }
> ```

***

### get

`employee.get`

QuickBooks Read an employee

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.employee.get({"realmId":"12345678","employeeId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `employeeId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Employee` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Employee full type
>
> ```ts theme={null}
> {
>   PrimaryEmailAddr?: {
>     Address?: string
>   },
>   DisplayName?: string,
>   Title?: string,
>   BillableTime?: boolean,
>   GivenName?: string,
>   V4IDPseudonym?: string,
>   BirthDate?: string,
>   MiddleName?: string,
>   SSN?: string,
>   PrimaryAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   PrimaryPhone?: {
>     FreeFormNumber?: string
>   },
>   Active?: boolean,
>   ReleasedDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   CostRate?: number,
>   Mobile?: {
>     FreeFormNumber?: string
>   },
>   Gender?: string,
>   HiredDate?: string,
>   BillRate?: number,
>   Organization?: boolean,
>   SyncToken?: string,
>   Suffix?: string,
>   FamilyName?: string,
>   PrintOnCheckName?: string,
>   EmployeeNumber?: string,
>   Id: string
> }
> ```

***

### list

`employee.list`

QuickBooks Query an employee

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.employee.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   Employee?: {
>     PrimaryEmailAddr?: {
>       Address?: string
>     },
>     DisplayName?: string,
>     Title?: string,
>     BillableTime?: boolean,
>     GivenName?: string,
>     V4IDPseudonym?: string,
>     BirthDate?: string,
>     MiddleName?: string,
>     SSN?: string,
>     PrimaryAddr?: {
>       City?: string,
>       Country?: string,
>       Line5?: string,
>       Line4?: string,
>       Line3?: string,
>       Line2?: string,
>       Line1?: string,
>       PostalCode?: string,
>       CountrySubDivisionCode?: string,
>       Id?: string
>     },
>     PrimaryPhone?: {
>       FreeFormNumber?: string
>     },
>     Active?: boolean,
>     ReleasedDate?: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     },
>     CostRate?: number,
>     Mobile?: {
>       FreeFormNumber?: string
>     },
>     Gender?: string,
>     HiredDate?: string,
>     BillRate?: number,
>     Organization?: boolean,
>     SyncToken?: string,
>     Suffix?: string,
>     FamilyName?: string,
>     PrintOnCheckName?: string,
>     EmployeeNumber?: string,
>     Id: string
>   }[]
> }
> ```

***

### update

`employee.update`

QuickBooks Full update an employee

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.employee.update({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   PrimaryEmailAddr?: {
>     Address?: string
>   },
>   DisplayName?: string,
>   Title?: string,
>   BillableTime?: boolean,
>   GivenName?: string,
>   V4IDPseudonym?: string,
>   BirthDate?: string,
>   MiddleName?: string,
>   SSN?: string,
>   PrimaryAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   PrimaryPhone?: {
>     FreeFormNumber?: string
>   },
>   Active?: boolean,
>   ReleasedDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   CostRate?: number,
>   Mobile?: {
>     FreeFormNumber?: string
>   },
>   Gender?: string,
>   HiredDate?: string,
>   BillRate?: number,
>   Organization?: boolean,
>   SyncToken: string,
>   Suffix?: string,
>   FamilyName?: string,
>   PrintOnCheckName?: string,
>   EmployeeNumber?: string,
>   Id: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Employee` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Employee full type
>
> ```ts theme={null}
> {
>   PrimaryEmailAddr?: {
>     Address?: string
>   },
>   DisplayName?: string,
>   Title?: string,
>   BillableTime?: boolean,
>   GivenName?: string,
>   V4IDPseudonym?: string,
>   BirthDate?: string,
>   MiddleName?: string,
>   SSN?: string,
>   PrimaryAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   PrimaryPhone?: {
>     FreeFormNumber?: string
>   },
>   Active?: boolean,
>   ReleasedDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   CostRate?: number,
>   Mobile?: {
>     FreeFormNumber?: string
>   },
>   Gender?: string,
>   HiredDate?: string,
>   BillRate?: number,
>   Organization?: boolean,
>   SyncToken?: string,
>   Suffix?: string,
>   FamilyName?: string,
>   PrintOnCheckName?: string,
>   EmployeeNumber?: string,
>   Id: string
> }
> ```

***

## Estimate

### create

`estimate.create`

QuickBooks Create an estimate

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.estimate.create({"realmId":"12345678","body":{"CustomerRef":{"value":"1"},"Line":[{"DetailType":"SalesItemLineDetail","Amount":100,"SalesItemLineDetail":{"ItemRef":{"value":"1"},"Qty":1,"UnitPrice":100}}]}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Estimate` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Estimate full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   ShipDate?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   TxnStatus?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   AcceptedDate?: string,
>   ExpirationDate?: string,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line?: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   EmailStatus?: string,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   AcceptedBy?: string,
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   ApplyTaxAfterDiscount?: boolean,
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

***

### delete

`estimate.delete`

QuickBooks Delete an estimate

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.estimate.delete({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Estimate` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] Estimate full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   Id: string,
>   domain?: QBO
> }
> ```

***

### get

`estimate.get`

QuickBooks Read an estimate

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.estimate.get({"realmId":"12345678","estimateId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `estimateId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Estimate` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Estimate full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   ShipDate?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   TxnStatus?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   AcceptedDate?: string,
>   ExpirationDate?: string,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line?: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   EmailStatus?: string,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   AcceptedBy?: string,
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   ApplyTaxAfterDiscount?: boolean,
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

***

### getPdf

`estimate.getPdf`

QuickBooks Get an estimate as PDF

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.estimate.getPdf({"realmId":"12345678","estimateId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `estimateId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `kind` | `binary` | Yes | — |
| `contentType` | `string` | Yes | — |
| `base64` | `string` | Yes | — |
| `sizeBytes` | `number` | Yes | — |

***

### list

`estimate.list`

QuickBooks Query an estimate

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.estimate.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   Estimate?: {
>     TxnDate?: string,
>     ShipFromAddr?: {
>       City?: string,
>       Country?: string,
>       Line5?: string,
>       Line4?: string,
>       Line3?: string,
>       Line2?: string,
>       Line1?: string,
>       PostalCode?: string,
>       CountrySubDivisionCode?: string,
>       Id?: string
>     },
>     CurrencyRef?: {
>       name?: string,
>       value: string
>     },
>     ShipDate?: string,
>     ClassRef?: {
>       name?: string,
>       value: string
>     },
>     PrintStatus?: string,
>     CustomField?: {
>       DefinitionId: string,
>       StringValue?: string,
>       Type?: StringType | BooleanType | NumberType | DateType,
>       Name?: string
>     }[],
>     SalesTermRef?: {
>       name?: string,
>       value: string
>     },
>     TxnStatus?: string,
>     LinkedTxn?: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[],
>     GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>     TotalAmt?: number,
>     AcceptedDate?: string,
>     ExpirationDate?: string,
>     DueDate?: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     },
>     DocNumber?: string,
>     PrivateNote?: string,
>     RecurDataRef?: {
>       name?: string,
>       value: string
>     },
>     Line?: (
>       {
>         Description?: string,
>         DetailType: SalesItemLineDetail,
>         SalesItemLineDetail: {
>           TaxInclusiveAmt?: number,
>           ItemRef?: {
>             name?: string,
>             value: string
>           },
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           MarkupInfo?: {
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             Percent?: number,
>             MarkUpIncomeAccountRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           ItemAccountRef?: {
>             name?: string,
>             value: string
>           },
>           ServiceDate?: string,
>           Qty?: number,
>           UnitPrice?: number,
>           TaxClassificationRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         LineNum?: number,
>         Amount: number,
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LinkedTxn?: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[],
>         Id?: string
>       } | {
>         Description?: string,
>         SubTotalLineDetail: {
>           ItemRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         DetailType: SubTotalLineDetail,
>         LineNum?: number,
>         Amount: number,
>         Id?: string
>       } | {
>         DiscountLineDetail: {
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           DiscountAccountRef?: {
>             name?: string,
>             value: string
>           },
>           PercentBased?: boolean,
>           DiscountPercent?: number
>         },
>         Description?: string,
>         DetailType: DiscountLineDetail,
>         LineNum?: number,
>         Amount?: number,
>         Id?: string
>       } | {
>         Description?: string,
>         DetailType: DescriptionOnly,
>         LineNum?: number,
>         Amount?: number,
>         DescriptionLineDetail?: {
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           ServiceDate?: string
>         },
>         Id?: string
>       } | {
>         Description?: string,
>         GroupLineDetail: {
>           Quantity?: number,
>           Line?: {
>             Description?: string,
>             DetailType: SalesItemLineDetail,
>             SalesItemLineDetail: {
>               TaxInclusiveAmt?: number,
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               },
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               MarkupInfo?: {
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 Percent?: number,
>                 MarkUpIncomeAccountRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               ItemAccountRef?: {
>                 name?: string,
>                 value: string
>               },
>               ServiceDate?: string,
>               Qty?: number,
>               UnitPrice?: number,
>               TaxClassificationRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             LineNum?: number,
>             Amount: number,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LinkedTxn?: {
>               TxnLineId?: string,
>               TxnId: string,
>               TxnType: string
>             }[],
>             Id?: string
>           }[],
>           GroupItemRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         DetailType: GroupLineDetail,
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LineNum?: number,
>         Id?: string
>       }
>     )[],
>     CustomerMemo?: {
>       value: string
>     },
>     EmailStatus?: string,
>     ProjectRef?: {
>       name?: string,
>       value: string
>     },
>     TaxExemptionRef?: {
>       name?: string,
>       value: string
>     },
>     CustomerRef: {
>       name?: string,
>       value: string
>     },
>     TxnTaxDetail?: {
>       TxnTaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       TotalTax?: number,
>       TaxLine?: {
>         DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>         Amount?: number,
>         TaxLineDetail: {
>           NetAmountTaxable?: number,
>           PercentBased?: boolean,
>           TaxInclusiveAmount?: number,
>           OverrideDeltaAmount?: number,
>           TaxRateRef: {
>             name?: string,
>             value: string
>           },
>           TaxPercent?: number
>         }
>       }[]
>     },
>     SyncToken?: string,
>     AcceptedBy?: string,
>     ExchangeRate?: number,
>     ShipAddr?: {
>       City?: string,
>       Country?: string,
>       Line5?: string,
>       Line4?: string,
>       Line3?: string,
>       Line2?: string,
>       Line1?: string,
>       PostalCode?: string,
>       CountrySubDivisionCode?: string,
>       Id?: string
>     },
>     HomeTotalAmt?: number,
>     DepartmentRef?: {
>       name?: string,
>       value: string
>     },
>     ShipMethodRef?: {
>       name?: string,
>       value: string
>     },
>     BillAddr?: {
>       City?: string,
>       Country?: string,
>       Line5?: string,
>       Line4?: string,
>       Line3?: string,
>       Line2?: string,
>       Line1?: string,
>       PostalCode?: string,
>       CountrySubDivisionCode?: string,
>       Id?: string
>     },
>     FreeFormAddress?: boolean,
>     ApplyTaxAfterDiscount?: boolean,
>     BillEmail?: {
>       Address?: string
>     },
>     Id: string
>   }[]
> }
> ```

***

### send

`estimate.send`

QuickBooks Send an estimate

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.estimate.send({"realmId":"12345678","estimateId":"35","sendTo":"billing@example.test"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `estimateId` | `string` | Yes | — |
| `sendTo` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Estimate` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Estimate full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   ShipDate?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   TxnStatus?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   AcceptedDate?: string,
>   ExpirationDate?: string,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line?: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   EmailStatus?: string,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   AcceptedBy?: string,
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   ApplyTaxAfterDiscount?: boolean,
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

***

### sparseUpdate

`estimate.sparseUpdate`

QuickBooks Sparse update an estimate

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.estimate.sparseUpdate({"realmId":"12345678","body":{"CustomerRef":{"value":"sample"},"Id":"35","SyncToken":"0","sparse":true}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   ShipDate?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   TxnStatus?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   AcceptedDate?: string,
>   ExpirationDate?: string,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line?: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   EmailStatus?: string,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerRef?: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken: string,
>   AcceptedBy?: string,
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   ApplyTaxAfterDiscount?: boolean,
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string,
>   sparse: true
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Estimate` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Estimate full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   ShipDate?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   TxnStatus?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   AcceptedDate?: string,
>   ExpirationDate?: string,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line?: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   EmailStatus?: string,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   AcceptedBy?: string,
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   ApplyTaxAfterDiscount?: boolean,
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

***

### update

`estimate.update`

QuickBooks Full update an estimate

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.estimate.update({"realmId":"12345678","body":{"CustomerRef":{"value":"sample"},"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   ShipDate?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   TxnStatus?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   AcceptedDate?: string,
>   ExpirationDate?: string,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line?: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   EmailStatus?: string,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerRef?: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken: string,
>   AcceptedBy?: string,
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   ApplyTaxAfterDiscount?: boolean,
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Estimate` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Estimate full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   ShipDate?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   TxnStatus?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   AcceptedDate?: string,
>   ExpirationDate?: string,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line?: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   EmailStatus?: string,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   AcceptedBy?: string,
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   ApplyTaxAfterDiscount?: boolean,
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

***

## Exchangerate

### get

`exchangerate.get`

QuickBooks Get an exchangerate for an individual currency code.

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.exchangerate.get({"realmId":"12345678","currencyCode":"USD","asOfDate":"2026-11-18"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `currencyCode` | `string` | Yes | — |
| `asOfDate` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `ExchangeRate` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] ExchangeRate full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   AsOfDate?: string,
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   SourceCurrencyCode?: string,
>   Rate?: number,
>   TargetCurrencyCode?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### list

`exchangerate.list`

QuickBooks Query exchangerate objects.

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.exchangerate.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   ExchangeRate?: {
>     SyncToken?: string,
>     AsOfDate?: string,
>     CustomField?: {
>       DefinitionId: string,
>       StringValue?: string,
>       Type?: StringType | BooleanType | NumberType | DateType,
>       Name?: string
>     }[],
>     SourceCurrencyCode?: string,
>     Rate?: number,
>     TargetCurrencyCode?: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   }[]
> }
> ```

***

### update

`exchangerate.update`

QuickBooks Update an exchangerate

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.exchangerate.update({"realmId":"12345678","body":{"SyncToken":"0","SourceCurrencyCode":"EUR","Rate":1.08,"AsOfDate":"2026-11-18"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

Needs multicurrency turned on for the company. Without it, exchangerate.get still returns Intuit's daily rate, but that record has no SyncToken and can't be updated.

> [accordion] body full type
>
> ```ts theme={null}
> {
>   SyncToken: string,
>   AsOfDate: string,
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   SourceCurrencyCode: string,
>   Rate: number,
>   TargetCurrencyCode?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `ExchangeRate` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] ExchangeRate full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   AsOfDate?: string,
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   SourceCurrencyCode?: string,
>   Rate?: number,
>   TargetCurrencyCode?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

## General Ledger

### list

`generalLedger.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.generalLedger.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   customer?: string,
>   account?: string,
>   accounting_method?: string,
>   source_account?: string,
>   end_date?: string,
>   date_macro?: string,
>   account_type?: string,
>   sort_by?: string,
>   sort_order?: string,
>   start_date?: string,
>   summarize_column_by?: string,
>   department?: string,
>   vendor?: string,
>   class?: string,
>   columns?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Inventory Adjustment

### create

`inventoryAdjustment.create`

QuickBooks Create an inventory adjustment

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.inventoryAdjustment.create({"realmId":"12345678","body":{"DocNumber":"sample","AdjustAccountRef":{"value":"sample"},"Line":[],"TxnDate":"2026-11-23"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   DocNumber: string,
>   AdjustAccountRef: {
>     name?: string,
>     value: string
>   },
>   PrivateNote?: string,
>   Line: {
>     DetailType?: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>     CustomExtensions?: {
>       AssociatedValues?: {
>         Value: string,
>         Key: string
>       }[],
>       ExtensionType?: string
>     }[],
>     ItemAdjustmentLineDetail: {
>       QtyDiff: number,
>       ItemRef?: {
>         name?: string,
>         value: string
>       }
>     },
>     Id?: number
>   }[],
>   TxnDate: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `InventoryAdjustment` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] InventoryAdjustment full type
>
> ```ts theme={null}
> {
>   DocNumber?: string,
>   TxnDate: string,
>   PrivateNote?: string,
>   SyncToken?: string,
>   Line: {
>     DetailType?: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>     CustomExtensions?: {
>       AssociatedValues?: {
>         Value: string,
>         Key: string
>       }[],
>       ExtensionType?: string
>     }[],
>     ItemAdjustmentLineDetail: {
>       QtyDiff: number,
>       ItemRef?: {
>         name?: string,
>         value: string
>       }
>     },
>     Id?: number
>   }[],
>   AdjustAccountRef: {
>     name?: string,
>     value: string
>   },
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### delete

`inventoryAdjustment.delete`

QuickBooks Delete an inventory adjustment

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.inventoryAdjustment.delete({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `InventoryAdjustment` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] InventoryAdjustment full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   Id: string,
>   domain?: QBO
> }
> ```

***

### get

`inventoryAdjustment.get`

QuickBooks Read an inventory adjustment

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.inventoryAdjustment.get({"realmId":"12345678","inventoryadjustmentId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `inventoryadjustmentId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `InventoryAdjustment` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] InventoryAdjustment full type
>
> ```ts theme={null}
> {
>   DocNumber?: string,
>   TxnDate: string,
>   PrivateNote?: string,
>   SyncToken?: string,
>   Line: {
>     DetailType?: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>     CustomExtensions?: {
>       AssociatedValues?: {
>         Value: string,
>         Key: string
>       }[],
>       ExtensionType?: string
>     }[],
>     ItemAdjustmentLineDetail: {
>       QtyDiff: number,
>       ItemRef?: {
>         name?: string,
>         value: string
>       }
>     },
>     Id?: number
>   }[],
>   AdjustAccountRef: {
>     name?: string,
>     value: string
>   },
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### sparseUpdate

`inventoryAdjustment.sparseUpdate`

QuickBooks Update an inventory adjustment

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.inventoryAdjustment.sparseUpdate({"realmId":"12345678","body":{"AdjustAccountRef":{"value":"sample"},"Line":[],"TxnDate":"2026-11-23","Id":"35","SyncToken":"0","sparse":true}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   DocNumber?: string,
>   AdjustAccountRef?: {
>     name?: string,
>     value: string
>   },
>   PrivateNote?: string,
>   Line?: {
>     DetailType?: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>     CustomExtensions?: {
>       AssociatedValues?: {
>         Value: string,
>         Key: string
>       }[],
>       ExtensionType?: string
>     }[],
>     ItemAdjustmentLineDetail: {
>       QtyDiff: number,
>       ItemRef?: {
>         name?: string,
>         value: string
>       }
>     },
>     Id?: number
>   }[],
>   TxnDate?: string,
>   Id: string,
>   SyncToken: string,
>   sparse: true
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `InventoryAdjustment` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] InventoryAdjustment full type
>
> ```ts theme={null}
> {
>   DocNumber?: string,
>   TxnDate: string,
>   PrivateNote?: string,
>   SyncToken?: string,
>   Line: {
>     DetailType?: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>     CustomExtensions?: {
>       AssociatedValues?: {
>         Value: string,
>         Key: string
>       }[],
>       ExtensionType?: string
>     }[],
>     ItemAdjustmentLineDetail: {
>       QtyDiff: number,
>       ItemRef?: {
>         name?: string,
>         value: string
>       }
>     },
>     Id?: number
>   }[],
>   AdjustAccountRef: {
>     name?: string,
>     value: string
>   },
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

## Inventory Valuation Detail

### list

`inventoryValuationDetail.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.inventoryValuationDetail.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   end_date?: string,
>   end_svcdate?: string,
>   date_macro?: string,
>   svcdate_macro?: string,
>   start_svcdate?: string,
>   group_by?: string,
>   start_date?: string,
>   columns?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Inventory Valuation Summary

### list

`inventoryValuationSummary.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.inventoryValuationSummary.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   qzurl?: string,
>   date_macro?: string,
>   item?: string,
>   report_date?: string,
>   sort_order?: string,
>   summarize_column_by?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Invoice

### create

`invoice.create`

QuickBooks Create an invoice

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.invoice.create({"realmId":"12345678","body":{"CustomerRef":{"value":"1"},"Line":[{"DetailType":"SalesItemLineDetail","Amount":100,"SalesItemLineDetail":{"ItemRef":{"value":"1"},"Qty":1,"UnitPrice":100}}]}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[]
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Invoice` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Invoice full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   HomeBalance?: number,
>   ShipDate?: string,
>   TrackingNum?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   EmailStatus?: string,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   DeliveryInfo?: {
>     DeliveryType?: Email | Tradeshift,
>     DeliveryTime?: string
>   },
>   TxnSource?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   AllowOnlineAffirmPayment?: boolean,
>   InvoiceLink?: string,
>   AllowOnlineACHPayment?: boolean,
>   TransactionLocationType?: string,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   BillEmailCc?: {
>     Address?: string
>   },
>   CustomerMemo?: {
>     value: string
>   },
>   AllowOnlinePayPalPayment?: boolean,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   Deposit?: number,
>   Balance?: number,
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   AllowOnlineCreditCardPayment?: boolean,
>   SyncToken?: string,
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   BillEmailBcc?: {
>     Address?: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   ApplyTaxAfterDiscount?: boolean,
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string,
>   AllowOnlinePayment?: boolean,
>   AllowIPNPayment?: boolean
> }
> ```

***

### delete

`invoice.delete`

QuickBooks Delete an invoice

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.invoice.delete({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Invoice` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] Invoice full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   Id: string,
>   domain?: QBO
> }
> ```

***

### get

`invoice.get`

QuickBooks Read an invoice

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.invoice.get({"realmId":"12345678","invoiceId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `invoiceId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Invoice` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Invoice full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   HomeBalance?: number,
>   ShipDate?: string,
>   TrackingNum?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   EmailStatus?: string,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   DeliveryInfo?: {
>     DeliveryType?: Email | Tradeshift,
>     DeliveryTime?: string
>   },
>   TxnSource?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   AllowOnlineAffirmPayment?: boolean,
>   InvoiceLink?: string,
>   AllowOnlineACHPayment?: boolean,
>   TransactionLocationType?: string,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   BillEmailCc?: {
>     Address?: string
>   },
>   CustomerMemo?: {
>     value: string
>   },
>   AllowOnlinePayPalPayment?: boolean,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   Deposit?: number,
>   Balance?: number,
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   AllowOnlineCreditCardPayment?: boolean,
>   SyncToken?: string,
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   BillEmailBcc?: {
>     Address?: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   ApplyTaxAfterDiscount?: boolean,
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string,
>   AllowOnlinePayment?: boolean,
>   AllowIPNPayment?: boolean
> }
> ```

***

### getPdf

`invoice.getPdf`

QuickBooks Get an invoice as PDF

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.invoice.getPdf({"realmId":"12345678","invoiceId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `invoiceId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `kind` | `binary` | Yes | — |
| `contentType` | `string` | Yes | — |
| `base64` | `string` | Yes | — |
| `sizeBytes` | `number` | Yes | — |

***

### list

`invoice.list`

QuickBooks Query an invoice

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.invoice.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   Invoice?: {
>     TxnDate?: string,
>     ShipFromAddr?: {
>       City?: string,
>       Country?: string,
>       Line5?: string,
>       Line4?: string,
>       Line3?: string,
>       Line2?: string,
>       Line1?: string,
>       PostalCode?: string,
>       CountrySubDivisionCode?: string,
>       Id?: string
>     },
>     CurrencyRef?: {
>       name?: string,
>       value: string
>     },
>     HomeBalance?: number,
>     ShipDate?: string,
>     TrackingNum?: string,
>     ClassRef?: {
>       name?: string,
>       value: string
>     },
>     PrintStatus?: string,
>     EmailStatus?: string,
>     SalesTermRef?: {
>       name?: string,
>       value: string
>     },
>     DeliveryInfo?: {
>       DeliveryType?: Email | Tradeshift,
>       DeliveryTime?: string
>     },
>     TxnSource?: string,
>     LinkedTxn?: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[],
>     DepositToAccountRef?: {
>       name?: string,
>       value: string
>     },
>     GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>     TotalAmt?: number,
>     AllowOnlineAffirmPayment?: boolean,
>     InvoiceLink?: string,
>     AllowOnlineACHPayment?: boolean,
>     TransactionLocationType?: string,
>     DueDate?: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     },
>     DocNumber?: string,
>     PrivateNote?: string,
>     RecurDataRef?: {
>       name?: string,
>       value: string
>     },
>     Line: (
>       {
>         Description?: string,
>         DetailType: SalesItemLineDetail,
>         SalesItemLineDetail: {
>           TaxInclusiveAmt?: number,
>           ItemRef?: {
>             name?: string,
>             value: string
>           },
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           MarkupInfo?: {
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             Percent?: number,
>             MarkUpIncomeAccountRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           ItemAccountRef?: {
>             name?: string,
>             value: string
>           },
>           ServiceDate?: string,
>           Qty?: number,
>           UnitPrice?: number,
>           TaxClassificationRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         LineNum?: number,
>         Amount: number,
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LinkedTxn?: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[],
>         Id?: string
>       } | {
>         Description?: string,
>         SubTotalLineDetail: {
>           ItemRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         DetailType: SubTotalLineDetail,
>         LineNum?: number,
>         Amount: number,
>         Id?: string
>       } | {
>         DiscountLineDetail: {
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           DiscountAccountRef?: {
>             name?: string,
>             value: string
>           },
>           PercentBased?: boolean,
>           DiscountPercent?: number
>         },
>         Description?: string,
>         DetailType: DiscountLineDetail,
>         LineNum?: number,
>         Amount?: number,
>         Id?: string
>       } | {
>         Description?: string,
>         DetailType: DescriptionOnly,
>         LineNum?: number,
>         Amount?: number,
>         DescriptionLineDetail?: {
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           ServiceDate?: string
>         },
>         Id?: string
>       } | {
>         Description?: string,
>         GroupLineDetail: {
>           Quantity?: number,
>           Line?: {
>             Description?: string,
>             DetailType: SalesItemLineDetail,
>             SalesItemLineDetail: {
>               TaxInclusiveAmt?: number,
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               },
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               MarkupInfo?: {
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 Percent?: number,
>                 MarkUpIncomeAccountRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               ItemAccountRef?: {
>                 name?: string,
>                 value: string
>               },
>               ServiceDate?: string,
>               Qty?: number,
>               UnitPrice?: number,
>               TaxClassificationRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             LineNum?: number,
>             Amount: number,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LinkedTxn?: {
>               TxnLineId?: string,
>               TxnId: string,
>               TxnType: string
>             }[],
>             Id?: string
>           }[],
>           GroupItemRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         DetailType: GroupLineDetail,
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LineNum?: number,
>         Id?: string
>       }
>     )[],
>     BillEmailCc?: {
>       Address?: string
>     },
>     CustomerMemo?: {
>       value: string
>     },
>     AllowOnlinePayPalPayment?: boolean,
>     ProjectRef?: {
>       name?: string,
>       value: string
>     },
>     ExchangeRate?: number,
>     TaxExemptionRef?: {
>       name?: string,
>       value: string
>     },
>     Deposit?: number,
>     Balance?: number,
>     CustomerRef: {
>       name?: string,
>       value: string
>     },
>     TxnTaxDetail?: {
>       TxnTaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       TotalTax?: number,
>       TaxLine?: {
>         DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>         Amount?: number,
>         TaxLineDetail: {
>           NetAmountTaxable?: number,
>           PercentBased?: boolean,
>           TaxInclusiveAmount?: number,
>           OverrideDeltaAmount?: number,
>           TaxRateRef: {
>             name?: string,
>             value: string
>           },
>           TaxPercent?: number
>         }
>       }[]
>     },
>     AllowOnlineCreditCardPayment?: boolean,
>     SyncToken?: string,
>     CustomField?: {
>       DefinitionId: string,
>       StringValue?: string,
>       Type?: StringType | BooleanType | NumberType | DateType,
>       Name?: string
>     }[],
>     ShipAddr?: {
>       City?: string,
>       Country?: string,
>       Line5?: string,
>       Line4?: string,
>       Line3?: string,
>       Line2?: string,
>       Line1?: string,
>       PostalCode?: string,
>       CountrySubDivisionCode?: string,
>       Id?: string
>     },
>     HomeTotalAmt?: number,
>     DepartmentRef?: {
>       name?: string,
>       value: string
>     },
>     BillEmailBcc?: {
>       Address?: string
>     },
>     ShipMethodRef?: {
>       name?: string,
>       value: string
>     },
>     BillAddr?: {
>       City?: string,
>       Country?: string,
>       Line5?: string,
>       Line4?: string,
>       Line3?: string,
>       Line2?: string,
>       Line1?: string,
>       PostalCode?: string,
>       CountrySubDivisionCode?: string,
>       Id?: string
>     },
>     FreeFormAddress?: boolean,
>     ApplyTaxAfterDiscount?: boolean,
>     BillEmail?: {
>       Address?: string
>     },
>     Id: string,
>     AllowOnlinePayment?: boolean,
>     AllowIPNPayment?: boolean
>   }[]
> }
> ```

***

### send

`invoice.send`

QuickBooks Send an invoice

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.invoice.send({"realmId":"12345678","invoiceId":"35","sendTo":"billing@example.test"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `invoiceId` | `string` | Yes | — |
| `sendTo` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Invoice` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Invoice full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   HomeBalance?: number,
>   ShipDate?: string,
>   TrackingNum?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   EmailStatus?: string,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   DeliveryInfo?: {
>     DeliveryType?: Email | Tradeshift,
>     DeliveryTime?: string
>   },
>   TxnSource?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   AllowOnlineAffirmPayment?: boolean,
>   InvoiceLink?: string,
>   AllowOnlineACHPayment?: boolean,
>   TransactionLocationType?: string,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   BillEmailCc?: {
>     Address?: string
>   },
>   CustomerMemo?: {
>     value: string
>   },
>   AllowOnlinePayPalPayment?: boolean,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   Deposit?: number,
>   Balance?: number,
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   AllowOnlineCreditCardPayment?: boolean,
>   SyncToken?: string,
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   BillEmailBcc?: {
>     Address?: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   ApplyTaxAfterDiscount?: boolean,
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string,
>   AllowOnlinePayment?: boolean,
>   AllowIPNPayment?: boolean
> }
> ```

***

### sparseUpdate

`invoice.sparseUpdate`

QuickBooks Sparse update an invoice

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.invoice.sparseUpdate({"realmId":"12345678","body":{"Line":[],"CustomerRef":{"value":"sample"},"Id":"35","SyncToken":"0","sparse":true}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   HomeBalance?: number,
>   ShipDate?: string,
>   TrackingNum?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   EmailStatus?: string,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   DeliveryInfo?: {
>     DeliveryType?: Email | Tradeshift,
>     DeliveryTime?: string
>   },
>   TxnSource?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   AllowOnlineAffirmPayment?: boolean,
>   InvoiceLink?: string,
>   AllowOnlineACHPayment?: boolean,
>   TransactionLocationType?: string,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line?: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   BillEmailCc?: {
>     Address?: string
>   },
>   CustomerMemo?: {
>     value: string
>   },
>   AllowOnlinePayPalPayment?: boolean,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   Deposit?: number,
>   Balance?: number,
>   CustomerRef?: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   AllowOnlineCreditCardPayment?: boolean,
>   SyncToken: string,
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   BillEmailBcc?: {
>     Address?: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   ApplyTaxAfterDiscount?: boolean,
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string,
>   AllowOnlinePayment?: boolean,
>   AllowIPNPayment?: boolean,
>   sparse: true
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Invoice` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Invoice full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   HomeBalance?: number,
>   ShipDate?: string,
>   TrackingNum?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   EmailStatus?: string,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   DeliveryInfo?: {
>     DeliveryType?: Email | Tradeshift,
>     DeliveryTime?: string
>   },
>   TxnSource?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   AllowOnlineAffirmPayment?: boolean,
>   InvoiceLink?: string,
>   AllowOnlineACHPayment?: boolean,
>   TransactionLocationType?: string,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   BillEmailCc?: {
>     Address?: string
>   },
>   CustomerMemo?: {
>     value: string
>   },
>   AllowOnlinePayPalPayment?: boolean,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   Deposit?: number,
>   Balance?: number,
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   AllowOnlineCreditCardPayment?: boolean,
>   SyncToken?: string,
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   BillEmailBcc?: {
>     Address?: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   ApplyTaxAfterDiscount?: boolean,
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string,
>   AllowOnlinePayment?: boolean,
>   AllowIPNPayment?: boolean
> }
> ```

***

### update

`invoice.update`

QuickBooks Full update an invoice

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.invoice.update({"realmId":"12345678","body":{"CustomerRef":{"value":"sample"},"Line":[],"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerRef?: {
>     name?: string,
>     value: string
>   },
>   Line?: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Invoice` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Invoice full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   HomeBalance?: number,
>   ShipDate?: string,
>   TrackingNum?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   EmailStatus?: string,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   DeliveryInfo?: {
>     DeliveryType?: Email | Tradeshift,
>     DeliveryTime?: string
>   },
>   TxnSource?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   AllowOnlineAffirmPayment?: boolean,
>   InvoiceLink?: string,
>   AllowOnlineACHPayment?: boolean,
>   TransactionLocationType?: string,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   BillEmailCc?: {
>     Address?: string
>   },
>   CustomerMemo?: {
>     value: string
>   },
>   AllowOnlinePayPalPayment?: boolean,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   Deposit?: number,
>   Balance?: number,
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   AllowOnlineCreditCardPayment?: boolean,
>   SyncToken?: string,
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   BillEmailBcc?: {
>     Address?: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   ApplyTaxAfterDiscount?: boolean,
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string,
>   AllowOnlinePayment?: boolean,
>   AllowIPNPayment?: boolean
> }
> ```

***

### void

`invoice.void`

QuickBooks Void an invoice

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.invoice.void({"realmId":"12345678","body":{"Id":"35","SyncToken":"0","sparse":true}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string,
>   sparse?: true
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Invoice` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Invoice full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   HomeBalance?: number,
>   ShipDate?: string,
>   TrackingNum?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   EmailStatus?: string,
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   DeliveryInfo?: {
>     DeliveryType?: Email | Tradeshift,
>     DeliveryTime?: string
>   },
>   TxnSource?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   AllowOnlineAffirmPayment?: boolean,
>   InvoiceLink?: string,
>   AllowOnlineACHPayment?: boolean,
>   TransactionLocationType?: string,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   BillEmailCc?: {
>     Address?: string
>   },
>   CustomerMemo?: {
>     value: string
>   },
>   AllowOnlinePayPalPayment?: boolean,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   Deposit?: number,
>   Balance?: number,
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   AllowOnlineCreditCardPayment?: boolean,
>   SyncToken?: string,
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   BillEmailBcc?: {
>     Address?: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   ApplyTaxAfterDiscount?: boolean,
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string,
>   AllowOnlinePayment?: boolean,
>   AllowIPNPayment?: boolean
> }
> ```

***

## Item

### create

`item.create`

QuickBooks Create an item

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.item.create({"realmId":"12345678","body":{"Name":"sample"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   QtyOnHand?: number,
>   Name: string,
>   Type?: string,
>   IncomeAccountRef?: {
>     name?: string,
>     value: string
>   },
>   AssetAccountRef?: {
>     name?: string,
>     value: string
>   },
>   InvStartDate?: string,
>   CustomExtensions?: {
>     AssociatedValues?: {
>       Value: string,
>       Key: string
>     }[],
>     ExtensionType?: string
>   }[],
>   ExpenseAccountRef?: {
>     name?: string,
>     value: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Item` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Item full type
>
> ```ts theme={null}
> {
>   Sku?: string,
>   SalesTaxIncluded?: boolean,
>   TrackQtyOnHand?: boolean,
>   SalesTaxCodeRef?: {
>     name?: string,
>     value: string
>   },
>   CustomExtensions?: {
>     AssociatedValues?: {
>       Value: string,
>       Key: string
>     }[],
>     ExtensionType?: string
>   }[],
>   Source?: string,
>   InvStartDate?: string,
>   Type?: string,
>   PurchaseTaxIncluded?: boolean,
>   FullyQualifiedName?: string,
>   Description?: string,
>   SubItem?: boolean,
>   Taxable?: boolean,
>   ReorderPoint?: number,
>   PurchaseDesc?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   PrefVendorRef?: {
>     name?: string,
>     value: string
>   },
>   Name: string,
>   Level?: number,
>   IncomeAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Active?: boolean,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   ExpenseAccountRef?: {
>     name?: string,
>     value: string
>   },
>   TaxClassificationRef?: {
>     name?: string,
>     value: string
>   },
>   PurchaseTaxCodeRef?: {
>     name?: string,
>     value: string
>   },
>   SyncToken?: string,
>   PurchaseCost?: number,
>   QtyOnHand?: number,
>   AssetAccountRef?: {
>     name?: string,
>     value: string
>   },
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   UnitPrice?: number,
>   Id: string
> }
> ```

***

### createCategory

`item.createCategory`

QuickBooks Create a category

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.item.createCategory({"realmId":"12345678","body":{"Type":"Category","Name":"sample"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   SubItem?: boolean,
>   Type: Category,
>   Name: string,
>   ParentRef?: {
>     name?: string,
>     value: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Item` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Item full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   Name?: string,
>   Level?: number,
>   FullyQualifiedName?: string,
>   SubItem?: boolean,
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   Active?: boolean,
>   Type?: string,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### deleteCategory

`item.deleteCategory`

QuickBooks Delete a category (categories cannot be made inactive)

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.item.deleteCategory({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

POST /v3/company/\{realmId}/item?operation=delete with the category's Id and SyncToken. Categories can't be made inactive (QuickBooks answers fault 1020 to Active=false); other item types can't be deleted, only made inactive with item.update.

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Item` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] Item full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   Id: string,
>   domain?: QBO
> }
> ```

***

### getBundle

`item.getBundle`

QuickBooks Read a bundle

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.item.getBundle({"realmId":"12345678","itemId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `itemId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Item` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Item full type
>
> ```ts theme={null}
> {
>   Sku?: string,
>   SyncToken?: string,
>   Name: string,
>   FullyQualifiedName?: string,
>   Type?: string,
>   PurchaseCost?: number,
>   Active?: boolean,
>   ItemGroupDetail?: {
>     ItemGroupLine?: {
>       Qty?: string,
>       ItemRef?: {
>         type?: string,
>         name?: string,
>         value: string
>       }
>     }[]
>   },
>   Taxable?: boolean,
>   Description?: string,
>   PrintGroupedItems?: boolean,
>   UnitPrice?: number,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### getCategory

`item.getCategory`

QuickBooks Read a category

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.item.getCategory({"realmId":"12345678","itemId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `itemId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Item` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Item full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   Name?: string,
>   Level?: number,
>   FullyQualifiedName?: string,
>   SubItem?: boolean,
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   Active?: boolean,
>   Type?: string,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### getItem

`item.getItem`

QuickBooks Read an item

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.item.getItem({"realmId":"12345678","itemId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `itemId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Item` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Item full type
>
> ```ts theme={null}
> {
>   Sku?: string,
>   SalesTaxIncluded?: boolean,
>   TrackQtyOnHand?: boolean,
>   SalesTaxCodeRef?: {
>     name?: string,
>     value: string
>   },
>   CustomExtensions?: {
>     AssociatedValues?: {
>       Value: string,
>       Key: string
>     }[],
>     ExtensionType?: string
>   }[],
>   Source?: string,
>   InvStartDate?: string,
>   Type?: string,
>   PurchaseTaxIncluded?: boolean,
>   FullyQualifiedName?: string,
>   Description?: string,
>   SubItem?: boolean,
>   Taxable?: boolean,
>   ReorderPoint?: number,
>   PurchaseDesc?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   PrefVendorRef?: {
>     name?: string,
>     value: string
>   },
>   Name: string,
>   Level?: number,
>   IncomeAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Active?: boolean,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   ExpenseAccountRef?: {
>     name?: string,
>     value: string
>   },
>   TaxClassificationRef?: {
>     name?: string,
>     value: string
>   },
>   PurchaseTaxCodeRef?: {
>     name?: string,
>     value: string
>   },
>   SyncToken?: string,
>   PurchaseCost?: number,
>   QtyOnHand?: number,
>   AssetAccountRef?: {
>     name?: string,
>     value: string
>   },
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   UnitPrice?: number,
>   Id: string
> }
> ```

***

### listBundles

`item.listBundles`

QuickBooks Query a bundle

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.item.listBundles({"realmId":"12345678","startPosition":1,"maxResults":10});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   Item?: {
>     Sku?: string,
>     SyncToken?: string,
>     Name: string,
>     FullyQualifiedName?: string,
>     Type?: string,
>     PurchaseCost?: number,
>     Active?: boolean,
>     ItemGroupDetail?: {
>       ItemGroupLine?: {
>         Qty?: string,
>         ItemRef?: {
>           type?: string,
>           name?: string,
>           value: string
>         }
>       }[]
>     },
>     Taxable?: boolean,
>     Description?: string,
>     PrintGroupedItems?: boolean,
>     UnitPrice?: number,
>     Id: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   }[]
> }
> ```

***

### listCategories

`item.listCategories`

QuickBooks Query a category

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.item.listCategories({"realmId":"12345678","startPosition":1,"maxResults":10});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   Item?: {
>     SyncToken?: string,
>     Name?: string,
>     Level?: number,
>     FullyQualifiedName?: string,
>     SubItem?: boolean,
>     ParentRef?: {
>       name?: string,
>       value: string
>     },
>     Active?: boolean,
>     Type?: string,
>     Id: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   }[]
> }
> ```

***

### listItems

`item.listItems`

QuickBooks Query an item

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.item.listItems({"realmId":"12345678","startPosition":1,"maxResults":10});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   Item?: {
>     Sku?: string,
>     SalesTaxIncluded?: boolean,
>     TrackQtyOnHand?: boolean,
>     SalesTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     CustomExtensions?: {
>       AssociatedValues?: {
>         Value: string,
>         Key: string
>       }[],
>       ExtensionType?: string
>     }[],
>     Source?: string,
>     InvStartDate?: string,
>     Type?: string,
>     PurchaseTaxIncluded?: boolean,
>     FullyQualifiedName?: string,
>     Description?: string,
>     SubItem?: boolean,
>     Taxable?: boolean,
>     ReorderPoint?: number,
>     PurchaseDesc?: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     },
>     PrefVendorRef?: {
>       name?: string,
>       value: string
>     },
>     Name: string,
>     Level?: number,
>     IncomeAccountRef?: {
>       name?: string,
>       value: string
>     },
>     Active?: boolean,
>     ClassRef?: {
>       name?: string,
>       value: string
>     },
>     ExpenseAccountRef?: {
>       name?: string,
>       value: string
>     },
>     TaxClassificationRef?: {
>       name?: string,
>       value: string
>     },
>     PurchaseTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     SyncToken?: string,
>     PurchaseCost?: number,
>     QtyOnHand?: number,
>     AssetAccountRef?: {
>       name?: string,
>       value: string
>     },
>     ParentRef?: {
>       name?: string,
>       value: string
>     },
>     UnitPrice?: number,
>     Id: string
>   }[]
> }
> ```

***

### update

`item.update`

QuickBooks Full update an item

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.item.update({"realmId":"12345678","body":{"Name":"sample","Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Sku?: string,
>   SalesTaxIncluded?: boolean,
>   TrackQtyOnHand?: boolean,
>   SalesTaxCodeRef?: {
>     name?: string,
>     value: string
>   },
>   CustomExtensions?: {
>     AssociatedValues?: {
>       Value: string,
>       Key: string
>     }[],
>     ExtensionType?: string
>   }[],
>   Source?: string,
>   InvStartDate?: string,
>   Type?: string,
>   PurchaseTaxIncluded?: boolean,
>   FullyQualifiedName?: string,
>   Description?: string,
>   SubItem?: boolean,
>   Taxable?: boolean,
>   ReorderPoint?: number,
>   PurchaseDesc?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   PrefVendorRef?: {
>     name?: string,
>     value: string
>   },
>   Name?: string,
>   Level?: number,
>   IncomeAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Active?: boolean,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   ExpenseAccountRef?: {
>     name?: string,
>     value: string
>   },
>   TaxClassificationRef?: {
>     name?: string,
>     value: string
>   },
>   PurchaseTaxCodeRef?: {
>     name?: string,
>     value: string
>   },
>   SyncToken: string,
>   PurchaseCost?: number,
>   QtyOnHand?: number,
>   AssetAccountRef?: {
>     name?: string,
>     value: string
>   },
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   UnitPrice?: number,
>   Id: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Item` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Item full type
>
> ```ts theme={null}
> {
>   Sku?: string,
>   SalesTaxIncluded?: boolean,
>   TrackQtyOnHand?: boolean,
>   SalesTaxCodeRef?: {
>     name?: string,
>     value: string
>   },
>   CustomExtensions?: {
>     AssociatedValues?: {
>       Value: string,
>       Key: string
>     }[],
>     ExtensionType?: string
>   }[],
>   Source?: string,
>   InvStartDate?: string,
>   Type?: string,
>   PurchaseTaxIncluded?: boolean,
>   FullyQualifiedName?: string,
>   Description?: string,
>   SubItem?: boolean,
>   Taxable?: boolean,
>   ReorderPoint?: number,
>   PurchaseDesc?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   PrefVendorRef?: {
>     name?: string,
>     value: string
>   },
>   Name: string,
>   Level?: number,
>   IncomeAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Active?: boolean,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   ExpenseAccountRef?: {
>     name?: string,
>     value: string
>   },
>   TaxClassificationRef?: {
>     name?: string,
>     value: string
>   },
>   PurchaseTaxCodeRef?: {
>     name?: string,
>     value: string
>   },
>   SyncToken?: string,
>   PurchaseCost?: number,
>   QtyOnHand?: number,
>   AssetAccountRef?: {
>     name?: string,
>     value: string
>   },
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   UnitPrice?: number,
>   Id: string
> }
> ```

***

### updateCategory

`item.updateCategory`

QuickBooks Update a category

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.item.updateCategory({"realmId":"12345678","body":{"Name":"sample","Type":"Category","Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   SyncToken: string,
>   Name?: string,
>   Level?: number,
>   FullyQualifiedName?: string,
>   SubItem?: boolean,
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   Active?: boolean,
>   Type: Category,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Item` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Item full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   Name?: string,
>   Level?: number,
>   FullyQualifiedName?: string,
>   SubItem?: boolean,
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   Active?: boolean,
>   Type?: string,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

## Journal Entry

### create

`journalEntry.create`

QuickBooks Create a journalentry

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.journalEntry.create({"realmId":"12345678","body":{"Line":[{"DetailType":"JournalEntryLineDetail","Amount":100,"JournalEntryLineDetail":{"PostingType":"Debit","AccountRef":{"value":"39"}}},{"DetailType":"JournalEntryLineDetail","Amount":100,"JournalEntryLineDetail":{"PostingType":"Credit","AccountRef":{"value":"44"}}}]}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   Line: {
>     Description?: string,
>     JournalEntryLineDetail: {
>       TaxAmount?: number,
>       TaxInclusiveAmt?: number,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       TaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       BillableStatus?: Billable | NotBillable | HasBeenBilled,
>       TaxApplicableOn?: Purchase | Sales,
>       PostingType: Credit | Debit,
>       AccountRef: {
>         name?: string,
>         value: string
>       },
>       Entity?: {
>         Type?: Customer | Employee | Job | Other | Vendor,
>         EntityRef: {
>           name?: string,
>           value: string
>         }
>       }
>     },
>     DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>     ProjectRef?: {
>       name?: string,
>       value: string
>     },
>     CustomExtensions?: {
>       AssociatedValues?: {
>         Value: string,
>         Key: string
>       }[],
>       ExtensionType?: string
>     }[],
>     LineNum?: number,
>     Amount: number,
>     Id?: string
>   }[]
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `JournalEntry` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] JournalEntry full type
>
> ```ts theme={null}
> {
>   DocNumber?: string,
>   SyncToken?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   TxnDate?: string,
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   TaxRateRef?: {
>     name?: string,
>     value: string
>   },
>   HomeTotalAmt?: number,
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   Adjustment?: boolean,
>   Id: string,
>   Line: {
>     Description?: string,
>     JournalEntryLineDetail: {
>       TaxAmount?: number,
>       TaxInclusiveAmt?: number,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       TaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       BillableStatus?: Billable | NotBillable | HasBeenBilled,
>       TaxApplicableOn?: Purchase | Sales,
>       PostingType: Credit | Debit,
>       AccountRef: {
>         name?: string,
>         value: string
>       },
>       Entity?: {
>         Type?: Customer | Employee | Job | Other | Vendor,
>         EntityRef: {
>           name?: string,
>           value: string
>         }
>       }
>     },
>     DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>     ProjectRef?: {
>       name?: string,
>       value: string
>     },
>     CustomExtensions?: {
>       AssociatedValues?: {
>         Value: string,
>         Key: string
>       }[],
>       ExtensionType?: string
>     }[],
>     LineNum?: number,
>     Amount: number,
>     Id?: string
>   }[],
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### delete

`journalEntry.delete`

QuickBooks Delete a journalentry

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.journalEntry.delete({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `JournalEntry` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] JournalEntry full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   Id: string,
>   domain?: QBO
> }
> ```

***

### get

`journalEntry.get`

QuickBooks Read a journalentry

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.journalEntry.get({"realmId":"12345678","journalentryId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `journalentryId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `JournalEntry` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] JournalEntry full type
>
> ```ts theme={null}
> {
>   DocNumber?: string,
>   SyncToken?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   TxnDate?: string,
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   TaxRateRef?: {
>     name?: string,
>     value: string
>   },
>   HomeTotalAmt?: number,
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   Adjustment?: boolean,
>   Id: string,
>   Line: {
>     Description?: string,
>     JournalEntryLineDetail: {
>       TaxAmount?: number,
>       TaxInclusiveAmt?: number,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       TaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       BillableStatus?: Billable | NotBillable | HasBeenBilled,
>       TaxApplicableOn?: Purchase | Sales,
>       PostingType: Credit | Debit,
>       AccountRef: {
>         name?: string,
>         value: string
>       },
>       Entity?: {
>         Type?: Customer | Employee | Job | Other | Vendor,
>         EntityRef: {
>           name?: string,
>           value: string
>         }
>       }
>     },
>     DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>     ProjectRef?: {
>       name?: string,
>       value: string
>     },
>     CustomExtensions?: {
>       AssociatedValues?: {
>         Value: string,
>         Key: string
>       }[],
>       ExtensionType?: string
>     }[],
>     LineNum?: number,
>     Amount: number,
>     Id?: string
>   }[],
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### list

`journalEntry.list`

QuickBooks Query a journalentry

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.journalEntry.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   JournalEntry?: {
>     DocNumber?: string,
>     SyncToken?: string,
>     PrivateNote?: string,
>     RecurDataRef?: {
>       name?: string,
>       value: string
>     },
>     TxnDate?: string,
>     TotalAmt?: number,
>     ExchangeRate?: number,
>     CurrencyRef?: {
>       name?: string,
>       value: string
>     },
>     TaxRateRef?: {
>       name?: string,
>       value: string
>     },
>     HomeTotalAmt?: number,
>     TxnTaxDetail?: {
>       TxnTaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       TotalTax?: number,
>       TaxLine?: {
>         DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>         Amount?: number,
>         TaxLineDetail: {
>           NetAmountTaxable?: number,
>           PercentBased?: boolean,
>           TaxInclusiveAmount?: number,
>           OverrideDeltaAmount?: number,
>           TaxRateRef: {
>             name?: string,
>             value: string
>           },
>           TaxPercent?: number
>         }
>       }[]
>     },
>     GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>     Adjustment?: boolean,
>     Id: string,
>     Line: {
>       Description?: string,
>       JournalEntryLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         DepartmentRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         TaxApplicableOn?: Purchase | Sales,
>         PostingType: Credit | Debit,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         Entity?: {
>           Type?: Customer | Employee | Job | Other | Vendor,
>           EntityRef: {
>             name?: string,
>             value: string
>           }
>         }
>       },
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       ProjectRef?: {
>         name?: string,
>         value: string
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     }[],
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   }[]
> }
> ```

***

### sparseUpdate

`journalEntry.sparseUpdate`

QuickBooks Sparse update a journalentry

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.journalEntry.sparseUpdate({"realmId":"12345678","body":{"Id":"35","Line":[],"SyncToken":"0","sparse":true}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   DocNumber?: string,
>   SyncToken: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   TxnDate?: string,
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   TaxRateRef?: {
>     name?: string,
>     value: string
>   },
>   HomeTotalAmt?: number,
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   Adjustment?: boolean,
>   Id: string,
>   Line?: {
>     Description?: string,
>     JournalEntryLineDetail: {
>       TaxAmount?: number,
>       TaxInclusiveAmt?: number,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       TaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       BillableStatus?: Billable | NotBillable | HasBeenBilled,
>       TaxApplicableOn?: Purchase | Sales,
>       PostingType: Credit | Debit,
>       AccountRef: {
>         name?: string,
>         value: string
>       },
>       Entity?: {
>         Type?: Customer | Employee | Job | Other | Vendor,
>         EntityRef: {
>           name?: string,
>           value: string
>         }
>       }
>     },
>     DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>     ProjectRef?: {
>       name?: string,
>       value: string
>     },
>     CustomExtensions?: {
>       AssociatedValues?: {
>         Value: string,
>         Key: string
>       }[],
>       ExtensionType?: string
>     }[],
>     LineNum?: number,
>     Amount: number,
>     Id?: string
>   }[],
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   sparse: true
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `JournalEntry` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] JournalEntry full type
>
> ```ts theme={null}
> {
>   DocNumber?: string,
>   SyncToken?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   TxnDate?: string,
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   TaxRateRef?: {
>     name?: string,
>     value: string
>   },
>   HomeTotalAmt?: number,
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   Adjustment?: boolean,
>   Id: string,
>   Line: {
>     Description?: string,
>     JournalEntryLineDetail: {
>       TaxAmount?: number,
>       TaxInclusiveAmt?: number,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       TaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       BillableStatus?: Billable | NotBillable | HasBeenBilled,
>       TaxApplicableOn?: Purchase | Sales,
>       PostingType: Credit | Debit,
>       AccountRef: {
>         name?: string,
>         value: string
>       },
>       Entity?: {
>         Type?: Customer | Employee | Job | Other | Vendor,
>         EntityRef: {
>           name?: string,
>           value: string
>         }
>       }
>     },
>     DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>     ProjectRef?: {
>       name?: string,
>       value: string
>     },
>     CustomExtensions?: {
>       AssociatedValues?: {
>         Value: string,
>         Key: string
>       }[],
>       ExtensionType?: string
>     }[],
>     LineNum?: number,
>     Amount: number,
>     Id?: string
>   }[],
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### update

`journalEntry.update`

QuickBooks Full update a journalentry

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.journalEntry.update({"realmId":"12345678","body":{"Id":"35","Line":[],"SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   DocNumber?: string,
>   SyncToken: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   TxnDate?: string,
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   TaxRateRef?: {
>     name?: string,
>     value: string
>   },
>   HomeTotalAmt?: number,
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   Adjustment?: boolean,
>   Id: string,
>   Line?: {
>     Description?: string,
>     JournalEntryLineDetail: {
>       TaxAmount?: number,
>       TaxInclusiveAmt?: number,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       TaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       BillableStatus?: Billable | NotBillable | HasBeenBilled,
>       TaxApplicableOn?: Purchase | Sales,
>       PostingType: Credit | Debit,
>       AccountRef: {
>         name?: string,
>         value: string
>       },
>       Entity?: {
>         Type?: Customer | Employee | Job | Other | Vendor,
>         EntityRef: {
>           name?: string,
>           value: string
>         }
>       }
>     },
>     DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>     ProjectRef?: {
>       name?: string,
>       value: string
>     },
>     CustomExtensions?: {
>       AssociatedValues?: {
>         Value: string,
>         Key: string
>       }[],
>       ExtensionType?: string
>     }[],
>     LineNum?: number,
>     Amount: number,
>     Id?: string
>   }[],
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `JournalEntry` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] JournalEntry full type
>
> ```ts theme={null}
> {
>   DocNumber?: string,
>   SyncToken?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   TxnDate?: string,
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   TaxRateRef?: {
>     name?: string,
>     value: string
>   },
>   HomeTotalAmt?: number,
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   Adjustment?: boolean,
>   Id: string,
>   Line: {
>     Description?: string,
>     JournalEntryLineDetail: {
>       TaxAmount?: number,
>       TaxInclusiveAmt?: number,
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       DepartmentRef?: {
>         name?: string,
>         value: string
>       },
>       TaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       BillableStatus?: Billable | NotBillable | HasBeenBilled,
>       TaxApplicableOn?: Purchase | Sales,
>       PostingType: Credit | Debit,
>       AccountRef: {
>         name?: string,
>         value: string
>       },
>       Entity?: {
>         Type?: Customer | Employee | Job | Other | Vendor,
>         EntityRef: {
>           name?: string,
>           value: string
>         }
>       }
>     },
>     DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>     ProjectRef?: {
>       name?: string,
>       value: string
>     },
>     CustomExtensions?: {
>       AssociatedValues?: {
>         Value: string,
>         Key: string
>       }[],
>       ExtensionType?: string
>     }[],
>     LineNum?: number,
>     Amount: number,
>     Id?: string
>   }[],
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

## Journal Report

### list

`journalReport.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.journalReport.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   end_date?: string,
>   date_macro?: string,
>   sort_by?: string,
>   sort_order?: string,
>   start_date?: string,
>   columns?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Payment

### create

`payment.create`

QuickBooks Create a payment

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.payment.create({"realmId":"12345678","body":{"TotalAmt":100,"CustomerRef":{"value":"1"},"Line":[{"Amount":100,"LinkedTxn":[{"TxnId":"130","TxnType":"Invoice"}]}]}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   TotalAmt: number,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   Line?: {
>     Amount: number,
>     LinkedTxn: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[]
>   }[]
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Payment` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Payment full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   PrivateNote?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   UnappliedAmt?: number,
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   Line?: {
>     Amount: number,
>     LinkedTxn: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[]
>   }[],
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TxnSource?: string,
>   PaymentRefNum?: string,
>   TxnDate?: string,
>   CreditCardPayment?: {
>     CreditChargeResponse?: {
>       Status?: Completed | Voided | Unknown,
>       AuthCode?: string,
>       TxnAuthorizationTime?: string,
>       CCTransId?: string
>     },
>     CreditChargeInfo?: {
>       CcExpiryMonth?: number,
>       ProcessPayment?: boolean,
>       PostalCode?: string,
>       Amount?: number,
>       NameOnAcct?: string,
>       CcExpiryYear?: number,
>       Type?: string,
>       BillAddrStreet?: string
>     }
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### delete

`payment.delete`

QuickBooks Delete a payment

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.payment.delete({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Payment` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] Payment full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   Id: string,
>   domain?: QBO
> }
> ```

***

### get

`payment.get`

QuickBooks Read a payment

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.payment.get({"realmId":"12345678","paymentId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `paymentId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Payment` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Payment full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   PrivateNote?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   UnappliedAmt?: number,
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   Line?: {
>     Amount: number,
>     LinkedTxn: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[]
>   }[],
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TxnSource?: string,
>   PaymentRefNum?: string,
>   TxnDate?: string,
>   CreditCardPayment?: {
>     CreditChargeResponse?: {
>       Status?: Completed | Voided | Unknown,
>       AuthCode?: string,
>       TxnAuthorizationTime?: string,
>       CCTransId?: string
>     },
>     CreditChargeInfo?: {
>       CcExpiryMonth?: number,
>       ProcessPayment?: boolean,
>       PostalCode?: string,
>       Amount?: number,
>       NameOnAcct?: string,
>       CcExpiryYear?: number,
>       Type?: string,
>       BillAddrStreet?: string
>     }
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### getPdf

`payment.getPdf`

QuickBooks Get a payment as PDF

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.payment.getPdf({"realmId":"12345678","paymentId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `paymentId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `kind` | `binary` | Yes | — |
| `contentType` | `string` | Yes | — |
| `base64` | `string` | Yes | — |
| `sizeBytes` | `number` | Yes | — |

***

### list

`payment.list`

QuickBooks Query a payment

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.payment.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   Payment?: {
>     SyncToken?: string,
>     PrivateNote?: string,
>     PaymentMethodRef?: {
>       name?: string,
>       value: string
>     },
>     UnappliedAmt?: number,
>     DepositToAccountRef?: {
>       name?: string,
>       value: string
>     },
>     CurrencyRef?: {
>       name?: string,
>       value: string
>     },
>     TotalAmt?: number,
>     ExchangeRate?: number,
>     Line?: {
>       Amount: number,
>       LinkedTxn: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[]
>     }[],
>     ProjectRef?: {
>       name?: string,
>       value: string
>     },
>     TxnSource?: string,
>     PaymentRefNum?: string,
>     TxnDate?: string,
>     CreditCardPayment?: {
>       CreditChargeResponse?: {
>         Status?: Completed | Voided | Unknown,
>         AuthCode?: string,
>         TxnAuthorizationTime?: string,
>         CCTransId?: string
>       },
>       CreditChargeInfo?: {
>         CcExpiryMonth?: number,
>         ProcessPayment?: boolean,
>         PostalCode?: string,
>         Amount?: number,
>         NameOnAcct?: string,
>         CcExpiryYear?: number,
>         Type?: string,
>         BillAddrStreet?: string
>       }
>     },
>     TaxExemptionRef?: {
>       name?: string,
>       value: string
>     },
>     CustomerRef: {
>       name?: string,
>       value: string
>     },
>     Id: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   }[]
> }
> ```

***

### send

`payment.send`

QuickBooks Send a payment

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.payment.send({"realmId":"12345678","paymentId":"35","sendTo":"billing@example.test"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `paymentId` | `string` | Yes | — |
| `sendTo` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Payment` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Payment full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   PrivateNote?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   UnappliedAmt?: number,
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   Line?: {
>     Amount: number,
>     LinkedTxn: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[]
>   }[],
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TxnSource?: string,
>   PaymentRefNum?: string,
>   TxnDate?: string,
>   CreditCardPayment?: {
>     CreditChargeResponse?: {
>       Status?: Completed | Voided | Unknown,
>       AuthCode?: string,
>       TxnAuthorizationTime?: string,
>       CCTransId?: string
>     },
>     CreditChargeInfo?: {
>       CcExpiryMonth?: number,
>       ProcessPayment?: boolean,
>       PostalCode?: string,
>       Amount?: number,
>       NameOnAcct?: string,
>       CcExpiryYear?: number,
>       Type?: string,
>       BillAddrStreet?: string
>     }
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### update

`payment.update`

QuickBooks Full update a payment

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.payment.update({"realmId":"12345678","body":{"TotalAmt":100,"CustomerRef":{"value":"1"},"Line":[{"Amount":100,"LinkedTxn":[{"TxnId":"130","TxnType":"Invoice"}]}],"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   SyncToken: string,
>   PrivateNote?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   UnappliedAmt?: number,
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   Line?: {
>     Amount: number,
>     LinkedTxn: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[]
>   }[],
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TxnSource?: string,
>   PaymentRefNum?: string,
>   TxnDate?: string,
>   CreditCardPayment?: {
>     CreditChargeResponse?: {
>       Status?: Completed | Voided | Unknown,
>       AuthCode?: string,
>       TxnAuthorizationTime?: string,
>       CCTransId?: string
>     },
>     CreditChargeInfo?: {
>       CcExpiryMonth?: number,
>       ProcessPayment?: boolean,
>       PostalCode?: string,
>       Amount?: number,
>       NameOnAcct?: string,
>       CcExpiryYear?: number,
>       Type?: string,
>       BillAddrStreet?: string
>     }
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerRef?: {
>     name?: string,
>     value: string
>   },
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Payment` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Payment full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   PrivateNote?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   UnappliedAmt?: number,
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   Line?: {
>     Amount: number,
>     LinkedTxn: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[]
>   }[],
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TxnSource?: string,
>   PaymentRefNum?: string,
>   TxnDate?: string,
>   CreditCardPayment?: {
>     CreditChargeResponse?: {
>       Status?: Completed | Voided | Unknown,
>       AuthCode?: string,
>       TxnAuthorizationTime?: string,
>       CCTransId?: string
>     },
>     CreditChargeInfo?: {
>       CcExpiryMonth?: number,
>       ProcessPayment?: boolean,
>       PostalCode?: string,
>       Amount?: number,
>       NameOnAcct?: string,
>       CcExpiryYear?: number,
>       Type?: string,
>       BillAddrStreet?: string
>     }
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### void

`payment.void`

QuickBooks Void a payment

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.payment.void({"realmId":"12345678","body":{"Id":"35","SyncToken":"0","sparse":true}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string,
>   sparse?: true
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Payment` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Payment full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   PrivateNote?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   UnappliedAmt?: number,
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   Line?: {
>     Amount: number,
>     LinkedTxn: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[]
>   }[],
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TxnSource?: string,
>   PaymentRefNum?: string,
>   TxnDate?: string,
>   CreditCardPayment?: {
>     CreditChargeResponse?: {
>       Status?: Completed | Voided | Unknown,
>       AuthCode?: string,
>       TxnAuthorizationTime?: string,
>       CCTransId?: string
>     },
>     CreditChargeInfo?: {
>       CcExpiryMonth?: number,
>       ProcessPayment?: boolean,
>       PostalCode?: string,
>       Amount?: number,
>       NameOnAcct?: string,
>       CcExpiryYear?: number,
>       Type?: string,
>       BillAddrStreet?: string
>     }
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

## Payment Method

### create

`paymentMethod.create`

QuickBooks Create a paymentmethod

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.paymentMethod.create({"realmId":"12345678","body":{"Name":"sample"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Name: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `PaymentMethod` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] PaymentMethod full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   Name: string,
>   Active?: boolean,
>   Type?: string,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### get

`paymentMethod.get`

QuickBooks Read a paymentmethod

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.paymentMethod.get({"realmId":"12345678","paymentmethodId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `paymentmethodId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `PaymentMethod` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] PaymentMethod full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   Name: string,
>   Active?: boolean,
>   Type?: string,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### list

`paymentMethod.list`

QuickBooks Query a paymentmethod

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.paymentMethod.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   PaymentMethod?: {
>     SyncToken?: string,
>     Name: string,
>     Active?: boolean,
>     Type?: string,
>     Id: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   }[]
> }
> ```

***

### update

`paymentMethod.update`

QuickBooks Full update a paymentmethod

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.paymentMethod.update({"realmId":"12345678","body":{"Name":"sample","Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   SyncToken: string,
>   Name?: string,
>   Active?: boolean,
>   Type?: string,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `PaymentMethod` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] PaymentMethod full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   Name: string,
>   Active?: boolean,
>   Type?: string,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

## Preferences

### get

`preferences.get`

QuickBooks Read preferences

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.preferences.get({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Preferences` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Preferences full type
>
> ```ts theme={null}
> {
>   EmailMessagesPrefs?: {
>     InvoiceMessage?: {
>       Message?: string,
>       Subject?: string
>     },
>     EstimateMessage?: {
>       Message?: string,
>       Subject?: string
>     },
>     SalesReceiptMessage?: {
>       Message?: string,
>       Subject?: string
>     },
>     StatementMessage?: {
>       Message?: string,
>       Subject?: string
>     }
>   },
>   SyncToken?: string,
>   ProductAndServicesPrefs?: {
>     RevenueRecognitionEnabled?: boolean,
>     RecognitionFrequencyType?: string,
>     ForSales?: boolean,
>     QuantityOnHand?: boolean,
>     QuantityWithPriceAndRate?: boolean,
>     ForPurchase?: boolean
>   },
>   ReportPrefs?: {
>     ReportBasis?: Accrual | Cash,
>     CalcAgingReportFromTxnDate?: boolean
>   },
>   AccountingInfoPrefs?: {
>     FirstMonthOfFiscalYear?: January | February | March | April | May | June | July | August | September | October | November | December,
>     UseAccountNumbers?: boolean,
>     TaxYearMonth?: string,
>     ClassTrackingPerTxn?: boolean,
>     TrackDepartments?: boolean,
>     TaxForm?: string,
>     CustomerTerminology?: string,
>     BookCloseDate?: string,
>     DepartmentTerminology?: string,
>     ClassTrackingPerTxnLine?: boolean
>   },
>   SalesFormsPrefs?: {
>     SalesEmailBcc?: {
>       Address?: string
>     },
>     AllowServiceDate?: boolean,
>     EstimateMessage?: string,
>     EmailCopyToCompany?: boolean,
>     DefaultCustomerMessage?: string,
>     AllowShipping?: boolean,
>     SalesEmailCc?: {
>       Address?: string
>     },
>     DefaultDiscountAccount?: boolean,
>     IPNSupportEnabled?: boolean,
>     ETransactionPaymentEnabled?: boolean,
>     DefaultTerms?: {
>       name?: string,
>       value: string
>     },
>     UsingProgressInvoicing?: boolean,
>     AllowDeposit?: boolean,
>     UsingPriceLevels?: boolean,
>     DefaultShippingAccount?: boolean,
>     ETransactionAttachPDF?: boolean,
>     CustomTxnNumbers?: boolean,
>     ETransactionEnabledStatus?: string,
>     AllowEstimates?: boolean,
>     AllowDiscount?: boolean,
>     CustomField?: {
>       DefinitionId: string,
>       StringValue?: string,
>       Type?: StringType | BooleanType | NumberType | DateType,
>       Name?: string
>     }[],
>     AutoApplyCredit?: boolean
>   },
>   VendorAndPurchasesPrefs?: {
>     DefaultMarkupAccount?: {
>       name?: string,
>       value: string
>     },
>     TrackingByCustomer?: boolean,
>     POCustomField?: {
>       DefinitionId: string,
>       StringValue?: string,
>       Type?: StringType | BooleanType | NumberType | DateType,
>       Name?: string
>     }[],
>     DefaultTerms?: {
>       name?: string,
>       value: string
>     },
>     BillableExpenseTracking?: boolean,
>     DefaultMarkup?: number,
>     TPAREnabled?: boolean
>   },
>   TaxPrefs?: {
>     PartnerTaxEnabled?: boolean,
>     TaxGroupCodeRef?: string,
>     UsingSalesTax?: boolean
>   },
>   OtherPrefs?: {
>     NameValue?: {
>       Name?: string,
>       Value?: string
>     }[]
>   },
>   TimeTrackingPrefs?: {
>     WorkWeekStartDate?: Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday,
>     MarkTimeEntriesBillable?: boolean,
>     ShowBillRateToAll?: boolean,
>     UsingSalesTax?: boolean,
>     BillCustomers?: boolean
>   },
>   CurrencyPrefs?: {
>     HomeCurrency?: string,
>     MultiCurrencyEnabled?: boolean
>   },
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### list

`preferences.list`

QuickBooks Query preferences

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.preferences.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output:** `object`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   QueryResponse: {
>     startPosition?: number,
>     maxResults?: number,
>     totalCount?: number,
>     Preferences?: {
>       EmailMessagesPrefs?: {
>         InvoiceMessage?: {
>           Message?: string,
>           Subject?: string
>         },
>         EstimateMessage?: {
>           Message?: string,
>           Subject?: string
>         },
>         SalesReceiptMessage?: {
>           Message?: string,
>           Subject?: string
>         },
>         StatementMessage?: {
>           Message?: string,
>           Subject?: string
>         }
>       },
>       SyncToken?: string,
>       ProductAndServicesPrefs?: {
>         RevenueRecognitionEnabled?: boolean,
>         RecognitionFrequencyType?: string,
>         ForSales?: boolean,
>         QuantityOnHand?: boolean,
>         QuantityWithPriceAndRate?: boolean,
>         ForPurchase?: boolean
>       },
>       ReportPrefs?: {
>         ReportBasis?: Accrual | Cash,
>         CalcAgingReportFromTxnDate?: boolean
>       },
>       AccountingInfoPrefs?: {
>         FirstMonthOfFiscalYear?: January | February | March | April | May | June | July | August | September | October | November | December,
>         UseAccountNumbers?: boolean,
>         TaxYearMonth?: string,
>         ClassTrackingPerTxn?: boolean,
>         TrackDepartments?: boolean,
>         TaxForm?: string,
>         CustomerTerminology?: string,
>         BookCloseDate?: string,
>         DepartmentTerminology?: string,
>         ClassTrackingPerTxnLine?: boolean
>       },
>       SalesFormsPrefs?: {
>         SalesEmailBcc?: {
>           Address?: string
>         },
>         AllowServiceDate?: boolean,
>         EstimateMessage?: string,
>         EmailCopyToCompany?: boolean,
>         DefaultCustomerMessage?: string,
>         AllowShipping?: boolean,
>         SalesEmailCc?: {
>           Address?: string
>         },
>         DefaultDiscountAccount?: boolean,
>         IPNSupportEnabled?: boolean,
>         ETransactionPaymentEnabled?: boolean,
>         DefaultTerms?: {
>           name?: string,
>           value: string
>         },
>         UsingProgressInvoicing?: boolean,
>         AllowDeposit?: boolean,
>         UsingPriceLevels?: boolean,
>         DefaultShippingAccount?: boolean,
>         ETransactionAttachPDF?: boolean,
>         CustomTxnNumbers?: boolean,
>         ETransactionEnabledStatus?: string,
>         AllowEstimates?: boolean,
>         AllowDiscount?: boolean,
>         CustomField?: {
>           DefinitionId: string,
>           StringValue?: string,
>           Type?: StringType | BooleanType | NumberType | DateType,
>           Name?: string
>         }[],
>         AutoApplyCredit?: boolean
>       },
>       VendorAndPurchasesPrefs?: {
>         DefaultMarkupAccount?: {
>           name?: string,
>           value: string
>         },
>         TrackingByCustomer?: boolean,
>         POCustomField?: {
>           DefinitionId: string,
>           StringValue?: string,
>           Type?: StringType | BooleanType | NumberType | DateType,
>           Name?: string
>         }[],
>         DefaultTerms?: {
>           name?: string,
>           value: string
>         },
>         BillableExpenseTracking?: boolean,
>         DefaultMarkup?: number,
>         TPAREnabled?: boolean
>       },
>       TaxPrefs?: {
>         PartnerTaxEnabled?: boolean,
>         TaxGroupCodeRef?: string,
>         UsingSalesTax?: boolean
>       },
>       OtherPrefs?: {
>         NameValue?: {
>           Name?: string,
>           Value?: string
>         }[]
>       },
>       TimeTrackingPrefs?: {
>         WorkWeekStartDate?: Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday,
>         MarkTimeEntriesBillable?: boolean,
>         ShowBillRateToAll?: boolean,
>         UsingSalesTax?: boolean,
>         BillCustomers?: boolean
>       },
>       CurrencyPrefs?: {
>         HomeCurrency?: string,
>         MultiCurrencyEnabled?: boolean
>       },
>       Id: string,
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }[]
>   },
>   time: string
> } | {
>   Preferences: {
>     EmailMessagesPrefs?: {
>       InvoiceMessage?: {
>         Message?: string,
>         Subject?: string
>       },
>       EstimateMessage?: {
>         Message?: string,
>         Subject?: string
>       },
>       SalesReceiptMessage?: {
>         Message?: string,
>         Subject?: string
>       },
>       StatementMessage?: {
>         Message?: string,
>         Subject?: string
>       }
>     },
>     SyncToken?: string,
>     ProductAndServicesPrefs?: {
>       RevenueRecognitionEnabled?: boolean,
>       RecognitionFrequencyType?: string,
>       ForSales?: boolean,
>       QuantityOnHand?: boolean,
>       QuantityWithPriceAndRate?: boolean,
>       ForPurchase?: boolean
>     },
>     ReportPrefs?: {
>       ReportBasis?: Accrual | Cash,
>       CalcAgingReportFromTxnDate?: boolean
>     },
>     AccountingInfoPrefs?: {
>       FirstMonthOfFiscalYear?: January | February | March | April | May | June | July | August | September | October | November | December,
>       UseAccountNumbers?: boolean,
>       TaxYearMonth?: string,
>       ClassTrackingPerTxn?: boolean,
>       TrackDepartments?: boolean,
>       TaxForm?: string,
>       CustomerTerminology?: string,
>       BookCloseDate?: string,
>       DepartmentTerminology?: string,
>       ClassTrackingPerTxnLine?: boolean
>     },
>     SalesFormsPrefs?: {
>       SalesEmailBcc?: {
>         Address?: string
>       },
>       AllowServiceDate?: boolean,
>       EstimateMessage?: string,
>       EmailCopyToCompany?: boolean,
>       DefaultCustomerMessage?: string,
>       AllowShipping?: boolean,
>       SalesEmailCc?: {
>         Address?: string
>       },
>       DefaultDiscountAccount?: boolean,
>       IPNSupportEnabled?: boolean,
>       ETransactionPaymentEnabled?: boolean,
>       DefaultTerms?: {
>         name?: string,
>         value: string
>       },
>       UsingProgressInvoicing?: boolean,
>       AllowDeposit?: boolean,
>       UsingPriceLevels?: boolean,
>       DefaultShippingAccount?: boolean,
>       ETransactionAttachPDF?: boolean,
>       CustomTxnNumbers?: boolean,
>       ETransactionEnabledStatus?: string,
>       AllowEstimates?: boolean,
>       AllowDiscount?: boolean,
>       CustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       AutoApplyCredit?: boolean
>     },
>     VendorAndPurchasesPrefs?: {
>       DefaultMarkupAccount?: {
>         name?: string,
>         value: string
>       },
>       TrackingByCustomer?: boolean,
>       POCustomField?: {
>         DefinitionId: string,
>         StringValue?: string,
>         Type?: StringType | BooleanType | NumberType | DateType,
>         Name?: string
>       }[],
>       DefaultTerms?: {
>         name?: string,
>         value: string
>       },
>       BillableExpenseTracking?: boolean,
>       DefaultMarkup?: number,
>       TPAREnabled?: boolean
>     },
>     TaxPrefs?: {
>       PartnerTaxEnabled?: boolean,
>       TaxGroupCodeRef?: string,
>       UsingSalesTax?: boolean
>     },
>     OtherPrefs?: {
>       NameValue?: {
>         Name?: string,
>         Value?: string
>       }[]
>     },
>     TimeTrackingPrefs?: {
>       WorkWeekStartDate?: Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday,
>       MarkTimeEntriesBillable?: boolean,
>       ShowBillRateToAll?: boolean,
>       UsingSalesTax?: boolean,
>       BillCustomers?: boolean
>     },
>     CurrencyPrefs?: {
>       HomeCurrency?: string,
>       MultiCurrencyEnabled?: boolean
>     },
>     Id: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   },
>   time: string
> }
> ```

***

### update

`preferences.update`

QuickBooks Full update preferences

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.preferences.update({"realmId":"12345678","body":{"Id":"1","SyncToken":"0","sparse":true,"SalesFormsPrefs":{"AllowServiceDate":false}}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

Send Id, SyncToken, sparse: true and only the sections to change. QuickBooks reads settings missing from a full update as turned off.

> [accordion] body full type
>
> ```ts theme={null}
> {
>   EmailMessagesPrefs?: {
>     InvoiceMessage?: {
>       Message?: string,
>       Subject?: string
>     },
>     EstimateMessage?: {
>       Message?: string,
>       Subject?: string
>     },
>     SalesReceiptMessage?: {
>       Message?: string,
>       Subject?: string
>     },
>     StatementMessage?: {
>       Message?: string,
>       Subject?: string
>     }
>   },
>   SyncToken: string,
>   ProductAndServicesPrefs?: {
>     RevenueRecognitionEnabled?: boolean,
>     RecognitionFrequencyType?: string,
>     ForSales?: boolean,
>     QuantityOnHand?: boolean,
>     QuantityWithPriceAndRate?: boolean,
>     ForPurchase?: boolean
>   },
>   ReportPrefs?: {
>     ReportBasis?: Accrual | Cash,
>     CalcAgingReportFromTxnDate?: boolean
>   },
>   AccountingInfoPrefs?: {
>     FirstMonthOfFiscalYear?: January | February | March | April | May | June | July | August | September | October | November | December,
>     UseAccountNumbers?: boolean,
>     TaxYearMonth?: string,
>     ClassTrackingPerTxn?: boolean,
>     TrackDepartments?: boolean,
>     TaxForm?: string,
>     CustomerTerminology?: string,
>     BookCloseDate?: string,
>     DepartmentTerminology?: string,
>     ClassTrackingPerTxnLine?: boolean
>   },
>   SalesFormsPrefs?: {
>     SalesEmailBcc?: {
>       Address?: string
>     },
>     AllowServiceDate?: boolean,
>     EstimateMessage?: string,
>     EmailCopyToCompany?: boolean,
>     DefaultCustomerMessage?: string,
>     AllowShipping?: boolean,
>     SalesEmailCc?: {
>       Address?: string
>     },
>     DefaultDiscountAccount?: boolean,
>     IPNSupportEnabled?: boolean,
>     ETransactionPaymentEnabled?: boolean,
>     DefaultTerms?: {
>       name?: string,
>       value: string
>     },
>     UsingProgressInvoicing?: boolean,
>     AllowDeposit?: boolean,
>     UsingPriceLevels?: boolean,
>     DefaultShippingAccount?: boolean,
>     ETransactionAttachPDF?: boolean,
>     CustomTxnNumbers?: boolean,
>     ETransactionEnabledStatus?: string,
>     AllowEstimates?: boolean,
>     AllowDiscount?: boolean,
>     CustomField?: {
>       DefinitionId: string,
>       StringValue?: string,
>       Type?: StringType | BooleanType | NumberType | DateType,
>       Name?: string
>     }[],
>     AutoApplyCredit?: boolean
>   },
>   VendorAndPurchasesPrefs?: {
>     DefaultMarkupAccount?: {
>       name?: string,
>       value: string
>     },
>     TrackingByCustomer?: boolean,
>     POCustomField?: {
>       DefinitionId: string,
>       StringValue?: string,
>       Type?: StringType | BooleanType | NumberType | DateType,
>       Name?: string
>     }[],
>     DefaultTerms?: {
>       name?: string,
>       value: string
>     },
>     BillableExpenseTracking?: boolean,
>     DefaultMarkup?: number,
>     TPAREnabled?: boolean
>   },
>   TaxPrefs?: {
>     PartnerTaxEnabled?: boolean,
>     TaxGroupCodeRef?: string,
>     UsingSalesTax?: boolean
>   },
>   OtherPrefs?: {
>     NameValue?: {
>       Name?: string,
>       Value?: string
>     }[]
>   },
>   TimeTrackingPrefs?: {
>     WorkWeekStartDate?: Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday,
>     MarkTimeEntriesBillable?: boolean,
>     ShowBillRateToAll?: boolean,
>     UsingSalesTax?: boolean,
>     BillCustomers?: boolean
>   },
>   CurrencyPrefs?: {
>     HomeCurrency?: string,
>     MultiCurrencyEnabled?: boolean
>   },
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Preferences` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Preferences full type
>
> ```ts theme={null}
> {
>   EmailMessagesPrefs?: {
>     InvoiceMessage?: {
>       Message?: string,
>       Subject?: string
>     },
>     EstimateMessage?: {
>       Message?: string,
>       Subject?: string
>     },
>     SalesReceiptMessage?: {
>       Message?: string,
>       Subject?: string
>     },
>     StatementMessage?: {
>       Message?: string,
>       Subject?: string
>     }
>   },
>   SyncToken?: string,
>   ProductAndServicesPrefs?: {
>     RevenueRecognitionEnabled?: boolean,
>     RecognitionFrequencyType?: string,
>     ForSales?: boolean,
>     QuantityOnHand?: boolean,
>     QuantityWithPriceAndRate?: boolean,
>     ForPurchase?: boolean
>   },
>   ReportPrefs?: {
>     ReportBasis?: Accrual | Cash,
>     CalcAgingReportFromTxnDate?: boolean
>   },
>   AccountingInfoPrefs?: {
>     FirstMonthOfFiscalYear?: January | February | March | April | May | June | July | August | September | October | November | December,
>     UseAccountNumbers?: boolean,
>     TaxYearMonth?: string,
>     ClassTrackingPerTxn?: boolean,
>     TrackDepartments?: boolean,
>     TaxForm?: string,
>     CustomerTerminology?: string,
>     BookCloseDate?: string,
>     DepartmentTerminology?: string,
>     ClassTrackingPerTxnLine?: boolean
>   },
>   SalesFormsPrefs?: {
>     SalesEmailBcc?: {
>       Address?: string
>     },
>     AllowServiceDate?: boolean,
>     EstimateMessage?: string,
>     EmailCopyToCompany?: boolean,
>     DefaultCustomerMessage?: string,
>     AllowShipping?: boolean,
>     SalesEmailCc?: {
>       Address?: string
>     },
>     DefaultDiscountAccount?: boolean,
>     IPNSupportEnabled?: boolean,
>     ETransactionPaymentEnabled?: boolean,
>     DefaultTerms?: {
>       name?: string,
>       value: string
>     },
>     UsingProgressInvoicing?: boolean,
>     AllowDeposit?: boolean,
>     UsingPriceLevels?: boolean,
>     DefaultShippingAccount?: boolean,
>     ETransactionAttachPDF?: boolean,
>     CustomTxnNumbers?: boolean,
>     ETransactionEnabledStatus?: string,
>     AllowEstimates?: boolean,
>     AllowDiscount?: boolean,
>     CustomField?: {
>       DefinitionId: string,
>       StringValue?: string,
>       Type?: StringType | BooleanType | NumberType | DateType,
>       Name?: string
>     }[],
>     AutoApplyCredit?: boolean
>   },
>   VendorAndPurchasesPrefs?: {
>     DefaultMarkupAccount?: {
>       name?: string,
>       value: string
>     },
>     TrackingByCustomer?: boolean,
>     POCustomField?: {
>       DefinitionId: string,
>       StringValue?: string,
>       Type?: StringType | BooleanType | NumberType | DateType,
>       Name?: string
>     }[],
>     DefaultTerms?: {
>       name?: string,
>       value: string
>     },
>     BillableExpenseTracking?: boolean,
>     DefaultMarkup?: number,
>     TPAREnabled?: boolean
>   },
>   TaxPrefs?: {
>     PartnerTaxEnabled?: boolean,
>     TaxGroupCodeRef?: string,
>     UsingSalesTax?: boolean
>   },
>   OtherPrefs?: {
>     NameValue?: {
>       Name?: string,
>       Value?: string
>     }[]
>   },
>   TimeTrackingPrefs?: {
>     WorkWeekStartDate?: Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday,
>     MarkTimeEntriesBillable?: boolean,
>     ShowBillRateToAll?: boolean,
>     UsingSalesTax?: boolean,
>     BillCustomers?: boolean
>   },
>   CurrencyPrefs?: {
>     HomeCurrency?: string,
>     MultiCurrencyEnabled?: boolean
>   },
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

## Profit And Loss

### list

`profitAndLoss.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.profitAndLoss.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   customer?: string,
>   qzurl?: string,
>   accounting_method?: string,
>   end_date?: string,
>   date_macro?: string,
>   adjusted_gain_loss?: string,
>   class?: string,
>   item?: string,
>   sort_order?: string,
>   summarize_column_by?: string,
>   department?: string,
>   vendor?: string,
>   start_date?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Profit And Loss Detail

### list

`profitAndLossDetail.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.profitAndLossDetail.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   customer?: string,
>   account?: string,
>   accounting_method?: string,
>   end_date?: string,
>   date_macro?: string,
>   adjusted_gain_loss?: string,
>   class?: string,
>   sort_by?: string,
>   payment_method?: string,
>   sort_order?: string,
>   employee?: string,
>   department?: string,
>   vendor?: string,
>   account_type?: string,
>   start_date?: string,
>   columns?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Purchase

### create

`purchase.create`

QuickBooks Create a purchase

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.purchase.create({"realmId":"12345678","body":{"PaymentType":"Cash","AccountRef":{"value":"35"},"Line":[{"DetailType":"AccountBasedExpenseLineDetail","Amount":200,"AccountBasedExpenseLineDetail":{"AccountRef":{"value":"7"}}}]}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   PaymentType: string,
>   AccountRef: {
>     name?: string,
>     value: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: AccountBasedExpenseLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string,
>       AccountBasedExpenseLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }
>     } | {
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       ItemBasedExpenseLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         PriceLevelRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         Qty?: number,
>         UnitPrice?: number
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       DetailType: ItemBasedExpenseLineDetail,
>       Id?: string
>     }
>   )[]
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Purchase` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Purchase full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   RemitToAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   TxnSource?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       ItemBasedExpenseLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         PriceLevelRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         Qty?: number,
>         UnitPrice?: number
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       DetailType: ItemBasedExpenseLineDetail,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: AccountBasedExpenseLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string,
>       AccountBasedExpenseLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   Credit?: boolean,
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   PurchaseEx?: Record<string, any>,
>   ExchangeRate?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   PaymentType: string,
>   EntityRef?: {
>     name?: string,
>     value: string
>   },
>   IncludeInAnnualTPAR?: boolean,
>   AccountRef: {
>     name?: string,
>     value: string
>   },
>   Id: string
> }
> ```

***

### delete

`purchase.delete`

QuickBooks Delete a purchase

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.purchase.delete({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Purchase` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] Purchase full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   Id: string,
>   domain?: QBO
> }
> ```

***

### get

`purchase.get`

QuickBooks Read a purchase

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.purchase.get({"realmId":"12345678","purchaseId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `purchaseId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Purchase` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Purchase full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   RemitToAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   TxnSource?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       ItemBasedExpenseLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         PriceLevelRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         Qty?: number,
>         UnitPrice?: number
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       DetailType: ItemBasedExpenseLineDetail,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: AccountBasedExpenseLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string,
>       AccountBasedExpenseLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   Credit?: boolean,
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   PurchaseEx?: Record<string, any>,
>   ExchangeRate?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   PaymentType: string,
>   EntityRef?: {
>     name?: string,
>     value: string
>   },
>   IncludeInAnnualTPAR?: boolean,
>   AccountRef: {
>     name?: string,
>     value: string
>   },
>   Id: string
> }
> ```

***

### list

`purchase.list`

QuickBooks Query a purchase

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.purchase.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   Purchase?: {
>     TxnDate?: string,
>     CurrencyRef?: {
>       name?: string,
>       value: string
>     },
>     PrintStatus?: string,
>     RemitToAddr?: {
>       City?: string,
>       Country?: string,
>       Line5?: string,
>       Line4?: string,
>       Line3?: string,
>       Line2?: string,
>       Line1?: string,
>       PostalCode?: string,
>       CountrySubDivisionCode?: string,
>       Id?: string
>     },
>     TxnSource?: string,
>     LinkedTxn?: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[],
>     GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>     TotalAmt?: number,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     },
>     DocNumber?: string,
>     PrivateNote?: string,
>     RecurDataRef?: {
>       name?: string,
>       value: string
>     },
>     Line: (
>       {
>         LinkedTxn?: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[],
>         Description?: string,
>         ItemBasedExpenseLineDetail: {
>           TaxInclusiveAmt?: number,
>           ItemRef?: {
>             name?: string,
>             value: string
>           },
>           CustomerRef?: {
>             name?: string,
>             value: string
>           },
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           MarkupInfo?: {
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             Percent?: number,
>             MarkUpIncomeAccountRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           BillableStatus?: Billable | NotBillable | HasBeenBilled,
>           Qty?: number,
>           UnitPrice?: number
>         },
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LineNum?: number,
>         Amount: number,
>         DetailType: ItemBasedExpenseLineDetail,
>         Id?: string
>       } | {
>         Description?: string,
>         DetailType: AccountBasedExpenseLineDetail,
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LineNum?: number,
>         Amount: number,
>         Id?: string,
>         AccountBasedExpenseLineDetail: {
>           TaxAmount?: number,
>           TaxInclusiveAmt?: number,
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           MarkupInfo?: {
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             Percent?: number,
>             MarkUpIncomeAccountRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           BillableStatus?: Billable | NotBillable | HasBeenBilled,
>           AccountRef: {
>             name?: string,
>             value: string
>           },
>           CustomerRef?: {
>             name?: string,
>             value: string
>           }
>         }
>       }
>     )[],
>     Credit?: boolean,
>     TxnTaxDetail?: {
>       TxnTaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       TotalTax?: number,
>       TaxLine?: {
>         DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>         Amount?: number,
>         TaxLineDetail: {
>           NetAmountTaxable?: number,
>           PercentBased?: boolean,
>           TaxInclusiveAmount?: number,
>           OverrideDeltaAmount?: number,
>           TaxRateRef: {
>             name?: string,
>             value: string
>           },
>           TaxPercent?: number
>         }
>       }[]
>     },
>     SyncToken?: string,
>     PaymentMethodRef?: {
>       name?: string,
>       value: string
>     },
>     PurchaseEx?: Record<string, any>,
>     ExchangeRate?: number,
>     DepartmentRef?: {
>       name?: string,
>       value: string
>     },
>     PaymentType: string,
>     EntityRef?: {
>       name?: string,
>       value: string
>     },
>     IncludeInAnnualTPAR?: boolean,
>     AccountRef: {
>       name?: string,
>       value: string
>     },
>     Id: string
>   }[]
> }
> ```

***

### update

`purchase.update`

QuickBooks Full update a purchase

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.purchase.update({"realmId":"12345678","body":{"Line":[],"PaymentType":"Cash","AccountRef":{"value":"sample"},"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   RemitToAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   TxnSource?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line?: (
>     {
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       ItemBasedExpenseLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         PriceLevelRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         Qty?: number,
>         UnitPrice?: number
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       DetailType: ItemBasedExpenseLineDetail,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: AccountBasedExpenseLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string,
>       AccountBasedExpenseLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   Credit?: boolean,
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   PurchaseEx?: Record<string, any>,
>   ExchangeRate?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   PaymentType?: string,
>   EntityRef?: {
>     name?: string,
>     value: string
>   },
>   IncludeInAnnualTPAR?: boolean,
>   AccountRef?: {
>     name?: string,
>     value: string
>   },
>   Id: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Purchase` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Purchase full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   RemitToAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   TxnSource?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       ItemBasedExpenseLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         PriceLevelRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         Qty?: number,
>         UnitPrice?: number
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       DetailType: ItemBasedExpenseLineDetail,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: AccountBasedExpenseLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string,
>       AccountBasedExpenseLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   Credit?: boolean,
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   PurchaseEx?: Record<string, any>,
>   ExchangeRate?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   PaymentType: string,
>   EntityRef?: {
>     name?: string,
>     value: string
>   },
>   IncludeInAnnualTPAR?: boolean,
>   AccountRef: {
>     name?: string,
>     value: string
>   },
>   Id: string
> }
> ```

***

## Purchase Order

### create

`purchaseOrder.create`

QuickBooks Create a purchase order

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.purchaseOrder.create({"realmId":"12345678","body":{"VendorRef":{"value":"56"},"APAccountRef":{"value":"33"},"Line":[{"DetailType":"ItemBasedExpenseLineDetail","Amount":25,"ItemBasedExpenseLineDetail":{"ItemRef":{"value":"11"},"Qty":1,"UnitPrice":25}}]}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   APAccountRef: {
>     name?: string,
>     value: string
>   },
>   VendorRef: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       ItemBasedExpenseLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         PriceLevelRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         Qty?: number,
>         UnitPrice?: number
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       DetailType: ItemBasedExpenseLineDetail,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: AccountBasedExpenseLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string,
>       AccountBasedExpenseLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[]
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `PurchaseOrder` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] PurchaseOrder full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   APAccountRef: {
>     name?: string,
>     value: string
>   },
>   POEmail?: {
>     Address?: string
>   },
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   Memo?: string,
>   POStatus?: string,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   VendorRef: {
>     name?: string,
>     value: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       ItemBasedExpenseLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         PriceLevelRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         Qty?: number,
>         UnitPrice?: number
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       DetailType: ItemBasedExpenseLineDetail,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: AccountBasedExpenseLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string,
>       AccountBasedExpenseLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   ShipTo?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   VendorAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   EmailStatus?: string,
>   Id: string
> }
> ```

***

### delete

`purchaseOrder.delete`

QuickBooks Delete a purchase order

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.purchaseOrder.delete({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `PurchaseOrder` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] PurchaseOrder full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   Id: string,
>   domain?: QBO
> }
> ```

***

### get

`purchaseOrder.get`

QuickBooks Read a purchase order

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.purchaseOrder.get({"realmId":"12345678","purchaseorderId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `purchaseorderId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `PurchaseOrder` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] PurchaseOrder full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   APAccountRef: {
>     name?: string,
>     value: string
>   },
>   POEmail?: {
>     Address?: string
>   },
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   Memo?: string,
>   POStatus?: string,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   VendorRef: {
>     name?: string,
>     value: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       ItemBasedExpenseLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         PriceLevelRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         Qty?: number,
>         UnitPrice?: number
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       DetailType: ItemBasedExpenseLineDetail,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: AccountBasedExpenseLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string,
>       AccountBasedExpenseLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   ShipTo?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   VendorAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   EmailStatus?: string,
>   Id: string
> }
> ```

***

### getPdf

`purchaseOrder.getPdf`

QuickBooks Get a purchase order as PDF

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.purchaseOrder.getPdf({"realmId":"12345678","purchaseorderId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `purchaseorderId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `kind` | `binary` | Yes | — |
| `contentType` | `string` | Yes | — |
| `base64` | `string` | Yes | — |
| `sizeBytes` | `number` | Yes | — |

***

### list

`purchaseOrder.list`

QuickBooks Query a purchase order

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.purchaseOrder.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   PurchaseOrder?: {
>     TxnDate?: string,
>     CurrencyRef?: {
>       name?: string,
>       value: string
>     },
>     CustomField?: {
>       DefinitionId: string,
>       StringValue?: string,
>       Type?: StringType | BooleanType | NumberType | DateType,
>       Name?: string
>     }[],
>     APAccountRef: {
>       name?: string,
>       value: string
>     },
>     POEmail?: {
>       Address?: string
>     },
>     ClassRef?: {
>       name?: string,
>       value: string
>     },
>     SalesTermRef?: {
>       name?: string,
>       value: string
>     },
>     LinkedTxn?: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[],
>     GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>     TotalAmt?: number,
>     Memo?: string,
>     POStatus?: string,
>     DueDate?: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     },
>     DocNumber?: string,
>     PrivateNote?: string,
>     VendorRef: {
>       name?: string,
>       value: string
>     },
>     ShipMethodRef?: {
>       name?: string,
>       value: string
>     },
>     RecurDataRef?: {
>       name?: string,
>       value: string
>     },
>     Line: (
>       {
>         LinkedTxn?: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[],
>         Description?: string,
>         ItemBasedExpenseLineDetail: {
>           TaxInclusiveAmt?: number,
>           ItemRef?: {
>             name?: string,
>             value: string
>           },
>           CustomerRef?: {
>             name?: string,
>             value: string
>           },
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           MarkupInfo?: {
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             Percent?: number,
>             MarkUpIncomeAccountRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           BillableStatus?: Billable | NotBillable | HasBeenBilled,
>           Qty?: number,
>           UnitPrice?: number
>         },
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LineNum?: number,
>         Amount: number,
>         DetailType: ItemBasedExpenseLineDetail,
>         Id?: string
>       } | {
>         Description?: string,
>         DetailType: AccountBasedExpenseLineDetail,
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LineNum?: number,
>         Amount: number,
>         Id?: string,
>         AccountBasedExpenseLineDetail: {
>           TaxAmount?: number,
>           TaxInclusiveAmt?: number,
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           MarkupInfo?: {
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             Percent?: number,
>             MarkUpIncomeAccountRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           BillableStatus?: Billable | NotBillable | HasBeenBilled,
>           AccountRef: {
>             name?: string,
>             value: string
>           },
>           CustomerRef?: {
>             name?: string,
>             value: string
>           }
>         }
>       }
>     )[],
>     TxnTaxDetail?: {
>       TxnTaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       TotalTax?: number,
>       TaxLine?: {
>         DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>         Amount?: number,
>         TaxLineDetail: {
>           NetAmountTaxable?: number,
>           PercentBased?: boolean,
>           TaxInclusiveAmount?: number,
>           OverrideDeltaAmount?: number,
>           TaxRateRef: {
>             name?: string,
>             value: string
>           },
>           TaxPercent?: number
>         }
>       }[]
>     },
>     SyncToken?: string,
>     ShipTo?: {
>       name?: string,
>       value: string
>     },
>     ExchangeRate?: number,
>     ShipAddr?: {
>       City?: string,
>       Country?: string,
>       Line5?: string,
>       Line4?: string,
>       Line3?: string,
>       Line2?: string,
>       Line1?: string,
>       PostalCode?: string,
>       CountrySubDivisionCode?: string,
>       Id?: string
>     },
>     VendorAddr?: {
>       City?: string,
>       Country?: string,
>       Line5?: string,
>       Line4?: string,
>       Line3?: string,
>       Line2?: string,
>       Line1?: string,
>       PostalCode?: string,
>       CountrySubDivisionCode?: string,
>       Id?: string
>     },
>     EmailStatus?: string,
>     Id: string
>   }[]
> }
> ```

***

### send

`purchaseOrder.send`

QuickBooks Send a purchase order

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.purchaseOrder.send({"realmId":"12345678","purchaseorderId":"35","sendTo":"billing@example.test"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `purchaseorderId` | `string` | Yes | — |
| `sendTo` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `PurchaseOrder` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] PurchaseOrder full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   APAccountRef: {
>     name?: string,
>     value: string
>   },
>   POEmail?: {
>     Address?: string
>   },
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   Memo?: string,
>   POStatus?: string,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   VendorRef: {
>     name?: string,
>     value: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       ItemBasedExpenseLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         PriceLevelRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         Qty?: number,
>         UnitPrice?: number
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       DetailType: ItemBasedExpenseLineDetail,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: AccountBasedExpenseLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string,
>       AccountBasedExpenseLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   ShipTo?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   VendorAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   EmailStatus?: string,
>   Id: string
> }
> ```

***

### update

`purchaseOrder.update`

QuickBooks Full update a purchase order

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.purchaseOrder.update({"realmId":"12345678","body":{"APAccountRef":{"value":"sample"},"VendorRef":{"value":"sample"},"Line":[],"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   APAccountRef?: {
>     name?: string,
>     value: string
>   },
>   POEmail?: {
>     Address?: string
>   },
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   Memo?: string,
>   POStatus?: string,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   VendorRef?: {
>     name?: string,
>     value: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line?: (
>     {
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       ItemBasedExpenseLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         PriceLevelRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         Qty?: number,
>         UnitPrice?: number
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       DetailType: ItemBasedExpenseLineDetail,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: AccountBasedExpenseLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string,
>       AccountBasedExpenseLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken: string,
>   ShipTo?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   VendorAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   EmailStatus?: string,
>   Id: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `PurchaseOrder` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] PurchaseOrder full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   APAccountRef: {
>     name?: string,
>     value: string
>   },
>   POEmail?: {
>     Address?: string
>   },
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   SalesTermRef?: {
>     name?: string,
>     value: string
>   },
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   Memo?: string,
>   POStatus?: string,
>   DueDate?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   VendorRef: {
>     name?: string,
>     value: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       ItemBasedExpenseLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         PriceLevelRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         Qty?: number,
>         UnitPrice?: number
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       DetailType: ItemBasedExpenseLineDetail,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: AccountBasedExpenseLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string,
>       AccountBasedExpenseLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   ShipTo?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   VendorAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   EmailStatus?: string,
>   Id: string
> }
> ```

***

## Recurring Transaction

### create

`recurringTransaction.create`

QuickBooks Create a recurring transaction

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.recurringTransaction.create({"realmId":"12345678","body":{"Invoice":{"CustomerRef":{"value":"1"},"Line":[{"DetailType":"SalesItemLineDetail","Amount":100,"SalesItemLineDetail":{"ItemRef":{"value":"1"},"Qty":1,"UnitPrice":100}}],"RecurringInfo":{"Name":"Monthly retainer","RecurType":"Automated","Active":true,"ScheduleInfo":{"IntervalType":"Monthly","NumInterval":1,"DayOfMonth":1,"StartDate":"2026-12-01"}}}}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Bill?: {
>     RecurringInfo: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     }
>   },
>   CreditMemo?: {
>     RecurringInfo: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     }
>   },
>   Deposit?: {
>     RecurringInfo: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     }
>   },
>   Estimate?: {
>     RecurringInfo: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     }
>   },
>   Invoice?: {
>     RecurringInfo: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     }
>   },
>   JournalEntry?: {
>     RecurringInfo: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     }
>   },
>   Purchase?: {
>     RecurringInfo: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     }
>   },
>   PurchaseOrder?: {
>     RecurringInfo: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     }
>   },
>   RefundReceipt?: {
>     RecurringInfo: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     }
>   },
>   SalesReceipt?: {
>     RecurringInfo: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     }
>   },
>   Transfer?: {
>     RecurringInfo: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     }
>   },
>   VendorCredit?: {
>     RecurringInfo: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     }
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `RecurringTransaction` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] RecurringTransaction full type
>
> ```ts theme={null}
> {
>   Bill?: {
>     Id: string,
>     SyncToken?: string,
>     RecurringInfo?: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     },
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   },
>   CreditMemo?: {
>     Id: string,
>     SyncToken?: string,
>     RecurringInfo?: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     },
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   },
>   Deposit?: {
>     Id: string,
>     SyncToken?: string,
>     RecurringInfo?: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     },
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   },
>   Estimate?: {
>     Id: string,
>     SyncToken?: string,
>     RecurringInfo?: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     },
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   },
>   Invoice?: {
>     Id: string,
>     SyncToken?: string,
>     RecurringInfo?: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     },
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   },
>   JournalEntry?: {
>     Id: string,
>     SyncToken?: string,
>     RecurringInfo?: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     },
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   },
>   Purchase?: {
>     Id: string,
>     SyncToken?: string,
>     RecurringInfo?: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     },
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   },
>   PurchaseOrder?: {
>     Id: string,
>     SyncToken?: string,
>     RecurringInfo?: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     },
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   },
>   RefundReceipt?: {
>     Id: string,
>     SyncToken?: string,
>     RecurringInfo?: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     },
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   },
>   SalesReceipt?: {
>     Id: string,
>     SyncToken?: string,
>     RecurringInfo?: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     },
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   },
>   Transfer?: {
>     Id: string,
>     SyncToken?: string,
>     RecurringInfo?: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     },
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   },
>   VendorCredit?: {
>     Id: string,
>     SyncToken?: string,
>     RecurringInfo?: {
>       Active?: boolean,
>       RecurType?: string,
>       ScheduleInfo?: {
>         DayOfWeek?: string,
>         StartDate?: string,
>         MaxOccurrences?: number,
>         RemindDays?: number,
>         IntervalType?: string,
>         WeekOfMonth?: string,
>         MonthOfYear?: string,
>         DaysBefore?: number,
>         NextDate?: string,
>         NumInterval?: number,
>         EndDate?: string,
>         PreviousDate?: string,
>         DayOfMonth?: number
>       },
>       Name?: string
>     },
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   }
> }
> ```

***

### delete

`recurringTransaction.delete`

QuickBooks Delete a recurring transaction

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.recurringTransaction.delete({"realmId":"12345678","body":{"Invoice":{"Id":"35","SyncToken":"0"}}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Bill?: {
>     Id: string,
>     SyncToken: string
>   },
>   CreditMemo?: {
>     Id: string,
>     SyncToken: string
>   },
>   Deposit?: {
>     Id: string,
>     SyncToken: string
>   },
>   Estimate?: {
>     Id: string,
>     SyncToken: string
>   },
>   Invoice?: {
>     Id: string,
>     SyncToken: string
>   },
>   JournalEntry?: {
>     Id: string,
>     SyncToken: string
>   },
>   Purchase?: {
>     Id: string,
>     SyncToken: string
>   },
>   PurchaseOrder?: {
>     Id: string,
>     SyncToken: string
>   },
>   RefundReceipt?: {
>     Id: string,
>     SyncToken: string
>   },
>   SalesReceipt?: {
>     Id: string,
>     SyncToken: string
>   },
>   Transfer?: {
>     Id: string,
>     SyncToken: string
>   },
>   VendorCredit?: {
>     Id: string,
>     SyncToken: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `RecurringTransaction` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] RecurringTransaction full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   domain?: QBO
> }
> ```

***

### get

`recurringTransaction.get`

QuickBooks Read a recurring transaction

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.recurringTransaction.get({"realmId":"12345678","recurringtransactionId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `recurringtransactionId` | `string` | Yes | — |

**Output:** `object`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   RecurringTransaction: {
>     Bill?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     CreditMemo?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     Deposit?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     Estimate?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     Invoice?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     JournalEntry?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     Purchase?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     PurchaseOrder?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     RefundReceipt?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     SalesReceipt?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     Transfer?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     VendorCredit?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   },
>   time: string
> } | {
>   QueryResponse: {
>     startPosition?: number,
>     maxResults?: number,
>     totalCount?: number,
>     RecurringTransaction?: {
>       Bill?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       CreditMemo?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       Deposit?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       Estimate?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       Invoice?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       JournalEntry?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       Purchase?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       PurchaseOrder?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       RefundReceipt?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       SalesReceipt?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       Transfer?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       },
>       VendorCredit?: {
>         Id: string,
>         SyncToken?: string,
>         RecurringInfo?: {
>           Active?: boolean,
>           RecurType?: string,
>           ScheduleInfo?: {
>             DayOfWeek?: string,
>             StartDate?: string,
>             MaxOccurrences?: number,
>             RemindDays?: number,
>             IntervalType?: string,
>             WeekOfMonth?: string,
>             MonthOfYear?: string,
>             DaysBefore?: number,
>             NextDate?: string,
>             NumInterval?: number,
>             EndDate?: string,
>             PreviousDate?: string,
>             DayOfMonth?: number
>           },
>           Name?: string
>         },
>         MetaData?: {
>           CreateTime?: string,
>           LastUpdatedTime?: string
>         }
>       }
>     }[]
>   },
>   time: string
> }
> ```

***

### list

`recurringTransaction.list`

QuickBooks Query a recurring transaction

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.recurringTransaction.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   RecurringTransaction?: {
>     Bill?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     CreditMemo?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     Deposit?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     Estimate?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     Invoice?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     JournalEntry?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     Purchase?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     PurchaseOrder?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     RefundReceipt?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     SalesReceipt?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     Transfer?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     },
>     VendorCredit?: {
>       Id: string,
>       SyncToken?: string,
>       RecurringInfo?: {
>         Active?: boolean,
>         RecurType?: string,
>         ScheduleInfo?: {
>           DayOfWeek?: string,
>           StartDate?: string,
>           MaxOccurrences?: number,
>           RemindDays?: number,
>           IntervalType?: string,
>           WeekOfMonth?: string,
>           MonthOfYear?: string,
>           DaysBefore?: number,
>           NextDate?: string,
>           NumInterval?: number,
>           EndDate?: string,
>           PreviousDate?: string,
>           DayOfMonth?: number
>         },
>         Name?: string
>       },
>       MetaData?: {
>         CreateTime?: string,
>         LastUpdatedTime?: string
>       }
>     }
>   }[]
> }
> ```

***

## Refund Receipt

### create

`refundReceipt.create`

QuickBooks Create a refund receipt

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.refundReceipt.create({"realmId":"12345678","body":{"CustomerRef":{"value":"1"},"DepositToAccountRef":{"value":"35"},"Line":[{"DetailType":"SalesItemLineDetail","Amount":100,"SalesItemLineDetail":{"ItemRef":{"value":"1"},"Qty":1,"UnitPrice":100}}]}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   DepositToAccountRef: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[]
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `RefundReceipt` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] RefundReceipt full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   HomeBalance?: number,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   PaymentRefNum?: string,
>   CheckPayment?: {
>     CheckNum?: string,
>     Status?: string,
>     NameOnAcct?: string,
>     AcctNum?: string,
>     BankName?: string
>   },
>   TxnSource?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   DepositToAccountRef: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   CreditCardPayment?: {
>     CreditChargeResponse?: {
>       Status?: Completed | Voided | Unknown,
>       AuthCode?: string,
>       TxnAuthorizationTime?: string,
>       CCTransId?: string
>     },
>     CreditChargeInfo?: {
>       CcExpiryMonth?: number,
>       ProcessPayment?: boolean,
>       PostalCode?: string,
>       Amount?: number,
>       NameOnAcct?: string,
>       CcExpiryYear?: number,
>       Type?: string,
>       BillAddrStreet?: string
>     }
>   },
>   Balance?: number,
>   CustomerRef?: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   Id: string,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   PaymentType?: Cash | Check | CreditCard | Expense | Other,
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   ApplyTaxAfterDiscount?: boolean,
>   BillEmail?: {
>     Address?: string
>   },
>   HomeTotalAmt?: number
> }
> ```

***

### delete

`refundReceipt.delete`

QuickBooks Delete a refund receipt

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.refundReceipt.delete({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `RefundReceipt` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] RefundReceipt full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   Id: string,
>   domain?: QBO
> }
> ```

***

### get

`refundReceipt.get`

QuickBooks Read a refund receipt

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.refundReceipt.get({"realmId":"12345678","refundreceiptId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `refundreceiptId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `RefundReceipt` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] RefundReceipt full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   HomeBalance?: number,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   PaymentRefNum?: string,
>   CheckPayment?: {
>     CheckNum?: string,
>     Status?: string,
>     NameOnAcct?: string,
>     AcctNum?: string,
>     BankName?: string
>   },
>   TxnSource?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   DepositToAccountRef: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   CreditCardPayment?: {
>     CreditChargeResponse?: {
>       Status?: Completed | Voided | Unknown,
>       AuthCode?: string,
>       TxnAuthorizationTime?: string,
>       CCTransId?: string
>     },
>     CreditChargeInfo?: {
>       CcExpiryMonth?: number,
>       ProcessPayment?: boolean,
>       PostalCode?: string,
>       Amount?: number,
>       NameOnAcct?: string,
>       CcExpiryYear?: number,
>       Type?: string,
>       BillAddrStreet?: string
>     }
>   },
>   Balance?: number,
>   CustomerRef?: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   Id: string,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   PaymentType?: Cash | Check | CreditCard | Expense | Other,
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   ApplyTaxAfterDiscount?: boolean,
>   BillEmail?: {
>     Address?: string
>   },
>   HomeTotalAmt?: number
> }
> ```

***

### getPdf

`refundReceipt.getPdf`

QuickBooks Get a refund receipt as PDF

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.refundReceipt.getPdf({"realmId":"12345678","refundreceiptId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `refundreceiptId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `kind` | `binary` | Yes | — |
| `contentType` | `string` | Yes | — |
| `base64` | `string` | Yes | — |
| `sizeBytes` | `number` | Yes | — |

***

### list

`refundReceipt.list`

QuickBooks Query a refund receipt

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.refundReceipt.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   RefundReceipt?: {
>     TxnDate?: string,
>     CurrencyRef?: {
>       name?: string,
>       value: string
>     },
>     CustomField?: {
>       DefinitionId: string,
>       StringValue?: string,
>       Type?: StringType | BooleanType | NumberType | DateType,
>       Name?: string
>     }[],
>     HomeBalance?: number,
>     ClassRef?: {
>       name?: string,
>       value: string
>     },
>     PrintStatus?: string,
>     PaymentRefNum?: string,
>     CheckPayment?: {
>       CheckNum?: string,
>       Status?: string,
>       NameOnAcct?: string,
>       AcctNum?: string,
>       BankName?: string
>     },
>     TxnSource?: string,
>     RecurDataRef?: {
>       name?: string,
>       value: string
>     },
>     GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>     TotalAmt?: number,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     },
>     DocNumber?: string,
>     PrivateNote?: string,
>     DepositToAccountRef: {
>       name?: string,
>       value: string
>     },
>     Line: (
>       {
>         Description?: string,
>         DetailType: SalesItemLineDetail,
>         SalesItemLineDetail: {
>           TaxInclusiveAmt?: number,
>           ItemRef?: {
>             name?: string,
>             value: string
>           },
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           MarkupInfo?: {
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             Percent?: number,
>             MarkUpIncomeAccountRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           ItemAccountRef?: {
>             name?: string,
>             value: string
>           },
>           ServiceDate?: string,
>           Qty?: number,
>           UnitPrice?: number,
>           TaxClassificationRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         LineNum?: number,
>         Amount: number,
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LinkedTxn?: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[],
>         Id?: string
>       } | {
>         Description?: string,
>         SubTotalLineDetail: {
>           ItemRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         DetailType: SubTotalLineDetail,
>         LineNum?: number,
>         Amount: number,
>         Id?: string
>       } | {
>         DiscountLineDetail: {
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           DiscountAccountRef?: {
>             name?: string,
>             value: string
>           },
>           PercentBased?: boolean,
>           DiscountPercent?: number
>         },
>         Description?: string,
>         DetailType: DiscountLineDetail,
>         LineNum?: number,
>         Amount?: number,
>         Id?: string
>       } | {
>         Description?: string,
>         DetailType: DescriptionOnly,
>         LineNum?: number,
>         Amount?: number,
>         DescriptionLineDetail?: {
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           ServiceDate?: string
>         },
>         Id?: string
>       } | {
>         Description?: string,
>         GroupLineDetail: {
>           Quantity?: number,
>           Line?: {
>             Description?: string,
>             DetailType: SalesItemLineDetail,
>             SalesItemLineDetail: {
>               TaxInclusiveAmt?: number,
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               },
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               MarkupInfo?: {
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 Percent?: number,
>                 MarkUpIncomeAccountRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               ItemAccountRef?: {
>                 name?: string,
>                 value: string
>               },
>               ServiceDate?: string,
>               Qty?: number,
>               UnitPrice?: number,
>               TaxClassificationRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             LineNum?: number,
>             Amount: number,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LinkedTxn?: {
>               TxnLineId?: string,
>               TxnId: string,
>               TxnType: string
>             }[],
>             Id?: string
>           }[],
>           GroupItemRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         DetailType: GroupLineDetail,
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LineNum?: number,
>         Id?: string
>       }
>     )[],
>     CustomerMemo?: {
>       value: string
>     },
>     ProjectRef?: {
>       name?: string,
>       value: string
>     },
>     TaxExemptionRef?: {
>       name?: string,
>       value: string
>     },
>     CreditCardPayment?: {
>       CreditChargeResponse?: {
>         Status?: Completed | Voided | Unknown,
>         AuthCode?: string,
>         TxnAuthorizationTime?: string,
>         CCTransId?: string
>       },
>       CreditChargeInfo?: {
>         CcExpiryMonth?: number,
>         ProcessPayment?: boolean,
>         PostalCode?: string,
>         Amount?: number,
>         NameOnAcct?: string,
>         CcExpiryYear?: number,
>         Type?: string,
>         BillAddrStreet?: string
>       }
>     },
>     Balance?: number,
>     CustomerRef?: {
>       name?: string,
>       value: string
>     },
>     TxnTaxDetail?: {
>       TxnTaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       TotalTax?: number,
>       TaxLine?: {
>         DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>         Amount?: number,
>         TaxLineDetail: {
>           NetAmountTaxable?: number,
>           PercentBased?: boolean,
>           TaxInclusiveAmount?: number,
>           OverrideDeltaAmount?: number,
>           TaxRateRef: {
>             name?: string,
>             value: string
>           },
>           TaxPercent?: number
>         }
>       }[]
>     },
>     SyncToken?: string,
>     PaymentMethodRef?: {
>       name?: string,
>       value: string
>     },
>     ExchangeRate?: number,
>     ShipAddr?: {
>       City?: string,
>       Country?: string,
>       Line5?: string,
>       Line4?: string,
>       Line3?: string,
>       Line2?: string,
>       Line1?: string,
>       PostalCode?: string,
>       CountrySubDivisionCode?: string,
>       Id?: string
>     },
>     Id: string,
>     DepartmentRef?: {
>       name?: string,
>       value: string
>     },
>     PaymentType?: Cash | Check | CreditCard | Expense | Other,
>     BillAddr?: {
>       City?: string,
>       Country?: string,
>       Line5?: string,
>       Line4?: string,
>       Line3?: string,
>       Line2?: string,
>       Line1?: string,
>       PostalCode?: string,
>       CountrySubDivisionCode?: string,
>       Id?: string
>     },
>     ApplyTaxAfterDiscount?: boolean,
>     BillEmail?: {
>       Address?: string
>     },
>     HomeTotalAmt?: number
>   }[]
> }
> ```

***

### send

`refundReceipt.send`

QuickBooks Send a refund receipt

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.refundReceipt.send({"realmId":"12345678","refundreceiptId":"35","sendTo":"billing@example.test"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `refundreceiptId` | `string` | Yes | — |
| `sendTo` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `RefundReceipt` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] RefundReceipt full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   HomeBalance?: number,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   PaymentRefNum?: string,
>   CheckPayment?: {
>     CheckNum?: string,
>     Status?: string,
>     NameOnAcct?: string,
>     AcctNum?: string,
>     BankName?: string
>   },
>   TxnSource?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   DepositToAccountRef: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   CreditCardPayment?: {
>     CreditChargeResponse?: {
>       Status?: Completed | Voided | Unknown,
>       AuthCode?: string,
>       TxnAuthorizationTime?: string,
>       CCTransId?: string
>     },
>     CreditChargeInfo?: {
>       CcExpiryMonth?: number,
>       ProcessPayment?: boolean,
>       PostalCode?: string,
>       Amount?: number,
>       NameOnAcct?: string,
>       CcExpiryYear?: number,
>       Type?: string,
>       BillAddrStreet?: string
>     }
>   },
>   Balance?: number,
>   CustomerRef?: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   Id: string,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   PaymentType?: Cash | Check | CreditCard | Expense | Other,
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   ApplyTaxAfterDiscount?: boolean,
>   BillEmail?: {
>     Address?: string
>   },
>   HomeTotalAmt?: number
> }
> ```

***

### sparseUpdate

`refundReceipt.sparseUpdate`

QuickBooks Sparse update a refund receipt

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.refundReceipt.sparseUpdate({"realmId":"12345678","body":{"DepositToAccountRef":{"value":"sample"},"Line":[],"Id":"35","SyncToken":"0","sparse":true}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   HomeBalance?: number,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   PaymentRefNum?: string,
>   CheckPayment?: {
>     CheckNum?: string,
>     Status?: string,
>     NameOnAcct?: string,
>     AcctNum?: string,
>     BankName?: string
>   },
>   TxnSource?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Line?: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   CreditCardPayment?: {
>     CreditChargeResponse?: {
>       Status?: Completed | Voided | Unknown,
>       AuthCode?: string,
>       TxnAuthorizationTime?: string,
>       CCTransId?: string
>     },
>     CreditChargeInfo?: {
>       CcExpiryMonth?: number,
>       ProcessPayment?: boolean,
>       PostalCode?: string,
>       Amount?: number,
>       NameOnAcct?: string,
>       CcExpiryYear?: number,
>       Type?: string,
>       BillAddrStreet?: string
>     }
>   },
>   Balance?: number,
>   CustomerRef?: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   Id: string,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   PaymentType?: Cash | Check | CreditCard | Expense | Other,
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   ApplyTaxAfterDiscount?: boolean,
>   BillEmail?: {
>     Address?: string
>   },
>   HomeTotalAmt?: number,
>   sparse: true
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `RefundReceipt` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] RefundReceipt full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   HomeBalance?: number,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   PaymentRefNum?: string,
>   CheckPayment?: {
>     CheckNum?: string,
>     Status?: string,
>     NameOnAcct?: string,
>     AcctNum?: string,
>     BankName?: string
>   },
>   TxnSource?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   DepositToAccountRef: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   CreditCardPayment?: {
>     CreditChargeResponse?: {
>       Status?: Completed | Voided | Unknown,
>       AuthCode?: string,
>       TxnAuthorizationTime?: string,
>       CCTransId?: string
>     },
>     CreditChargeInfo?: {
>       CcExpiryMonth?: number,
>       ProcessPayment?: boolean,
>       PostalCode?: string,
>       Amount?: number,
>       NameOnAcct?: string,
>       CcExpiryYear?: number,
>       Type?: string,
>       BillAddrStreet?: string
>     }
>   },
>   Balance?: number,
>   CustomerRef?: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   Id: string,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   PaymentType?: Cash | Check | CreditCard | Expense | Other,
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   ApplyTaxAfterDiscount?: boolean,
>   BillEmail?: {
>     Address?: string
>   },
>   HomeTotalAmt?: number
> }
> ```

***

### update

`refundReceipt.update`

QuickBooks Full update a refund receipt

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.refundReceipt.update({"realmId":"12345678","body":{"DepositToAccountRef":{"value":"sample"},"Line":[],"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Line?: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `RefundReceipt` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] RefundReceipt full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   HomeBalance?: number,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   PaymentRefNum?: string,
>   CheckPayment?: {
>     CheckNum?: string,
>     Status?: string,
>     NameOnAcct?: string,
>     AcctNum?: string,
>     BankName?: string
>   },
>   TxnSource?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   DocNumber?: string,
>   PrivateNote?: string,
>   DepositToAccountRef: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   TaxExemptionRef?: {
>     name?: string,
>     value: string
>   },
>   CreditCardPayment?: {
>     CreditChargeResponse?: {
>       Status?: Completed | Voided | Unknown,
>       AuthCode?: string,
>       TxnAuthorizationTime?: string,
>       CCTransId?: string
>     },
>     CreditChargeInfo?: {
>       CcExpiryMonth?: number,
>       ProcessPayment?: boolean,
>       PostalCode?: string,
>       Amount?: number,
>       NameOnAcct?: string,
>       CcExpiryYear?: number,
>       Type?: string,
>       BillAddrStreet?: string
>     }
>   },
>   Balance?: number,
>   CustomerRef?: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   Id: string,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   PaymentType?: Cash | Check | CreditCard | Expense | Other,
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   ApplyTaxAfterDiscount?: boolean,
>   BillEmail?: {
>     Address?: string
>   },
>   HomeTotalAmt?: number
> }
> ```

***

## Reimburse Charge

### get

`reimburseCharge.get`

QuickBooks Read a reimburse charge

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.reimburseCharge.get({"realmId":"12345678","reimbursechargeId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `reimbursechargeId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `ReimburseCharge` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] ReimburseCharge full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   PrivateNote?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   HasBeenInvoiced?: boolean,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   Line: {
>     LinkedTxn?: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[],
>     LineNum?: number,
>     ReimburseLineDetail: {
>       ClassRef?: {
>         name?: string,
>         value: string
>       },
>       TaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       DiscountAccountRef?: {
>         name?: string,
>         value: string
>       },
>       PercentBased?: boolean,
>       DiscountPercent?: number
>     },
>     LineId?: string,
>     DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail
>   }[],
>   HomeTotalAmt?: number,
>   Amount: number,
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### list

`reimburseCharge.list`

QuickBooks Query a reimburse charge

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.reimburseCharge.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   ReimburseCharge?: {
>     SyncToken?: string,
>     PrivateNote?: string,
>     LinkedTxn?: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[],
>     HasBeenInvoiced?: boolean,
>     CurrencyRef?: {
>       name?: string,
>       value: string
>     },
>     ExchangeRate?: number,
>     Line: {
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       LineNum?: number,
>       ReimburseLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       LineId?: string,
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail
>     }[],
>     HomeTotalAmt?: number,
>     Amount: number,
>     CustomerRef: {
>       name?: string,
>       value: string
>     },
>     Id: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   }[]
> }
> ```

***

## Sales By Class Summary

### list

`salesByClassSummary.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.salesByClassSummary.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   customer?: string,
>   accounting_method?: string,
>   end_date?: string,
>   date_macro?: string,
>   class?: string,
>   item?: string,
>   summarize_column_by?: string,
>   department?: string,
>   start_date?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Sales By Customer

### list

`salesByCustomer.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.salesByCustomer.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   customer?: string,
>   qzurl?: string,
>   accounting_method?: string,
>   end_date?: string,
>   date_macro?: string,
>   class?: string,
>   item?: string,
>   sort_order?: string,
>   summarize_column_by?: string,
>   department?: string,
>   start_date?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Sales By Department

### list

`salesByDepartment.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.salesByDepartment.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   customer?: string,
>   accounting_method?: string,
>   end_date?: string,
>   date_macro?: string,
>   class?: string,
>   item?: string,
>   sort_order?: string,
>   summarize_column_by?: string,
>   department?: string,
>   start_date?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Sales By Product

### list

`salesByProduct.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.salesByProduct.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   customer?: string,
>   end_duedate?: string,
>   accounting_method?: string,
>   end_date?: string,
>   date_macro?: string,
>   start_duedate?: string,
>   class?: string,
>   item?: string,
>   sort_order?: string,
>   summarize_column_by?: string,
>   department?: string,
>   start_date?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Sales Receipt

### create

`salesReceipt.create`

QuickBooks Create a salesreceipt

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.salesReceipt.create({"realmId":"12345678","body":{"CustomerRef":{"value":"1"},"Line":[{"DetailType":"SalesItemLineDetail","Amount":100,"SalesItemLineDetail":{"ItemRef":{"value":"1"},"Qty":1,"UnitPrice":100}}]}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[]
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `SalesReceipt` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] SalesReceipt full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   HomeBalance?: number,
>   ShipDate?: string,
>   TrackingNum?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   PaymentRefNum?: string,
>   DeliveryInfo?: {
>     DeliveryType?: Email | Tradeshift,
>     DeliveryTime?: string
>   },
>   TxnSource?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   ApplyTaxAfterDiscount?: boolean,
>   DocNumber?: string,
>   PrivateNote?: string,
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   EmailStatus?: string,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   CreditCardPayment?: {
>     CreditChargeResponse?: {
>       Status?: Completed | Voided | Unknown,
>       AuthCode?: string,
>       TxnAuthorizationTime?: string,
>       CCTransId?: string
>     },
>     CreditChargeInfo?: {
>       CcExpiryMonth?: number,
>       ProcessPayment?: boolean,
>       PostalCode?: string,
>       Amount?: number,
>       NameOnAcct?: string,
>       CcExpiryYear?: number,
>       Type?: string,
>       BillAddrStreet?: string
>     }
>   },
>   Balance?: number,
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

***

### delete

`salesReceipt.delete`

QuickBooks Delete a salesreceipt

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.salesReceipt.delete({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `SalesReceipt` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] SalesReceipt full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   Id: string,
>   domain?: QBO
> }
> ```

***

### get

`salesReceipt.get`

QuickBooks Read a salesreceipt

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.salesReceipt.get({"realmId":"12345678","salesreceiptId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `salesreceiptId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `SalesReceipt` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] SalesReceipt full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   HomeBalance?: number,
>   ShipDate?: string,
>   TrackingNum?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   PaymentRefNum?: string,
>   DeliveryInfo?: {
>     DeliveryType?: Email | Tradeshift,
>     DeliveryTime?: string
>   },
>   TxnSource?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   ApplyTaxAfterDiscount?: boolean,
>   DocNumber?: string,
>   PrivateNote?: string,
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   EmailStatus?: string,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   CreditCardPayment?: {
>     CreditChargeResponse?: {
>       Status?: Completed | Voided | Unknown,
>       AuthCode?: string,
>       TxnAuthorizationTime?: string,
>       CCTransId?: string
>     },
>     CreditChargeInfo?: {
>       CcExpiryMonth?: number,
>       ProcessPayment?: boolean,
>       PostalCode?: string,
>       Amount?: number,
>       NameOnAcct?: string,
>       CcExpiryYear?: number,
>       Type?: string,
>       BillAddrStreet?: string
>     }
>   },
>   Balance?: number,
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

***

### getPdf

`salesReceipt.getPdf`

QuickBooks Get a salesreceipt as PDF

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.salesReceipt.getPdf({"realmId":"12345678","salesreceiptId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `salesreceiptId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `kind` | `binary` | Yes | — |
| `contentType` | `string` | Yes | — |
| `base64` | `string` | Yes | — |
| `sizeBytes` | `number` | Yes | — |

***

### list

`salesReceipt.list`

QuickBooks Query a salesreceipt

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.salesReceipt.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   SalesReceipt?: {
>     TxnDate?: string,
>     ShipFromAddr?: {
>       City?: string,
>       Country?: string,
>       Line5?: string,
>       Line4?: string,
>       Line3?: string,
>       Line2?: string,
>       Line1?: string,
>       PostalCode?: string,
>       CountrySubDivisionCode?: string,
>       Id?: string
>     },
>     CurrencyRef?: {
>       name?: string,
>       value: string
>     },
>     CustomField?: {
>       DefinitionId: string,
>       StringValue?: string,
>       Type?: StringType | BooleanType | NumberType | DateType,
>       Name?: string
>     }[],
>     HomeBalance?: number,
>     ShipDate?: string,
>     TrackingNum?: string,
>     ClassRef?: {
>       name?: string,
>       value: string
>     },
>     PrintStatus?: string,
>     PaymentRefNum?: string,
>     DeliveryInfo?: {
>       DeliveryType?: Email | Tradeshift,
>       DeliveryTime?: string
>     },
>     TxnSource?: string,
>     LinkedTxn?: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[],
>     RecurDataRef?: {
>       name?: string,
>       value: string
>     },
>     GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>     TotalAmt?: number,
>     ApplyTaxAfterDiscount?: boolean,
>     DocNumber?: string,
>     PrivateNote?: string,
>     DepositToAccountRef?: {
>       name?: string,
>       value: string
>     },
>     Line: (
>       {
>         Description?: string,
>         DetailType: SalesItemLineDetail,
>         SalesItemLineDetail: {
>           TaxInclusiveAmt?: number,
>           ItemRef?: {
>             name?: string,
>             value: string
>           },
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           MarkupInfo?: {
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             Percent?: number,
>             MarkUpIncomeAccountRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           ItemAccountRef?: {
>             name?: string,
>             value: string
>           },
>           ServiceDate?: string,
>           Qty?: number,
>           UnitPrice?: number,
>           TaxClassificationRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         LineNum?: number,
>         Amount: number,
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LinkedTxn?: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[],
>         Id?: string
>       } | {
>         Description?: string,
>         SubTotalLineDetail: {
>           ItemRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         DetailType: SubTotalLineDetail,
>         LineNum?: number,
>         Amount: number,
>         Id?: string
>       } | {
>         DiscountLineDetail: {
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           DiscountAccountRef?: {
>             name?: string,
>             value: string
>           },
>           PercentBased?: boolean,
>           DiscountPercent?: number
>         },
>         Description?: string,
>         DetailType: DiscountLineDetail,
>         LineNum?: number,
>         Amount?: number,
>         Id?: string
>       } | {
>         Description?: string,
>         DetailType: DescriptionOnly,
>         LineNum?: number,
>         Amount?: number,
>         DescriptionLineDetail?: {
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           ServiceDate?: string
>         },
>         Id?: string
>       } | {
>         Description?: string,
>         GroupLineDetail: {
>           Quantity?: number,
>           Line?: {
>             Description?: string,
>             DetailType: SalesItemLineDetail,
>             SalesItemLineDetail: {
>               TaxInclusiveAmt?: number,
>               ItemRef?: {
>                 name?: string,
>                 value: string
>               },
>               ClassRef?: {
>                 name?: string,
>                 value: string
>               },
>               TaxCodeRef?: {
>                 name?: string,
>                 value: string
>               },
>               MarkupInfo?: {
>                 PriceLevelRef?: {
>                   name?: string,
>                   value: string
>                 },
>                 Percent?: number,
>                 MarkUpIncomeAccountRef?: {
>                   name?: string,
>                   value: string
>                 }
>               },
>               ItemAccountRef?: {
>                 name?: string,
>                 value: string
>               },
>               ServiceDate?: string,
>               Qty?: number,
>               UnitPrice?: number,
>               TaxClassificationRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             LineNum?: number,
>             Amount: number,
>             CustomExtensions?: {
>               AssociatedValues?: {
>                 Value: string,
>                 Key: string
>               }[],
>               ExtensionType?: string
>             }[],
>             LinkedTxn?: {
>               TxnLineId?: string,
>               TxnId: string,
>               TxnType: string
>             }[],
>             Id?: string
>           }[],
>           GroupItemRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         DetailType: GroupLineDetail,
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LineNum?: number,
>         Id?: string
>       }
>     )[],
>     CustomerMemo?: {
>       value: string
>     },
>     EmailStatus?: string,
>     ProjectRef?: {
>       name?: string,
>       value: string
>     },
>     CreditCardPayment?: {
>       CreditChargeResponse?: {
>         Status?: Completed | Voided | Unknown,
>         AuthCode?: string,
>         TxnAuthorizationTime?: string,
>         CCTransId?: string
>       },
>       CreditChargeInfo?: {
>         CcExpiryMonth?: number,
>         ProcessPayment?: boolean,
>         PostalCode?: string,
>         Amount?: number,
>         NameOnAcct?: string,
>         CcExpiryYear?: number,
>         Type?: string,
>         BillAddrStreet?: string
>       }
>     },
>     Balance?: number,
>     CustomerRef: {
>       name?: string,
>       value: string
>     },
>     TxnTaxDetail?: {
>       TxnTaxCodeRef?: {
>         name?: string,
>         value: string
>       },
>       TotalTax?: number,
>       TaxLine?: {
>         DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>         Amount?: number,
>         TaxLineDetail: {
>           NetAmountTaxable?: number,
>           PercentBased?: boolean,
>           TaxInclusiveAmount?: number,
>           OverrideDeltaAmount?: number,
>           TaxRateRef: {
>             name?: string,
>             value: string
>           },
>           TaxPercent?: number
>         }
>       }[]
>     },
>     SyncToken?: string,
>     PaymentMethodRef?: {
>       name?: string,
>       value: string
>     },
>     ExchangeRate?: number,
>     ShipAddr?: {
>       City?: string,
>       Country?: string,
>       Line5?: string,
>       Line4?: string,
>       Line3?: string,
>       Line2?: string,
>       Line1?: string,
>       PostalCode?: string,
>       CountrySubDivisionCode?: string,
>       Id?: string
>     },
>     HomeTotalAmt?: number,
>     DepartmentRef?: {
>       name?: string,
>       value: string
>     },
>     ShipMethodRef?: {
>       name?: string,
>       value: string
>     },
>     BillAddr?: {
>       City?: string,
>       Country?: string,
>       Line5?: string,
>       Line4?: string,
>       Line3?: string,
>       Line2?: string,
>       Line1?: string,
>       PostalCode?: string,
>       CountrySubDivisionCode?: string,
>       Id?: string
>     },
>     FreeFormAddress?: boolean,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     },
>     BillEmail?: {
>       Address?: string
>     },
>     Id: string
>   }[]
> }
> ```

***

### send

`salesReceipt.send`

QuickBooks Send a salesreceipt

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.salesReceipt.send({"realmId":"12345678","salesreceiptId":"35","sendTo":"billing@example.test"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `salesreceiptId` | `string` | Yes | — |
| `sendTo` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `SalesReceipt` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] SalesReceipt full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   HomeBalance?: number,
>   ShipDate?: string,
>   TrackingNum?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   PaymentRefNum?: string,
>   DeliveryInfo?: {
>     DeliveryType?: Email | Tradeshift,
>     DeliveryTime?: string
>   },
>   TxnSource?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   ApplyTaxAfterDiscount?: boolean,
>   DocNumber?: string,
>   PrivateNote?: string,
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   EmailStatus?: string,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   CreditCardPayment?: {
>     CreditChargeResponse?: {
>       Status?: Completed | Voided | Unknown,
>       AuthCode?: string,
>       TxnAuthorizationTime?: string,
>       CCTransId?: string
>     },
>     CreditChargeInfo?: {
>       CcExpiryMonth?: number,
>       ProcessPayment?: boolean,
>       PostalCode?: string,
>       Amount?: number,
>       NameOnAcct?: string,
>       CcExpiryYear?: number,
>       Type?: string,
>       BillAddrStreet?: string
>     }
>   },
>   Balance?: number,
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

***

### sparseUpdate

`salesReceipt.sparseUpdate`

QuickBooks Sparse update a salesreceipt

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.salesReceipt.sparseUpdate({"realmId":"12345678","body":{"Line":[],"CustomerRef":{"value":"sample"},"Id":"35","SyncToken":"0","sparse":true}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   HomeBalance?: number,
>   ShipDate?: string,
>   TrackingNum?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   PaymentRefNum?: string,
>   DeliveryInfo?: {
>     DeliveryType?: Email | Tradeshift,
>     DeliveryTime?: string
>   },
>   TxnSource?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   ApplyTaxAfterDiscount?: boolean,
>   DocNumber?: string,
>   PrivateNote?: string,
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Line?: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   EmailStatus?: string,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   CreditCardPayment?: {
>     CreditChargeResponse?: {
>       Status?: Completed | Voided | Unknown,
>       AuthCode?: string,
>       TxnAuthorizationTime?: string,
>       CCTransId?: string
>     },
>     CreditChargeInfo?: {
>       CcExpiryMonth?: number,
>       ProcessPayment?: boolean,
>       PostalCode?: string,
>       Amount?: number,
>       NameOnAcct?: string,
>       CcExpiryYear?: number,
>       Type?: string,
>       BillAddrStreet?: string
>     }
>   },
>   Balance?: number,
>   CustomerRef?: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string,
>   sparse: true
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `SalesReceipt` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] SalesReceipt full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   HomeBalance?: number,
>   ShipDate?: string,
>   TrackingNum?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   PaymentRefNum?: string,
>   DeliveryInfo?: {
>     DeliveryType?: Email | Tradeshift,
>     DeliveryTime?: string
>   },
>   TxnSource?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   ApplyTaxAfterDiscount?: boolean,
>   DocNumber?: string,
>   PrivateNote?: string,
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   EmailStatus?: string,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   CreditCardPayment?: {
>     CreditChargeResponse?: {
>       Status?: Completed | Voided | Unknown,
>       AuthCode?: string,
>       TxnAuthorizationTime?: string,
>       CCTransId?: string
>     },
>     CreditChargeInfo?: {
>       CcExpiryMonth?: number,
>       ProcessPayment?: boolean,
>       PostalCode?: string,
>       Amount?: number,
>       NameOnAcct?: string,
>       CcExpiryYear?: number,
>       Type?: string,
>       BillAddrStreet?: string
>     }
>   },
>   Balance?: number,
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

***

### update

`salesReceipt.update`

QuickBooks Full update a salesreceipt

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.salesReceipt.update({"realmId":"12345678","body":{"Line":[],"CustomerRef":{"value":"sample"},"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   HomeBalance?: number,
>   ShipDate?: string,
>   TrackingNum?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   PaymentRefNum?: string,
>   DeliveryInfo?: {
>     DeliveryType?: Email | Tradeshift,
>     DeliveryTime?: string
>   },
>   TxnSource?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   ApplyTaxAfterDiscount?: boolean,
>   DocNumber?: string,
>   PrivateNote?: string,
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Line?: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   EmailStatus?: string,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   CreditCardPayment?: {
>     CreditChargeResponse?: {
>       Status?: Completed | Voided | Unknown,
>       AuthCode?: string,
>       TxnAuthorizationTime?: string,
>       CCTransId?: string
>     },
>     CreditChargeInfo?: {
>       CcExpiryMonth?: number,
>       ProcessPayment?: boolean,
>       PostalCode?: string,
>       Amount?: number,
>       NameOnAcct?: string,
>       CcExpiryYear?: number,
>       Type?: string,
>       BillAddrStreet?: string
>     }
>   },
>   Balance?: number,
>   CustomerRef?: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `SalesReceipt` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] SalesReceipt full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   HomeBalance?: number,
>   ShipDate?: string,
>   TrackingNum?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   PaymentRefNum?: string,
>   DeliveryInfo?: {
>     DeliveryType?: Email | Tradeshift,
>     DeliveryTime?: string
>   },
>   TxnSource?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   ApplyTaxAfterDiscount?: boolean,
>   DocNumber?: string,
>   PrivateNote?: string,
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   EmailStatus?: string,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   CreditCardPayment?: {
>     CreditChargeResponse?: {
>       Status?: Completed | Voided | Unknown,
>       AuthCode?: string,
>       TxnAuthorizationTime?: string,
>       CCTransId?: string
>     },
>     CreditChargeInfo?: {
>       CcExpiryMonth?: number,
>       ProcessPayment?: boolean,
>       PostalCode?: string,
>       Amount?: number,
>       NameOnAcct?: string,
>       CcExpiryYear?: number,
>       Type?: string,
>       BillAddrStreet?: string
>     }
>   },
>   Balance?: number,
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

***

### void

`salesReceipt.void`

QuickBooks Void a salesreceipt

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.salesReceipt.void({"realmId":"12345678","body":{"Id":"35","SyncToken":"0","sparse":true}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string,
>   sparse?: true
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `SalesReceipt` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] SalesReceipt full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   ShipFromAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   CustomField?: {
>     DefinitionId: string,
>     StringValue?: string,
>     Type?: StringType | BooleanType | NumberType | DateType,
>     Name?: string
>   }[],
>   HomeBalance?: number,
>   ShipDate?: string,
>   TrackingNum?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   PrintStatus?: string,
>   PaymentRefNum?: string,
>   DeliveryInfo?: {
>     DeliveryType?: Email | Tradeshift,
>     DeliveryTime?: string
>   },
>   TxnSource?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   ApplyTaxAfterDiscount?: boolean,
>   DocNumber?: string,
>   PrivateNote?: string,
>   DepositToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: SalesItemLineDetail,
>       SalesItemLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         ItemAccountRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string,
>         Qty?: number,
>         UnitPrice?: number,
>         TaxClassificationRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       LineNum?: number,
>       Amount: number,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Id?: string
>     } | {
>       Description?: string,
>       SubTotalLineDetail: {
>         ItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: SubTotalLineDetail,
>       LineNum?: number,
>       Amount: number,
>       Id?: string
>     } | {
>       DiscountLineDetail: {
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         DiscountAccountRef?: {
>           name?: string,
>           value: string
>         },
>         PercentBased?: boolean,
>         DiscountPercent?: number
>       },
>       Description?: string,
>       DetailType: DiscountLineDetail,
>       LineNum?: number,
>       Amount?: number,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: DescriptionOnly,
>       LineNum?: number,
>       Amount?: number,
>       DescriptionLineDetail?: {
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         ServiceDate?: string
>       },
>       Id?: string
>     } | {
>       Description?: string,
>       GroupLineDetail: {
>         Quantity?: number,
>         Line?: {
>           Description?: string,
>           DetailType: SalesItemLineDetail,
>           SalesItemLineDetail: {
>             TaxInclusiveAmt?: number,
>             ItemRef?: {
>               name?: string,
>               value: string
>             },
>             ClassRef?: {
>               name?: string,
>               value: string
>             },
>             TaxCodeRef?: {
>               name?: string,
>               value: string
>             },
>             MarkupInfo?: {
>               PriceLevelRef?: {
>                 name?: string,
>                 value: string
>               },
>               Percent?: number,
>               MarkUpIncomeAccountRef?: {
>                 name?: string,
>                 value: string
>               }
>             },
>             ItemAccountRef?: {
>               name?: string,
>               value: string
>             },
>             ServiceDate?: string,
>             Qty?: number,
>             UnitPrice?: number,
>             TaxClassificationRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           LineNum?: number,
>           Amount: number,
>           CustomExtensions?: {
>             AssociatedValues?: {
>               Value: string,
>               Key: string
>             }[],
>             ExtensionType?: string
>           }[],
>           LinkedTxn?: {
>             TxnLineId?: string,
>             TxnId: string,
>             TxnType: string
>           }[],
>           Id?: string
>         }[],
>         GroupItemRef?: {
>           name?: string,
>           value: string
>         }
>       },
>       DetailType: GroupLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Id?: string
>     }
>   )[],
>   CustomerMemo?: {
>     value: string
>   },
>   EmailStatus?: string,
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   CreditCardPayment?: {
>     CreditChargeResponse?: {
>       Status?: Completed | Voided | Unknown,
>       AuthCode?: string,
>       TxnAuthorizationTime?: string,
>       CCTransId?: string
>     },
>     CreditChargeInfo?: {
>       CcExpiryMonth?: number,
>       ProcessPayment?: boolean,
>       PostalCode?: string,
>       Amount?: number,
>       NameOnAcct?: string,
>       CcExpiryYear?: number,
>       Type?: string,
>       BillAddrStreet?: string
>     }
>   },
>   Balance?: number,
>   CustomerRef: {
>     name?: string,
>     value: string
>   },
>   TxnTaxDetail?: {
>     TxnTaxCodeRef?: {
>       name?: string,
>       value: string
>     },
>     TotalTax?: number,
>     TaxLine?: {
>       DetailType: PaymentLineDetail | DiscountLineDetail | TaxLineDetail | SalesItemLineDetail | ItemBasedExpenseLineDetail | AccountBasedExpenseLineDetail | DepositLineDetail | PurchaseOrderItemLineDetail | ItemReceiptLineDetail | JournalEntryLineDetail | GroupLineDetail | DescriptionOnly | SubTotalLineDetail | SalesOrderItemLineDetail | TDSLineDetail | ReimburseLineDetail | ItemAdjustmentLineDetail,
>       Amount?: number,
>       TaxLineDetail: {
>         NetAmountTaxable?: number,
>         PercentBased?: boolean,
>         TaxInclusiveAmount?: number,
>         OverrideDeltaAmount?: number,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxPercent?: number
>       }
>     }[]
>   },
>   SyncToken?: string,
>   PaymentMethodRef?: {
>     name?: string,
>     value: string
>   },
>   ExchangeRate?: number,
>   ShipAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   HomeTotalAmt?: number,
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   ShipMethodRef?: {
>     name?: string,
>     value: string
>   },
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   FreeFormAddress?: boolean,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   BillEmail?: {
>     Address?: string
>   },
>   Id: string
> }
> ```

***

## Tax Agency

### create

`taxAgency.create`

QuickBooks Create a taxagency

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.taxAgency.create({"realmId":"12345678","body":{"DisplayName":"sample"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   DisplayName: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `TaxAgency` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] TaxAgency full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   TaxAgencyConfig?: string,
>   DisplayName: string,
>   TaxTrackedOnSales?: boolean,
>   TaxTrackedOnPurchases?: boolean,
>   LastFileDate?: string,
>   Id: string,
>   TaxRegistrationNumber?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### get

`taxAgency.get`

QuickBooks Read a taxagency

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.taxAgency.get({"realmId":"12345678","taxagencyId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `taxagencyId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `TaxAgency` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] TaxAgency full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   TaxAgencyConfig?: string,
>   DisplayName: string,
>   TaxTrackedOnSales?: boolean,
>   TaxTrackedOnPurchases?: boolean,
>   LastFileDate?: string,
>   Id: string,
>   TaxRegistrationNumber?: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### list

`taxAgency.list`

QuickBooks Query a taxagency

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.taxAgency.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   TaxAgency?: {
>     SyncToken?: string,
>     TaxAgencyConfig?: string,
>     DisplayName: string,
>     TaxTrackedOnSales?: boolean,
>     TaxTrackedOnPurchases?: boolean,
>     LastFileDate?: string,
>     Id: string,
>     TaxRegistrationNumber?: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   }[]
> }
> ```

***

## Tax Classification

### get

`taxClassification.get`

QuickBooks Read a taxclassification by ID

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.taxClassification.get({"realmId":"12345678","taxClassificationId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `taxClassificationId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `TaxClassification` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] TaxClassification full type
>
> ```ts theme={null}
> {
>   ApplicableTo?: (Assembly | Category | Fixed Asset | Group | Inventory | NonInventory | Other Charge | Payment | Service | Subtotal | Discount | Tax | Tax Group | Bundle)[],
>   Code?: string,
>   Name?: string,
>   Level?: string,
>   ParentRef?: {
>     name?: string,
>     value: string
>   },
>   Description?: string,
>   Id?: string
> }
> ```

***

### list

`taxClassification.list`

QuickBooks Read all taxclassifications

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.taxClassification.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   TaxClassification?: {
>     ApplicableTo?: (Assembly | Category | Fixed Asset | Group | Inventory | NonInventory | Other Charge | Payment | Service | Subtotal | Discount | Tax | Tax Group | Bundle)[],
>     Code?: string,
>     Name?: string,
>     Level?: string,
>     ParentRef?: {
>       name?: string,
>       value: string
>     },
>     Description?: string,
>     Id?: string
>   }[]
> }
> ```

***

### listByLevel

`taxClassification.listByLevel`

QuickBooks Read taxclassifications by level

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.taxClassification.listByLevel({"realmId":"12345678","level":1});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `level` | `number` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   TaxClassification?: {
>     ApplicableTo?: (Assembly | Category | Fixed Asset | Group | Inventory | NonInventory | Other Charge | Payment | Service | Subtotal | Discount | Tax | Tax Group | Bundle)[],
>     Code?: string,
>     Name?: string,
>     Level?: string,
>     ParentRef?: {
>       name?: string,
>       value: string
>     },
>     Description?: string,
>     Id?: string
>   }[]
> }
> ```

***

### listChildren

`taxClassification.listChildren`

QuickBooks Read a taxclassification by Parent ID

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.taxClassification.listChildren({"realmId":"12345678","parentId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `parentId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   TaxClassification?: {
>     ApplicableTo?: (Assembly | Category | Fixed Asset | Group | Inventory | NonInventory | Other Charge | Payment | Service | Subtotal | Discount | Tax | Tax Group | Bundle)[],
>     Code?: string,
>     Name?: string,
>     Level?: string,
>     ParentRef?: {
>       name?: string,
>       value: string
>     },
>     Description?: string,
>     Id?: string
>   }[]
> }
> ```

***

## Tax Code

### get

`taxCode.get`

QuickBooks Read a taxcode

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.taxCode.get({"realmId":"12345678","taxcodeId":"2"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `taxcodeId` | `string` | Yes | — |

Only numeric tax code IDs can be read. The TAX, NON and CustomSalesTax codes that US companies list are pseudo codes; reading them by ID answers fault 2030 (Invalid ID).

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `TaxCode` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] TaxCode full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   TaxGroup?: boolean,
>   PurchaseTaxRateList?: {
>     TaxRateDetail?: {
>       TaxTypeApplicable?: string,
>       TaxRateRef: {
>         name?: string,
>         value: string
>       },
>       TaxOrder?: number
>     }[]
>   },
>   TaxCodeConfigType?: string,
>   Taxable?: boolean,
>   Name: string,
>   Active?: boolean,
>   Description?: string,
>   Hidden?: boolean,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   Id: string,
>   SalesTaxRateList?: {
>     TaxRateDetail?: {
>       TaxTypeApplicable?: string,
>       TaxRateRef: {
>         name?: string,
>         value: string
>       },
>       TaxOrder?: number
>     }[]
>   }
> }
> ```

***

### list

`taxCode.list`

QuickBooks Query a taxcode

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.taxCode.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   TaxCode?: {
>     SyncToken?: string,
>     TaxGroup?: boolean,
>     PurchaseTaxRateList?: {
>       TaxRateDetail?: {
>         TaxTypeApplicable?: string,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxOrder?: number
>       }[]
>     },
>     TaxCodeConfigType?: string,
>     Taxable?: boolean,
>     Name: string,
>     Active?: boolean,
>     Description?: string,
>     Hidden?: boolean,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     },
>     Id: string,
>     SalesTaxRateList?: {
>       TaxRateDetail?: {
>         TaxTypeApplicable?: string,
>         TaxRateRef: {
>           name?: string,
>           value: string
>         },
>         TaxOrder?: number
>       }[]
>     }
>   }[]
> }
> ```

***

## Tax Payment

### get

`taxPayment.get`

QuickBooks Read taxpayment

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.taxPayment.get({"realmId":"12345678","taxPaymentId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `taxPaymentId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `TaxPayment` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] TaxPayment full type
>
> ```ts theme={null}
> {
>   Refund?: boolean,
>   TxnDate?: string,
>   PaymentAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Description?: string,
>   SyncToken?: string,
>   PaymentAmount?: number,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### list

`taxPayment.list`

QuickBooks Query taxpayment

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.taxPayment.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

TaxPayment is not available for US companies (fault 5030, "not supported for this region").

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   TaxPayment?: {
>     Refund?: boolean,
>     TxnDate?: string,
>     PaymentAccountRef?: {
>       name?: string,
>       value: string
>     },
>     Description?: string,
>     SyncToken?: string,
>     PaymentAmount?: number,
>     Id: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   }[]
> }
> ```

***

## Tax Rate

### get

`taxRate.get`

QuickBooks Read a taxrate

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.taxRate.get({"realmId":"12345678","taxrateId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `taxrateId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `TaxRate` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] TaxRate full type
>
> ```ts theme={null}
> {
>   RateValue?: number,
>   SyncToken?: string,
>   Name?: string,
>   AgencyRef?: {
>     name?: string,
>     value: string
>   },
>   SpecialTaxType?: string,
>   EffectiveTaxRate?: {
>     RateValue?: number,
>     EndDate?: string,
>     EffectiveDate?: string
>   },
>   DisplayType?: string,
>   TaxReturnLineRef?: {
>     name?: string,
>     value: string
>   },
>   Active?: boolean,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   Id: string,
>   OriginalTaxRate?: string,
>   Description?: string
> }
> ```

***

### list

`taxRate.list`

QuickBooks Query a taxrate

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.taxRate.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   TaxRate?: {
>     RateValue?: number,
>     SyncToken?: string,
>     Name?: string,
>     AgencyRef?: {
>       name?: string,
>       value: string
>     },
>     SpecialTaxType?: string,
>     EffectiveTaxRate?: {
>       RateValue?: number,
>       EndDate?: string,
>       EffectiveDate?: string
>     },
>     DisplayType?: string,
>     TaxReturnLineRef?: {
>       name?: string,
>       value: string
>     },
>     Active?: boolean,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     },
>     Id: string,
>     OriginalTaxRate?: string,
>     Description?: string
>   }[]
> }
> ```

***

## Tax Service

### create

`taxService.create`

QuickBooks Create a taxservice

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.taxService.create({"realmId":"12345678","body":{"TaxCode":"sample","TaxRateDetails":[]}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   TaxCode: string,
>   TaxRateDetails: {
>     RateValue: string,
>     TaxRateId?: string,
>     TaxApplicableOn?: Purchase | Sales,
>     TaxAgencyId?: string,
>     TaxRateName?: string
>   }[]
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `TaxService` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] TaxService full type
>
> ```ts theme={null}
> {
>   TaxCodeId?: string,
>   TaxCode: string,
>   TaxRateDetails: {
>     RateValue: string,
>     TaxRateId?: string,
>     TaxApplicableOn?: Purchase | Sales,
>     TaxAgencyId?: string,
>     TaxRateName?: string
>   }[]
> }
> ```

***

## Tax Summary

### list

`taxSummary.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.taxSummary.list({"realmId":"12345678","params":{"agency_id":"1"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | Yes | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   accounting_method?: string,
>   end_date?: string,
>   date_macro?: string,
>   agency_id: string,
>   sort_order?: string,
>   start_date?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Term

### create

`term.create`

QuickBooks Create a term

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.term.create({"realmId":"12345678","body":{"Name":"sample"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   DayOfMonthDue?: number,
>   DueDays?: number,
>   Name: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Term` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Term full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   DayOfMonthDue?: number,
>   Name: string,
>   DiscountDayOfMonth?: number,
>   DiscountPercent?: number,
>   DiscountDays?: number,
>   DueNextMonthDays?: number,
>   DueDays?: number,
>   Active?: boolean,
>   Type?: string,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### get

`term.get`

QuickBooks Read a term

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.term.get({"realmId":"12345678","termId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `termId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Term` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Term full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   DayOfMonthDue?: number,
>   Name: string,
>   DiscountDayOfMonth?: number,
>   DiscountPercent?: number,
>   DiscountDays?: number,
>   DueNextMonthDays?: number,
>   DueDays?: number,
>   Active?: boolean,
>   Type?: string,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### list

`term.list`

QuickBooks Query a term

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.term.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   Term?: {
>     SyncToken?: string,
>     DayOfMonthDue?: number,
>     Name: string,
>     DiscountDayOfMonth?: number,
>     DiscountPercent?: number,
>     DiscountDays?: number,
>     DueNextMonthDays?: number,
>     DueDays?: number,
>     Active?: boolean,
>     Type?: string,
>     Id: string,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   }[]
> }
> ```

***

### update

`term.update`

QuickBooks Full update a term

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.term.update({"realmId":"12345678","body":{"Name":"sample","Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   DayOfMonthDue?: number,
>   DueDays?: number,
>   Name?: string,
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Term` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Term full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   DayOfMonthDue?: number,
>   Name: string,
>   DiscountDayOfMonth?: number,
>   DiscountPercent?: number,
>   DiscountDays?: number,
>   DueNextMonthDays?: number,
>   DueDays?: number,
>   Active?: boolean,
>   Type?: string,
>   Id: string,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

## Time Activity

### create

`timeActivity.create`

QuickBooks Create a timeactivity object

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.timeActivity.create({"realmId":"12345678","body":{"NameOf":"Employee","EmployeeRef":{"value":"55"},"TxnDate":"2026-11-18","Hours":1,"Minutes":30}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   EmployeeRef?: {
>     name?: string,
>     value: string
>   },
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   Hours?: number,
>   Minutes?: number,
>   StartTime?: string,
>   HourlyRate?: number,
>   VendorRef?: {
>     name?: string,
>     value: string
>   },
>   EndTime?: string,
>   CustomerRef?: {
>     name?: string,
>     value: string
>   },
>   NameOf: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `TimeActivity` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] TimeActivity full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   NameOf: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   BreakHours BreakMinutes?: number,
>   EndTime?: string,
>   Description?: string,
>   Hours?: number,
>   Taxable?: boolean,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   VendorRef?: {
>     name?: string,
>     value: string
>   },
>   CostRate?: number,
>   ItemRef?: {
>     name?: string,
>     value: string
>   },
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   PayrollItemRef?: {
>     name?: string,
>     value: string
>   },
>   BillableStatus?: Billable | NotBillable | HasBeenBilled,
>   HourlyRate?: number,
>   CustomerRef?: {
>     name?: string,
>     value: string
>   },
>   SyncToken?: string,
>   EmployeeRef?: {
>     name?: string,
>     value: string
>   },
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   StartTime?: string,
>   Id: string
> }
> ```

***

### delete

`timeActivity.delete`

QuickBooks Delete a timeactivity object

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.timeActivity.delete({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `TimeActivity` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] TimeActivity full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   Id: string,
>   domain?: QBO
> }
> ```

***

### get

`timeActivity.get`

QuickBooks Read a timeactivity object

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.timeActivity.get({"realmId":"12345678","timeactivityId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `timeactivityId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `TimeActivity` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] TimeActivity full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   NameOf: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   BreakHours BreakMinutes?: number,
>   EndTime?: string,
>   Description?: string,
>   Hours?: number,
>   Taxable?: boolean,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   VendorRef?: {
>     name?: string,
>     value: string
>   },
>   CostRate?: number,
>   ItemRef?: {
>     name?: string,
>     value: string
>   },
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   PayrollItemRef?: {
>     name?: string,
>     value: string
>   },
>   BillableStatus?: Billable | NotBillable | HasBeenBilled,
>   HourlyRate?: number,
>   CustomerRef?: {
>     name?: string,
>     value: string
>   },
>   SyncToken?: string,
>   EmployeeRef?: {
>     name?: string,
>     value: string
>   },
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   StartTime?: string,
>   Id: string
> }
> ```

***

### list

`timeActivity.list`

QuickBooks Query a timeactivity object

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.timeActivity.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   TimeActivity?: {
>     TxnDate?: string,
>     NameOf: string,
>     ClassRef?: {
>       name?: string,
>       value: string
>     },
>     BreakHours BreakMinutes?: number,
>     EndTime?: string,
>     Description?: string,
>     Hours?: number,
>     Taxable?: boolean,
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     },
>     VendorRef?: {
>       name?: string,
>       value: string
>     },
>     CostRate?: number,
>     ItemRef?: {
>       name?: string,
>       value: string
>     },
>     ProjectRef?: {
>       name?: string,
>       value: string
>     },
>     PayrollItemRef?: {
>       name?: string,
>       value: string
>     },
>     BillableStatus?: Billable | NotBillable | HasBeenBilled,
>     HourlyRate?: number,
>     CustomerRef?: {
>       name?: string,
>       value: string
>     },
>     SyncToken?: string,
>     EmployeeRef?: {
>       name?: string,
>       value: string
>     },
>     DepartmentRef?: {
>       name?: string,
>       value: string
>     },
>     StartTime?: string,
>     Id: string
>   }[]
> }
> ```

***

### update

`timeActivity.update`

QuickBooks Full update a timeactivity object

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.timeActivity.update({"realmId":"12345678","body":{"NameOf":"Employee","Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   NameOf?: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   BreakHours BreakMinutes?: number,
>   EndTime?: string,
>   Description?: string,
>   Hours?: number,
>   Taxable?: boolean,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   VendorRef?: {
>     name?: string,
>     value: string
>   },
>   CostRate?: number,
>   ItemRef?: {
>     name?: string,
>     value: string
>   },
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   PayrollItemRef?: {
>     name?: string,
>     value: string
>   },
>   BillableStatus?: Billable | NotBillable | HasBeenBilled,
>   HourlyRate?: number,
>   CustomerRef?: {
>     name?: string,
>     value: string
>   },
>   SyncToken: string,
>   EmployeeRef?: {
>     name?: string,
>     value: string
>   },
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   StartTime?: string,
>   Id: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `TimeActivity` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] TimeActivity full type
>
> ```ts theme={null}
> {
>   TxnDate?: string,
>   NameOf: string,
>   ClassRef?: {
>     name?: string,
>     value: string
>   },
>   BreakHours BreakMinutes?: number,
>   EndTime?: string,
>   Description?: string,
>   Hours?: number,
>   Taxable?: boolean,
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   VendorRef?: {
>     name?: string,
>     value: string
>   },
>   CostRate?: number,
>   ItemRef?: {
>     name?: string,
>     value: string
>   },
>   ProjectRef?: {
>     name?: string,
>     value: string
>   },
>   PayrollItemRef?: {
>     name?: string,
>     value: string
>   },
>   BillableStatus?: Billable | NotBillable | HasBeenBilled,
>   HourlyRate?: number,
>   CustomerRef?: {
>     name?: string,
>     value: string
>   },
>   SyncToken?: string,
>   EmployeeRef?: {
>     name?: string,
>     value: string
>   },
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   StartTime?: string,
>   Id: string
> }
> ```

***

## Transaction List

### list

`transactionList.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.transactionList.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   date_macro?: string,
>   payment_method?: string,
>   duedate_macro?: string,
>   arpaid?: string,
>   bothamount?: string,
>   transaction_type?: string,
>   docnum?: string,
>   start_moddate?: string,
>   source_account_type?: string,
>   group_by?: string,
>   start_date?: string,
>   department?: string,
>   start_duedate?: string,
>   columns?: string,
>   end_duedate?: string,
>   vendor?: string,
>   end_date?: string,
>   memo?: string,
>   appaid?: string,
>   moddate_macro?: string,
>   printed?: string,
>   createdate_macro?: string,
>   cleared?: string,
>   customer?: string,
>   qzurl?: string,
>   term?: string,
>   end_createdate?: string,
>   name?: string,
>   sort_by?: string,
>   sort_order?: string,
>   start_createdate?: string,
>   end_moddate?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Transaction List By Customer

### list

`transactionListByCustomer.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.transactionListByCustomer.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   date_macro?: string,
>   payment_method?: string,
>   duedate_macro?: string,
>   arpaid?: string,
>   bothamount?: string,
>   transaction_type?: string,
>   docnum?: string,
>   start_moddate?: string,
>   source_account_type?: string,
>   group_by?: string,
>   start_date?: string,
>   department?: string,
>   start_duedate?: string,
>   columns?: string,
>   end_duedate?: string,
>   end_date?: string,
>   memo?: string,
>   appaid?: string,
>   moddate_macro?: string,
>   printed?: string,
>   createdate_macro?: string,
>   cleared?: string,
>   customer?: string,
>   qzurl?: string,
>   term?: string,
>   end_createdate?: string,
>   name?: string,
>   sort_by?: string,
>   sort_order?: string,
>   start_createdate?: string,
>   end_moddate?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Transaction List By Vendor

### list

`transactionListByVendor.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.transactionListByVendor.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   date_macro?: string,
>   payment_method?: string,
>   duedate_macro?: string,
>   arpaid?: string,
>   bothamount?: string,
>   transaction_type?: string,
>   docnum?: string,
>   start_moddate?: string,
>   source_account_type?: string,
>   group_by?: string,
>   start_date?: string,
>   department?: string,
>   start_duedate?: string,
>   columns?: string,
>   end_duedate?: string,
>   vendor?: string,
>   end_date?: string,
>   memo?: string,
>   appaid?: string,
>   moddate_macro?: string,
>   printed?: string,
>   createdate_macro?: string,
>   cleared?: string,
>   qzurl?: string,
>   term?: string,
>   end_createdate?: string,
>   name?: string,
>   sort_by?: string,
>   sort_order?: string,
>   start_createdate?: string,
>   end_moddate?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Transaction List With Splits

### list

`transactionListWithSplits.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.transactionListWithSplits.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   docnum?: string,
>   name?: string,
>   end_date?: string,
>   date_macro?: string,
>   payment_method?: string,
>   source_account_type?: string,
>   transaction_type?: string,
>   group_by?: string,
>   sort_by?: string,
>   sort_order?: string,
>   start_date?: string,
>   columns?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Transfer

### create

`transfer.create`

QuickBooks Create an transfer

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.transfer.create({"realmId":"12345678","body":{"Amount":1,"ToAccountRef":{"value":"sample"},"FromAccountRef":{"value":"sample"}}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Amount: number,
>   ToAccountRef: {
>     name?: string,
>     value: string
>   },
>   FromAccountRef: {
>     name?: string,
>     value: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Transfer` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Transfer full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   TxnDate?: string,
>   ToAccountRef: {
>     name?: string,
>     value: string
>   },
>   Amount: number,
>   Id: string,
>   FromAccountRef: {
>     name?: string,
>     value: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### delete

`transfer.delete`

QuickBooks Delete an transfer

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.transfer.delete({"realmId":"12345678","body":{"ToAccountRef":{"value":"sample"},"Amount":1,"Id":"35","FromAccountRef":{"value":"sample"},"SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   SyncToken: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   TxnDate?: string,
>   ToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Amount?: number,
>   Id: string,
>   FromAccountRef?: {
>     name?: string,
>     value: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Transfer` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] Transfer full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   Id: string,
>   domain?: QBO
> }
> ```

***

### get

`transfer.get`

QuickBooks Read an transfer

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.transfer.get({"realmId":"12345678","transferId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `transferId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Transfer` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Transfer full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   TxnDate?: string,
>   ToAccountRef: {
>     name?: string,
>     value: string
>   },
>   Amount: number,
>   Id: string,
>   FromAccountRef: {
>     name?: string,
>     value: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### list

`transfer.list`

QuickBooks Query an transfer

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.transfer.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   Transfer?: {
>     SyncToken?: string,
>     PrivateNote?: string,
>     RecurDataRef?: {
>       name?: string,
>       value: string
>     },
>     TxnDate?: string,
>     ToAccountRef: {
>       name?: string,
>       value: string
>     },
>     Amount: number,
>     Id: string,
>     FromAccountRef: {
>       name?: string,
>       value: string
>     },
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   }[]
> }
> ```

***

### sparseUpdate

`transfer.sparseUpdate`

QuickBooks Sparse update an transfer

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.transfer.sparseUpdate({"realmId":"12345678","body":{"Amount":1,"ToAccountRef":{"value":"sample"},"FromAccountRef":{"value":"sample"},"Id":"35","SyncToken":"0","sparse":true}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

QuickBooks still requires FromAccountRef, ToAccountRef and Amount in a sparse Transfer update (fault 2020 otherwise).

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Amount?: number,
>   ToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   FromAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Id: string,
>   SyncToken: string,
>   sparse: true
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Transfer` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Transfer full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   TxnDate?: string,
>   ToAccountRef: {
>     name?: string,
>     value: string
>   },
>   Amount: number,
>   Id: string,
>   FromAccountRef: {
>     name?: string,
>     value: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### update

`transfer.update`

QuickBooks Full update an transfer

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.transfer.update({"realmId":"12345678","body":{"Amount":1,"ToAccountRef":{"value":"sample"},"FromAccountRef":{"value":"sample"},"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Amount?: number,
>   ToAccountRef?: {
>     name?: string,
>     value: string
>   },
>   FromAccountRef?: {
>     name?: string,
>     value: string
>   },
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Transfer` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Transfer full type
>
> ```ts theme={null}
> {
>   SyncToken?: string,
>   PrivateNote?: string,
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   TxnDate?: string,
>   ToAccountRef: {
>     name?: string,
>     value: string
>   },
>   Amount: number,
>   Id: string,
>   FromAccountRef: {
>     name?: string,
>     value: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

## Trial Balance

### list

`trialBalance.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.trialBalance.list({"realmId":"12345678","locale":"default","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `locale` | `FR \| default` | No | Defaults to "default". |
| `params` | `object` | No | — |

Select locale FR for the TrialBalanceFR route; other locales use TrialBalance. Parameters follow the first-party trialbalancequery model. Source: [https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/trialbalance](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/trialbalance)

> [accordion] params full type
>
> ```ts theme={null}
> {
>   accounting_method?: string,
>   end_date?: string,
>   date_macro?: string,
>   sort_order?: string,
>   summarize_column_by?: string,
>   start_date?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Vendor

### create

`vendor.create`

QuickBooks Create a vendor

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.vendor.create({"realmId":"12345678","body":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   DisplayName?: string,
>   Suffix?: string,
>   Title?: string,
>   MiddleName?: string,
>   FamilyName?: string,
>   GivenName?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Vendor` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Vendor full type
>
> ```ts theme={null}
> {
>   PrimaryEmailAddr?: {
>     Address?: string
>   },
>   DisplayName?: string,
>   OtherContactInfo?: {
>     Type?: string,
>     Telephone?: {
>       FreeFormNumber?: string
>     }
>   },
>   Title?: string,
>   TermRef?: {
>     name?: string,
>     value: string
>   },
>   Source?: string,
>   GivenName?: string,
>   T4AEligible?: boolean,
>   Fax?: {
>     FreeFormNumber?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   Mobile?: {
>     FreeFormNumber?: string
>   },
>   PrimaryPhone?: {
>     FreeFormNumber?: string
>   },
>   Active?: boolean,
>   AlternatePhone?: {
>     FreeFormNumber?: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   Vendor1099?: boolean,
>   CostRate?: number,
>   MiddleName?: string,
>   BillRate?: number,
>   WebAddr?: {
>     URI?: string
>   },
>   T5018Eligible?: boolean,
>   Balance?: number,
>   SyncToken?: string,
>   Suffix?: string,
>   CompanyName?: string,
>   FamilyName?: string,
>   VendorPaymentBankDetail?: {
>     BankAccountName?: string,
>     BankBranchIdentifier?: string,
>     BankAccountNumber?: string,
>     StatementText?: string
>   },
>   TaxIdentifier?: string,
>   AcctNum?: string,
>   HasTPAR?: boolean,
>   PrintOnCheckName?: string,
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   Id: string
> }
> ```

***

### get

`vendor.get`

QuickBooks Read a vendor

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.vendor.get({"realmId":"12345678","vendorId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `vendorId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Vendor` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Vendor full type
>
> ```ts theme={null}
> {
>   PrimaryEmailAddr?: {
>     Address?: string
>   },
>   DisplayName?: string,
>   OtherContactInfo?: {
>     Type?: string,
>     Telephone?: {
>       FreeFormNumber?: string
>     }
>   },
>   Title?: string,
>   TermRef?: {
>     name?: string,
>     value: string
>   },
>   Source?: string,
>   GivenName?: string,
>   T4AEligible?: boolean,
>   Fax?: {
>     FreeFormNumber?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   Mobile?: {
>     FreeFormNumber?: string
>   },
>   PrimaryPhone?: {
>     FreeFormNumber?: string
>   },
>   Active?: boolean,
>   AlternatePhone?: {
>     FreeFormNumber?: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   Vendor1099?: boolean,
>   CostRate?: number,
>   MiddleName?: string,
>   BillRate?: number,
>   WebAddr?: {
>     URI?: string
>   },
>   T5018Eligible?: boolean,
>   Balance?: number,
>   SyncToken?: string,
>   Suffix?: string,
>   CompanyName?: string,
>   FamilyName?: string,
>   VendorPaymentBankDetail?: {
>     BankAccountName?: string,
>     BankBranchIdentifier?: string,
>     BankAccountNumber?: string,
>     StatementText?: string
>   },
>   TaxIdentifier?: string,
>   AcctNum?: string,
>   HasTPAR?: boolean,
>   PrintOnCheckName?: string,
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   Id: string
> }
> ```

***

### list

`vendor.list`

QuickBooks Query a vendor

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.vendor.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   Vendor?: {
>     PrimaryEmailAddr?: {
>       Address?: string
>     },
>     DisplayName?: string,
>     OtherContactInfo?: {
>       Type?: string,
>       Telephone?: {
>         FreeFormNumber?: string
>       }
>     },
>     Title?: string,
>     TermRef?: {
>       name?: string,
>       value: string
>     },
>     Source?: string,
>     GivenName?: string,
>     T4AEligible?: boolean,
>     Fax?: {
>       FreeFormNumber?: string
>     },
>     CurrencyRef?: {
>       name?: string,
>       value: string
>     },
>     Mobile?: {
>       FreeFormNumber?: string
>     },
>     PrimaryPhone?: {
>       FreeFormNumber?: string
>     },
>     Active?: boolean,
>     AlternatePhone?: {
>       FreeFormNumber?: string
>     },
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     },
>     Vendor1099?: boolean,
>     CostRate?: number,
>     MiddleName?: string,
>     BillRate?: number,
>     WebAddr?: {
>       URI?: string
>     },
>     T5018Eligible?: boolean,
>     Balance?: number,
>     SyncToken?: string,
>     Suffix?: string,
>     CompanyName?: string,
>     FamilyName?: string,
>     VendorPaymentBankDetail?: {
>       BankAccountName?: string,
>       BankBranchIdentifier?: string,
>       BankAccountNumber?: string,
>       StatementText?: string
>     },
>     TaxIdentifier?: string,
>     AcctNum?: string,
>     HasTPAR?: boolean,
>     PrintOnCheckName?: string,
>     BillAddr?: {
>       City?: string,
>       Country?: string,
>       Line5?: string,
>       Line4?: string,
>       Line3?: string,
>       Line2?: string,
>       Line1?: string,
>       PostalCode?: string,
>       CountrySubDivisionCode?: string,
>       Id?: string
>     },
>     Id: string
>   }[]
> }
> ```

***

### update

`vendor.update`

QuickBooks Full update a vendor

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.vendor.update({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   PrimaryEmailAddr?: {
>     Address?: string
>   },
>   DisplayName?: string,
>   OtherContactInfo?: {
>     Type?: string,
>     Telephone?: {
>       FreeFormNumber?: string
>     }
>   },
>   Title?: string,
>   TermRef?: {
>     name?: string,
>     value: string
>   },
>   Source?: string,
>   GivenName?: string,
>   T4AEligible?: boolean,
>   Fax?: {
>     FreeFormNumber?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   Mobile?: {
>     FreeFormNumber?: string
>   },
>   PrimaryPhone?: {
>     FreeFormNumber?: string
>   },
>   Active?: boolean,
>   AlternatePhone?: {
>     FreeFormNumber?: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   Vendor1099?: boolean,
>   CostRate?: number,
>   MiddleName?: string,
>   BillRate?: number,
>   WebAddr?: {
>     URI?: string
>   },
>   T5018Eligible?: boolean,
>   Balance?: number,
>   SyncToken: string,
>   Suffix?: string,
>   CompanyName?: string,
>   FamilyName?: string,
>   VendorPaymentBankDetail?: {
>     BankAccountName?: string,
>     BankBranchIdentifier?: string,
>     BankAccountNumber?: string,
>     StatementText?: string
>   },
>   TaxIdentifier?: string,
>   AcctNum?: string,
>   HasTPAR?: boolean,
>   PrintOnCheckName?: string,
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   Id: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Vendor` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] Vendor full type
>
> ```ts theme={null}
> {
>   PrimaryEmailAddr?: {
>     Address?: string
>   },
>   DisplayName?: string,
>   OtherContactInfo?: {
>     Type?: string,
>     Telephone?: {
>       FreeFormNumber?: string
>     }
>   },
>   Title?: string,
>   TermRef?: {
>     name?: string,
>     value: string
>   },
>   Source?: string,
>   GivenName?: string,
>   T4AEligible?: boolean,
>   Fax?: {
>     FreeFormNumber?: string
>   },
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   Mobile?: {
>     FreeFormNumber?: string
>   },
>   PrimaryPhone?: {
>     FreeFormNumber?: string
>   },
>   Active?: boolean,
>   AlternatePhone?: {
>     FreeFormNumber?: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   },
>   Vendor1099?: boolean,
>   CostRate?: number,
>   MiddleName?: string,
>   BillRate?: number,
>   WebAddr?: {
>     URI?: string
>   },
>   T5018Eligible?: boolean,
>   Balance?: number,
>   SyncToken?: string,
>   Suffix?: string,
>   CompanyName?: string,
>   FamilyName?: string,
>   VendorPaymentBankDetail?: {
>     BankAccountName?: string,
>     BankBranchIdentifier?: string,
>     BankAccountNumber?: string,
>     StatementText?: string
>   },
>   TaxIdentifier?: string,
>   AcctNum?: string,
>   HasTPAR?: boolean,
>   PrintOnCheckName?: string,
>   BillAddr?: {
>     City?: string,
>     Country?: string,
>     Line5?: string,
>     Line4?: string,
>     Line3?: string,
>     Line2?: string,
>     Line1?: string,
>     PostalCode?: string,
>     CountrySubDivisionCode?: string,
>     Id?: string
>   },
>   Id: string
> }
> ```

***

## Vendor Balance

### list

`vendorBalance.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.vendorBalance.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   qzurl?: string,
>   accounting_method?: string,
>   date_macro?: string,
>   appaid?: string,
>   report_date?: string,
>   sort_order?: string,
>   summarize_column_by?: string,
>   department?: string,
>   vendor?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Vendor Balance Detail

### list

`vendorBalanceDetail.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.vendorBalanceDetail.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   term?: string,
>   end_duedate?: string,
>   accounting_method?: string,
>   date_macro?: string,
>   start_duedate?: string,
>   duedate_macro?: string,
>   sort_by?: string,
>   report_date?: string,
>   sort_order?: string,
>   appaid?: string,
>   department?: string,
>   vendor?: string,
>   columns?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***

## Vendor Credit

### create

`vendorCredit.create`

QuickBooks Create a vendorcredit

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.vendorCredit.create({"realmId":"12345678","body":{"VendorRef":{"value":"56"},"Line":[{"DetailType":"AccountBasedExpenseLineDetail","Amount":200,"AccountBasedExpenseLineDetail":{"AccountRef":{"value":"7"}}}]}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   VendorRef: {
>     name?: string,
>     value: string
>   },
>   Line: (
>     {
>       Description?: string,
>       DetailType: AccountBasedExpenseLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string,
>       AccountBasedExpenseLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }
>     } | {
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       ItemBasedExpenseLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         PriceLevelRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         Qty?: number,
>         UnitPrice?: number
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       DetailType: ItemBasedExpenseLineDetail,
>       Id?: string
>     }
>   )[]
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `VendorCredit` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] VendorCredit full type
>
> ```ts theme={null}
> {
>   DocNumber?: string,
>   SyncToken?: string,
>   PrivateNote?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   VendorRef: {
>     name?: string,
>     value: string
>   },
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   APAccountRef?: {
>     name?: string,
>     value: string
>   },
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   TxnDate?: string,
>   IncludeInAnnualTPAR?: boolean,
>   Line: (
>     {
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       ItemBasedExpenseLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         PriceLevelRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         Qty?: number,
>         UnitPrice?: number
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       DetailType: ItemBasedExpenseLineDetail,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: AccountBasedExpenseLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string,
>       AccountBasedExpenseLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   Balance?: number,
>   Id: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### delete

`vendorCredit.delete`

QuickBooks Delete a vendorcredit

**Risk:** `destructive`

```ts theme={null}
await corsair.quickbooks.api.vendorCredit.delete({"realmId":"12345678","body":{"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `VendorCredit` | `object` | Yes | — |
| `time` | `string` | No | — |

> [accordion] VendorCredit full type
>
> ```ts theme={null}
> {
>   status: Deleted,
>   Id: string,
>   domain?: QBO
> }
> ```

***

### get

`vendorCredit.get`

QuickBooks Read a vendorcredit

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.vendorCredit.get({"realmId":"12345678","vendorcreditId":"35"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `vendorcreditId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `VendorCredit` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] VendorCredit full type
>
> ```ts theme={null}
> {
>   DocNumber?: string,
>   SyncToken?: string,
>   PrivateNote?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   VendorRef: {
>     name?: string,
>     value: string
>   },
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   APAccountRef?: {
>     name?: string,
>     value: string
>   },
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   TxnDate?: string,
>   IncludeInAnnualTPAR?: boolean,
>   Line: (
>     {
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       ItemBasedExpenseLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         PriceLevelRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         Qty?: number,
>         UnitPrice?: number
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       DetailType: ItemBasedExpenseLineDetail,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: AccountBasedExpenseLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string,
>       AccountBasedExpenseLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   Balance?: number,
>   Id: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

### list

`vendorCredit.list`

QuickBooks Query a vendorcredit

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.vendorCredit.list({"realmId":"12345678"});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `startPosition` | `number` | No | — |
| `maxResults` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `QueryResponse` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] QueryResponse full type
>
> ```ts theme={null}
> {
>   startPosition?: number,
>   maxResults?: number,
>   totalCount?: number,
>   VendorCredit?: {
>     DocNumber?: string,
>     SyncToken?: string,
>     PrivateNote?: string,
>     LinkedTxn?: {
>       TxnLineId?: string,
>       TxnId: string,
>       TxnType: string
>     }[],
>     VendorRef: {
>       name?: string,
>       value: string
>     },
>     RecurDataRef?: {
>       name?: string,
>       value: string
>     },
>     GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>     TotalAmt?: number,
>     ExchangeRate?: number,
>     APAccountRef?: {
>       name?: string,
>       value: string
>     },
>     DepartmentRef?: {
>       name?: string,
>       value: string
>     },
>     TxnDate?: string,
>     IncludeInAnnualTPAR?: boolean,
>     Line: (
>       {
>         LinkedTxn?: {
>           TxnLineId?: string,
>           TxnId: string,
>           TxnType: string
>         }[],
>         Description?: string,
>         ItemBasedExpenseLineDetail: {
>           TaxInclusiveAmt?: number,
>           ItemRef?: {
>             name?: string,
>             value: string
>           },
>           CustomerRef?: {
>             name?: string,
>             value: string
>           },
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           MarkupInfo?: {
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             Percent?: number,
>             MarkUpIncomeAccountRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           BillableStatus?: Billable | NotBillable | HasBeenBilled,
>           Qty?: number,
>           UnitPrice?: number
>         },
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LineNum?: number,
>         Amount: number,
>         DetailType: ItemBasedExpenseLineDetail,
>         Id?: string
>       } | {
>         Description?: string,
>         DetailType: AccountBasedExpenseLineDetail,
>         CustomExtensions?: {
>           AssociatedValues?: {
>             Value: string,
>             Key: string
>           }[],
>           ExtensionType?: string
>         }[],
>         LineNum?: number,
>         Amount: number,
>         Id?: string,
>         AccountBasedExpenseLineDetail: {
>           TaxAmount?: number,
>           TaxInclusiveAmt?: number,
>           ClassRef?: {
>             name?: string,
>             value: string
>           },
>           TaxCodeRef?: {
>             name?: string,
>             value: string
>           },
>           MarkupInfo?: {
>             PriceLevelRef?: {
>               name?: string,
>               value: string
>             },
>             Percent?: number,
>             MarkUpIncomeAccountRef?: {
>               name?: string,
>               value: string
>             }
>           },
>           BillableStatus?: Billable | NotBillable | HasBeenBilled,
>           AccountRef: {
>             name?: string,
>             value: string
>           },
>           CustomerRef?: {
>             name?: string,
>             value: string
>           }
>         }
>       }
>     )[],
>     Balance?: number,
>     Id: string,
>     CurrencyRef?: {
>       name?: string,
>       value: string
>     },
>     MetaData?: {
>       CreateTime?: string,
>       LastUpdatedTime?: string
>     }
>   }[]
> }
> ```

***

### update

`vendorCredit.update`

QuickBooks Full update a vendorcredit

**Risk:** `write`

```ts theme={null}
await corsair.quickbooks.api.vendorCredit.update({"realmId":"12345678","body":{"VendorRef":{"value":"sample"},"Line":[],"Id":"35","SyncToken":"0"}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `body` | `object` | Yes | — |

> [accordion] body full type
>
> ```ts theme={null}
> {
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   VendorRef?: {
>     name?: string,
>     value: string
>   },
>   Line?: (
>     {
>       Description?: string,
>       DetailType: AccountBasedExpenseLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string,
>       AccountBasedExpenseLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }
>     } | {
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       ItemBasedExpenseLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         PriceLevelRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         Qty?: number,
>         UnitPrice?: number
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       DetailType: ItemBasedExpenseLineDetail,
>       Id?: string
>     }
>   )[],
>   Id: string,
>   SyncToken: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `VendorCredit` | `object` | Yes | — |
| `time` | `string` | Yes | — |

> [accordion] VendorCredit full type
>
> ```ts theme={null}
> {
>   DocNumber?: string,
>   SyncToken?: string,
>   PrivateNote?: string,
>   LinkedTxn?: {
>     TxnLineId?: string,
>     TxnId: string,
>     TxnType: string
>   }[],
>   VendorRef: {
>     name?: string,
>     value: string
>   },
>   RecurDataRef?: {
>     name?: string,
>     value: string
>   },
>   GlobalTaxCalculation?: TaxInclusive | TaxExcluded | NotApplicable,
>   TotalAmt?: number,
>   ExchangeRate?: number,
>   APAccountRef?: {
>     name?: string,
>     value: string
>   },
>   DepartmentRef?: {
>     name?: string,
>     value: string
>   },
>   TxnDate?: string,
>   IncludeInAnnualTPAR?: boolean,
>   Line: (
>     {
>       LinkedTxn?: {
>         TxnLineId?: string,
>         TxnId: string,
>         TxnType: string
>       }[],
>       Description?: string,
>       ItemBasedExpenseLineDetail: {
>         TaxInclusiveAmt?: number,
>         ItemRef?: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         },
>         PriceLevelRef?: {
>           name?: string,
>           value: string
>         },
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         Qty?: number,
>         UnitPrice?: number
>       },
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       DetailType: ItemBasedExpenseLineDetail,
>       Id?: string
>     } | {
>       Description?: string,
>       DetailType: AccountBasedExpenseLineDetail,
>       CustomExtensions?: {
>         AssociatedValues?: {
>           Value: string,
>           Key: string
>         }[],
>         ExtensionType?: string
>       }[],
>       LineNum?: number,
>       Amount: number,
>       Id?: string,
>       AccountBasedExpenseLineDetail: {
>         TaxAmount?: number,
>         TaxInclusiveAmt?: number,
>         ClassRef?: {
>           name?: string,
>           value: string
>         },
>         TaxCodeRef?: {
>           name?: string,
>           value: string
>         },
>         MarkupInfo?: {
>           PriceLevelRef?: {
>             name?: string,
>             value: string
>           },
>           Percent?: number,
>           MarkUpIncomeAccountRef?: {
>             name?: string,
>             value: string
>           }
>         },
>         BillableStatus?: Billable | NotBillable | HasBeenBilled,
>         AccountRef: {
>           name?: string,
>           value: string
>         },
>         CustomerRef?: {
>           name?: string,
>           value: string
>         }
>       }
>     }
>   )[],
>   Balance?: number,
>   Id: string,
>   CurrencyRef?: {
>     name?: string,
>     value: string
>   },
>   MetaData?: {
>     CreateTime?: string,
>     LastUpdatedTime?: string
>   }
> }
> ```

***

## Vendor Expenses

### list

`vendorExpenses.list`

QuickBooks Query a report

**Risk:** `read`

```ts theme={null}
await corsair.quickbooks.api.vendorExpenses.list({"realmId":"12345678","params":{}});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `realmId` | `string` | Yes | — |
| `params` | `object` | No | — |

> [accordion] params full type
>
> ```ts theme={null}
> {
>   customer?: string,
>   vendor?: string,
>   end_date?: string,
>   date_macro?: string,
>   class?: string,
>   sort_order?: string,
>   summarize_column_by?: string,
>   department?: string,
>   accounting_method?: string,
>   start_date?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `Header` | `object` | No | — |
| `Rows` | `object` | No | — |
| `Columns` | `object` | No | — |

> [accordion] Header full type
>
> ```ts theme={null}
> {
>   Customer?: string,
>   ReportName?: string,
>   Vendor?: string,
>   Option?: {
>     Name?: string,
>     Value?: string
>   }[],
>   Item?: string,
>   Employee?: string,
>   ReportBasis?: Accrual | Cash,
>   StartPeriod?: string,
>   Class?: string,
>   Currency?: string,
>   EndPeriod?: string,
>   Time?: string,
>   Department?: string,
>   SummarizeColumnsBy?: Total | Year | Quarter | FiscalYear | FiscalQuarter | Month | Week | Days | Customers | Vendors | Employees | Departments | Classes | ProductsAndServices
> }
> ```

> [accordion] Rows full type
>
> ```ts theme={null}
> {
>   Row?: {
>     type?: Section | Data,
>     group?: string,
>     ColData?: {
>       id?: string,
>       value?: string,
>       href?: string
>     }[],
>     Summary?: (recursive),
>     Rows?: {
>       Row?: (recursive)[]
>     },
>     Header?: (recursive)
>   }[]
> }
> ```

> [accordion] Columns full type
>
> ```ts theme={null}
> {
>   Column?: {
>     ColType?: Account | Money | Rate | Customer | Vendor | Employee | ProductsAndService | Department | Class | String,
>     ColTitle?: string
>   }[]
> }
> ```

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.