Account
catalogServices.create
account.catalogServices.create
Create account catalog service
Risk: write
await corsair.moco.api.account.catalogServices.create({
title: 'Website Relaunch',
items: [{ type: 'title' }],
});
| Name | Type | Required | Description |
|---|---|---|---|
title | string | Yes | — |
items | object[] | Yes | — |
items full type
items full type
{
id?: number,
type: title | description | item | subtotal | page-break | separator | position-group,
title?: string,
description?: string,
quantity?: number,
unit?: string,
unit_price?: number,
unit_cost?: number,
net_total?: number,
optional?: boolean,
part?: boolean,
subtotal_type?: part_total | sub_total | optional_part_total | optional_sub_total,
destroyed?: boolean,
additional?: boolean,
position_group_display?: string,
revenue_category_id?: number | null,
position_group_items?: {
title?: string,
unit?: string,
quantity?: number,
unit_price?: number,
unit_cost?: number
}[]
}[]
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
title | string | null | No | — |
items | object[] | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
items full type
items full type
{
id?: number | null,
type?: string | null,
title?: string | null | null,
description?: string | null | null,
quantity?: number | null | null,
unit?: string | null | null,
unit_price?: number | null | null,
net_total?: number | null,
unit_cost?: number | null | null,
optional?: boolean | null,
part?: boolean | null,
subtotal_type?: string | null | null,
additional?: boolean | null,
position_group_display?: string | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
position_group_items?: {
title?: string | null,
unit?: string | null,
quantity?: number | null,
unit_price?: number | null,
unit_cost?: number | null
}[] | null | null,
created_at?: string | null,
updated_at?: string | null
}[] | null
catalogServices.delete
account.catalogServices.delete
Delete account catalog service
Risk: destructive · Irreversible
await corsair.moco.api.account.catalogServices.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
title?: string | null,
items?: {
id?: number | null,
type?: string | null,
title?: string | null | null,
description?: string | null | null,
quantity?: number | null | null,
unit?: string | null | null,
unit_price?: number | null | null,
net_total?: number | null,
unit_cost?: number | null | null,
optional?: boolean | null,
part?: boolean | null,
subtotal_type?: string | null | null,
additional?: boolean | null,
position_group_display?: string | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
position_group_items?: {
title?: string | null,
unit?: string | null,
quantity?: number | null,
unit_price?: number | null,
unit_cost?: number | null
}[] | null | null,
created_at?: string | null,
updated_at?: string | null
}[] | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
catalogServices.get
account.catalogServices.get
Get account catalog service
Risk: read
await corsair.moco.api.account.catalogServices.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
title | string | null | No | — |
items | object[] | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
items full type
items full type
{
id?: number | null,
type?: string | null,
title?: string | null | null,
description?: string | null | null,
quantity?: number | null | null,
unit?: string | null | null,
unit_price?: number | null | null,
net_total?: number | null,
unit_cost?: number | null | null,
optional?: boolean | null,
part?: boolean | null,
subtotal_type?: string | null | null,
additional?: boolean | null,
position_group_display?: string | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
position_group_items?: {
title?: string | null,
unit?: string | null,
quantity?: number | null,
unit_price?: number | null,
unit_cost?: number | null
}[] | null | null,
created_at?: string | null,
updated_at?: string | null
}[] | null
catalogServices.items.create
account.catalogServices.items.create
Create account catalog service item
Risk: write
await corsair.moco.api.account.catalogServices.items.create({ catalog_service_id: 12, type: 'title' });
| Name | Type | Required | Description |
|---|---|---|---|
catalog_service_id | number | Yes | — |
id | number | No | — |
type | title | description | item | subtotal | page-break | separator | position-group | Yes | — |
title | string | No | — |
description | string | No | — |
quantity | number | No | — |
unit | string | No | — |
unit_price | number | No | — |
unit_cost | number | No | — |
net_total | number | No | — |
optional | boolean | No | — |
part | boolean | No | — |
subtotal_type | part_total | sub_total | optional_part_total | optional_sub_total | No | — |
destroyed | boolean | No | — |
additional | boolean | No | — |
position_group_display | string | No | — |
revenue_category_id | number | null | No | — |
position_group_items | object[] | No | — |
position_group_items full type
position_group_items full type
{
title?: string,
unit?: string,
quantity?: number,
unit_price?: number,
unit_cost?: number
}[]
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
type | string | null | No | — |
title | string | null | null | No | — |
description | string | null | null | No | — |
quantity | number | null | null | No | — |
unit | string | null | null | No | — |
unit_price | number | null | null | No | — |
net_total | number | null | No | — |
unit_cost | number | null | null | No | — |
optional | boolean | null | No | — |
part | boolean | null | No | — |
subtotal_type | string | null | null | No | — |
additional | boolean | null | No | — |
position_group_display | string | null | null | No | — |
revenue_category | object | null | No | — |
position_group_items | object[] | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
revenue_category full type
revenue_category full type
{
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null
position_group_items full type
position_group_items full type
{
title?: string | null,
unit?: string | null,
quantity?: number | null,
unit_price?: number | null,
unit_cost?: number | null
}[] | null | null
catalogServices.items.delete
account.catalogServices.items.delete
Delete account catalog service item
Risk: destructive · Irreversible
await corsair.moco.api.account.catalogServices.items.delete({ catalog_service_id: 12, id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
catalog_service_id | number | Yes | — |
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
type?: string | null,
title?: string | null | null,
description?: string | null | null,
quantity?: number | null | null,
unit?: string | null | null,
unit_price?: number | null | null,
net_total?: number | null,
unit_cost?: number | null | null,
optional?: boolean | null,
part?: boolean | null,
subtotal_type?: string | null | null,
additional?: boolean | null,
position_group_display?: string | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
position_group_items?: {
title?: string | null,
unit?: string | null,
quantity?: number | null,
unit_price?: number | null,
unit_cost?: number | null
}[] | null | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
catalogServices.items.get
account.catalogServices.items.get
Get account catalog service item
Risk: read
await corsair.moco.api.account.catalogServices.items.get({ catalog_service_id: 12, id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
catalog_service_id | number | Yes | — |
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
type | string | null | No | — |
title | string | null | null | No | — |
description | string | null | null | No | — |
quantity | number | null | null | No | — |
unit | string | null | null | No | — |
unit_price | number | null | null | No | — |
net_total | number | null | No | — |
unit_cost | number | null | null | No | — |
optional | boolean | null | No | — |
part | boolean | null | No | — |
subtotal_type | string | null | null | No | — |
additional | boolean | null | No | — |
position_group_display | string | null | null | No | — |
revenue_category | object | null | No | — |
position_group_items | object[] | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
revenue_category full type
revenue_category full type
{
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null
position_group_items full type
position_group_items full type
{
title?: string | null,
unit?: string | null,
quantity?: number | null,
unit_price?: number | null,
unit_cost?: number | null
}[] | null | null
catalogServices.items.update
account.catalogServices.items.update
Update account catalog service item
Risk: write
await corsair.moco.api.account.catalogServices.items.update({ catalog_service_id: 12, id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
catalog_service_id | number | Yes | — |
id | number | Yes | Resource ID. |
type | title | description | item | subtotal | page-break | separator | position-group | No | — |
title | string | No | — |
description | string | No | — |
quantity | number | No | — |
unit | string | No | — |
unit_price | number | No | — |
unit_cost | number | No | — |
net_total | number | No | — |
optional | boolean | No | — |
part | boolean | No | — |
subtotal_type | part_total | sub_total | optional_part_total | optional_sub_total | No | — |
destroyed | boolean | No | — |
additional | boolean | No | — |
position_group_display | string | No | — |
revenue_category_id | number | null | No | — |
position_group_items | object[] | No | — |
position_group_items full type
position_group_items full type
{
title?: string,
unit?: string,
quantity?: number,
unit_price?: number,
unit_cost?: number
}[]
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
type | string | null | No | — |
title | string | null | null | No | — |
description | string | null | null | No | — |
quantity | number | null | null | No | — |
unit | string | null | null | No | — |
unit_price | number | null | null | No | — |
net_total | number | null | No | — |
unit_cost | number | null | null | No | — |
optional | boolean | null | No | — |
part | boolean | null | No | — |
subtotal_type | string | null | null | No | — |
additional | boolean | null | No | — |
position_group_display | string | null | null | No | — |
revenue_category | object | null | No | — |
position_group_items | object[] | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
revenue_category full type
revenue_category full type
{
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null
position_group_items full type
position_group_items full type
{
title?: string | null,
unit?: string | null,
quantity?: number | null,
unit_price?: number | null,
unit_cost?: number | null
}[] | null | null
catalogServices.list
account.catalogServices.list
List account catalog services, one page at a time
Risk: read
await corsair.moco.api.account.catalogServices.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
title?: string | null,
items?: {
id?: number | null,
type?: string | null,
title?: string | null | null,
description?: string | null | null,
quantity?: number | null | null,
unit?: string | null | null,
unit_price?: number | null | null,
net_total?: number | null,
unit_cost?: number | null | null,
optional?: boolean | null,
part?: boolean | null,
subtotal_type?: string | null | null,
additional?: boolean | null,
position_group_display?: string | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
position_group_items?: {
title?: string | null,
unit?: string | null,
quantity?: number | null,
unit_price?: number | null,
unit_cost?: number | null
}[] | null | null,
created_at?: string | null,
updated_at?: string | null
}[] | null,
created_at?: string | null,
updated_at?: string | null
}[]
catalogServices.update
account.catalogServices.update
Update account catalog service
Risk: write
await corsair.moco.api.account.catalogServices.update({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
title | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
title | string | null | No | — |
items | object[] | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
items full type
items full type
{
id?: number | null,
type?: string | null,
title?: string | null | null,
description?: string | null | null,
quantity?: number | null | null,
unit?: string | null | null,
unit_price?: number | null | null,
net_total?: number | null,
unit_cost?: number | null | null,
optional?: boolean | null,
part?: boolean | null,
subtotal_type?: string | null | null,
additional?: boolean | null,
position_group_display?: string | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
position_group_items?: {
title?: string | null,
unit?: string | null,
quantity?: number | null,
unit_price?: number | null,
unit_cost?: number | null
}[] | null | null,
created_at?: string | null,
updated_at?: string | null
}[] | null
customProperties.create
account.customProperties.create
Create account custom property
Risk: write
await corsair.moco.api.account.customProperties.create({});
| Name | Type | Required | Description |
|---|---|---|---|
id | number | No | — |
name | string | No | — |
kind | String | Textarea | Link | Boolean | Select | MultiSelect | Date | No | — |
entity | Project | Customer | Supplier | Organization | Contact | Unit | User | AbsenceRequest | HolidayRequest | Deal | Expense | Purchase | Invoice | Offer | ProjectGroup | PurchaseOrder | No | — |
placeholder | string | No | — |
placeholder_alt | string | No | — |
print_on_invoice | boolean | No | — |
print_on_offer | boolean | No | — |
print_on_timesheet | boolean | No | — |
notification_enabled | boolean | No | — |
api_only | boolean | No | — |
defaults | string[] | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
kind | string | null | No | — |
entity | string | null | No | — |
defaults | string[] | null | No | — |
placeholder | string | null | null | No | — |
placeholder_alt | string | null | null | No | — |
print_on_invoice | boolean | null | No | — |
print_on_offer | boolean | null | No | — |
print_on_timesheet | boolean | null | No | — |
notification_enabled | boolean | null | No | — |
api_only | boolean | null | No | — |
customProperties.delete
account.customProperties.delete
Delete account custom property
Risk: destructive · Irreversible
await corsair.moco.api.account.customProperties.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
name?: string | null,
kind?: string | null,
entity?: string | null,
defaults?: string[] | null,
placeholder?: string | null | null,
placeholder_alt?: string | null | null,
print_on_invoice?: boolean | null,
print_on_offer?: boolean | null,
print_on_timesheet?: boolean | null,
notification_enabled?: boolean | null,
api_only?: boolean | null
} | {
success: true
}
customProperties.get
account.customProperties.get
Get account custom property
Risk: read
await corsair.moco.api.account.customProperties.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
kind | string | null | No | — |
entity | string | null | No | — |
defaults | string[] | null | No | — |
placeholder | string | null | null | No | — |
placeholder_alt | string | null | null | No | — |
print_on_invoice | boolean | null | No | — |
print_on_offer | boolean | null | No | — |
print_on_timesheet | boolean | null | No | — |
notification_enabled | boolean | null | No | — |
api_only | boolean | null | No | — |
customProperties.list
account.customProperties.list
List account custom properties: lists custom property definitions; can be filtered by entity, one page at a time
Risk: read
await corsair.moco.api.account.customProperties.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
entity | Project | Customer | Supplier | Organization | Contact | Unit | User | AbsenceRequest | HolidayRequest | Deal | Expense | Purchase | Invoice | Offer | ProjectGroup | PurchaseOrder | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
name?: string | null,
kind?: string | null,
entity?: string | null,
defaults?: string[] | null,
placeholder?: string | null | null,
placeholder_alt?: string | null | null,
print_on_invoice?: boolean | null,
print_on_offer?: boolean | null,
print_on_timesheet?: boolean | null,
notification_enabled?: boolean | null,
api_only?: boolean | null
}[]
customProperties.update
account.customProperties.update
Update account custom property
Risk: write
await corsair.moco.api.account.customProperties.update({ id: 1234567, name: 'Website Relaunch' });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
name | string | Yes | — |
kind | String | Textarea | Link | Boolean | Select | MultiSelect | Date | No | — |
entity | Project | Customer | Supplier | Organization | Contact | Unit | User | AbsenceRequest | HolidayRequest | Deal | Expense | Purchase | Invoice | Offer | ProjectGroup | PurchaseOrder | No | — |
placeholder | string | No | — |
placeholder_alt | string | No | — |
print_on_invoice | boolean | No | — |
print_on_offer | boolean | No | — |
print_on_timesheet | boolean | No | — |
notification_enabled | boolean | No | — |
api_only | boolean | No | — |
defaults | string[] | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
kind | string | null | No | — |
entity | string | null | No | — |
defaults | string[] | null | No | — |
placeholder | string | null | null | No | — |
placeholder_alt | string | null | null | No | — |
print_on_invoice | boolean | null | No | — |
print_on_offer | boolean | null | No | — |
print_on_timesheet | boolean | null | No | — |
notification_enabled | boolean | null | No | — |
api_only | boolean | null | No | — |
expenseTemplates.create
account.expenseTemplates.create
Create account expense template
Risk: write
await corsair.moco.api.account.expenseTemplates.create({ currency: 'EUR' });
| Name | Type | Required | Description |
|---|---|---|---|
title | string | No | — |
description | string | No | — |
unit | string | No | — |
unit_price | number | No | — |
unit_cost | number | No | — |
revenue_category_id | number | No | — |
currency | string | Yes | Currency code, like USD or EUR. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
title | string | null | No | — |
description | string | null | null | No | — |
unit | string | null | null | No | — |
unit_price | number | null | No | — |
unit_cost | number | null | No | — |
currency | string | null | No | — |
revenue_category | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
revenue_category full type
revenue_category full type
{
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null
expenseTemplates.delete
account.expenseTemplates.delete
Delete account expense template
Risk: destructive · Irreversible
await corsair.moco.api.account.expenseTemplates.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
title?: string | null,
description?: string | null | null,
unit?: string | null | null,
unit_price?: number | null,
unit_cost?: number | null,
currency?: string | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
expenseTemplates.get
account.expenseTemplates.get
Get account expense template
Risk: read
await corsair.moco.api.account.expenseTemplates.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
title | string | null | No | — |
description | string | null | null | No | — |
unit | string | null | null | No | — |
unit_price | number | null | No | — |
unit_cost | number | null | No | — |
currency | string | null | No | — |
revenue_category | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
revenue_category full type
revenue_category full type
{
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null
expenseTemplates.list
account.expenseTemplates.list
List account expense templates, one page at a time
Risk: read
await corsair.moco.api.account.expenseTemplates.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
title?: string | null,
description?: string | null | null,
unit?: string | null | null,
unit_price?: number | null,
unit_cost?: number | null,
currency?: string | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
expenseTemplates.update
account.expenseTemplates.update
Update account expense template
Risk: write
await corsair.moco.api.account.expenseTemplates.update({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
title | string | No | — |
description | string | No | — |
unit | string | No | — |
unit_price | number | No | — |
unit_cost | number | No | — |
revenue_category_id | number | No | — |
currency | string | No | Currency code, like USD or EUR. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
title | string | null | No | — |
description | string | null | null | No | — |
unit | string | null | null | No | — |
unit_price | number | null | No | — |
unit_cost | number | null | No | — |
currency | string | null | No | — |
revenue_category | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
revenue_category full type
revenue_category full type
{
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null
fixedCosts.list
account.fixedCosts.list
List account fixed costs, one page at a time
Risk: read
await corsair.moco.api.account.fixedCosts.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
year | number | No | Optional year filter for monthly cost entries. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
title?: string | null,
description?: string | null | null,
payment_day?: number | null | null,
costs?: {
year?: number | null,
month?: number | null,
amount?: number | null
}[] | null,
created_at?: string | null,
updated_at?: string | null
}[]
hourlyRates.get
account.hourlyRates.get
List account hourly rates
Risk: read
await corsair.moco.api.account.hourlyRates.get({});
| Name | Type | Required | Description |
|---|---|---|---|
company_id | number | No | Optional company ID. Returns company-specific defaults when available. |
include_archived_users | boolean | No | Include archived users in the users section. |
| Name | Type | Required | Description |
|---|---|---|---|
defaults_rates | object[] | null | No | API key name kept for compatibility. |
tasks | object[] | null | No | — |
users | object[] | null | No | — |
defaults_rates full type
defaults_rates full type
{
currency?: string | null,
hourly_rate?: number | null
}[] | null
tasks full type
tasks full type
{
id?: number | null,
name?: string | null,
rates?: {
currency?: string | null,
hourly_rate?: number | null
}[] | null
}[] | null
users full type
users full type
{
id?: number | null,
full_name?: string | null,
rates?: {
currency?: string | null,
hourly_rate?: number | null
}[] | null
}[] | null
internalHourlyRates.get
account.internalHourlyRates.get
Get account internal hourly rates
Risk: read
await corsair.moco.api.account.internalHourlyRates.get({});
| Name | Type | Required | Description |
|---|---|---|---|
years | string | No | Comma-separated years, for example 2024,2025. Defaults to current year. |
unit_id | number | No | Optional unit filter. |
include_archived | boolean | No | Include archived users in response. |
object[]
Output full type
Output full type
{
id?: number | null,
full_name?: string | null,
rates?: {
year?: number | null,
rate?: number | null
}[] | null
}[]
internalHourlyRates.update
account.internalHourlyRates.update
Update account internal hourly rates: upserts internal hourly rates for the provided year and users
Risk: write
await corsair.moco.api.account.internalHourlyRates.update({
year: 2026,
rates: [{ user_id: 933590696, rate: 1 }],
});
| Name | Type | Required | Description |
|---|---|---|---|
year | number | Yes | — |
rates | object[] | Yes | — |
rates full type
rates full type
{
user_id: number,
rate: number
}[]
| Name | Type | Required | Description |
|---|---|---|---|
status | string | null | No | — |
taskTemplates.create
account.taskTemplates.create
Create account task template
Risk: write
await corsair.moco.api.account.taskTemplates.create({});
| Name | Type | Required | Description |
|---|---|---|---|
name | string | No | — |
description | string | No | — |
revenue_category_id | number | No | — |
billable | boolean | No | — |
project_default | boolean | No | — |
index | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
description | string | null | null | No | — |
revenue_category | object | null | No | — |
billable | boolean | null | No | — |
project_default | boolean | null | No | — |
index | number | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
revenue_category full type
revenue_category full type
{
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null
taskTemplates.delete
account.taskTemplates.delete
Delete account task template
Risk: destructive · Irreversible
await corsair.moco.api.account.taskTemplates.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
success | true | Yes | MOCO accepted the call; it answered with no body. |
taskTemplates.get
account.taskTemplates.get
Get account task template
Risk: read
await corsair.moco.api.account.taskTemplates.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
description | string | null | null | No | — |
revenue_category | object | null | No | — |
billable | boolean | null | No | — |
project_default | boolean | null | No | — |
index | number | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
revenue_category full type
revenue_category full type
{
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null
taskTemplates.list
account.taskTemplates.list
List account task templates, one page at a time
Risk: read
await corsair.moco.api.account.taskTemplates.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
name?: string | null,
description?: string | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
billable?: boolean | null,
project_default?: boolean | null,
index?: number | null,
created_at?: string | null,
updated_at?: string | null
}[]
taskTemplates.update
account.taskTemplates.update
Update account task template
Risk: write
await corsair.moco.api.account.taskTemplates.update({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
name | string | No | — |
description | string | No | — |
revenue_category_id | number | No | — |
billable | boolean | No | — |
project_default | boolean | No | — |
index | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
description | string | null | null | No | — |
revenue_category | object | null | No | — |
billable | boolean | null | No | — |
project_default | boolean | null | No | — |
index | number | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
revenue_category full type
revenue_category full type
{
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null
webHooks.create
account.webHooks.create
Create account web hook
Risk: write
await corsair.moco.api.account.webHooks.create({ target: 'Activity', event: 'create', hook: 'https://example.com/moco/webhooks' });
| Name | Type | Required | Description |
|---|---|---|---|
target | Activity | Comment | Company | Contact | Contract | Deal | Expense | Invoice | Invoice::Approval | Invoice::BookkeepingExport | Invoice::Payment | InvoiceDraft | InvoiceReminder | Offer | PlanningEntry | Presence | Project | Project::PaymentSchedule | ProjectGroup | Purchase | Purchase::Approval | Purchase::BookkeepingExport | Purchase::Draft | Purchase::Order | Purchase::Payment | RecurringExpense | Schedule | Task | User | User::HolidayRequest | User::AbsenceRequest | User::PeriodLockOverride | User::WorkTimeAdjustment | Yes | Resource type a webhook watches for events. Values correspond to internal class names. Namespace qualifiers (::) are used where the resource lives under another model (for example Invoice::Approval, Project::PaymentSchedule, User::AbsenceRequest). |
event | string | Yes | — |
hook | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
target | string | null | No | Resource type a webhook watches for events. Values correspond to internal class names. Namespace qualifiers (::) are used where the resource lives under another model (for example Invoice::Approval, Project::PaymentSchedule, User::AbsenceRequest). |
event | string | null | No | — |
hook | string | null | No | — |
disabled | boolean | null | No | — |
disabled_at | string | null | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
webHooks.delete
account.webHooks.delete
Delete account web hook
Risk: destructive · Irreversible
await corsair.moco.api.account.webHooks.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
target?: string | null,
event?: string | null,
hook?: string | null,
disabled?: boolean | null,
disabled_at?: string | null | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
webHooks.disable
account.webHooks.disable
Disable account web hook
Risk: write
await corsair.moco.api.account.webHooks.disable({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
target | string | null | No | Resource type a webhook watches for events. Values correspond to internal class names. Namespace qualifiers (::) are used where the resource lives under another model (for example Invoice::Approval, Project::PaymentSchedule, User::AbsenceRequest). |
event | string | null | No | — |
hook | string | null | No | — |
disabled | boolean | null | No | — |
disabled_at | string | null | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
webHooks.enable
account.webHooks.enable
Enable account web hook
Risk: write
await corsair.moco.api.account.webHooks.enable({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
target | string | null | No | Resource type a webhook watches for events. Values correspond to internal class names. Namespace qualifiers (::) are used where the resource lives under another model (for example Invoice::Approval, Project::PaymentSchedule, User::AbsenceRequest). |
event | string | null | No | — |
hook | string | null | No | — |
disabled | boolean | null | No | — |
disabled_at | string | null | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
webHooks.get
account.webHooks.get
Get account web hook
Risk: read
await corsair.moco.api.account.webHooks.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
target | string | null | No | Resource type a webhook watches for events. Values correspond to internal class names. Namespace qualifiers (::) are used where the resource lives under another model (for example Invoice::Approval, Project::PaymentSchedule, User::AbsenceRequest). |
event | string | null | No | — |
hook | string | null | No | — |
disabled | boolean | null | No | — |
disabled_at | string | null | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
webHooks.list
account.webHooks.list
List account web hooks, one page at a time
Risk: read
await corsair.moco.api.account.webHooks.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
target?: string | null,
event?: string | null,
hook?: string | null,
disabled?: boolean | null,
disabled_at?: string | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
webHooks.update
account.webHooks.update
Update account web hook: only hook can be changed
Risk: write
await corsair.moco.api.account.webHooks.update({ id: 1234567, hook: 'https://example.com/moco/webhooks' });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
hook | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
target | string | null | No | Resource type a webhook watches for events. Values correspond to internal class names. Namespace qualifiers (::) are used where the resource lives under another model (for example Invoice::Approval, Project::PaymentSchedule, User::AbsenceRequest). |
event | string | null | No | — |
hook | string | null | No | — |
disabled | boolean | null | No | — |
disabled_at | string | null | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
Activities
bulkCreate
activities.bulkCreate
Create activities in bulk
Risk: write
await corsair.moco.api.activities.bulkCreate({
activities: [{}],
});
| Name | Type | Required | Description |
|---|---|---|---|
activities | object[] | Yes | Up to 100 activity entries. |
activities full type
activities full type
{
date?: string,
task_id?: number,
company_id?: number,
project_id?: number,
description?: string,
tag?: string,
seconds?: number,
hours?: number,
billable?: boolean,
remote_service?: "" | trello | jira | asana | basecamp | wunderlist | basecamp2 | basecamp3 | toggl | mite | github | youtrack | null,
remote_url?: string,
remote_id?: string,
stop_timer?: boolean
}[]
object[]
Output full type
Output full type
{
id?: number | null,
date?: string | null,
hours?: number | null,
description?: string | null | null,
billed?: boolean | null,
billable?: boolean | null,
invoice_id?: number | null | null,
tag?: string | null | null,
remote_service?: string | null | null,
remote_id?: string | null | null,
remote_url?: string | null | null,
project?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null,
task?: {
id?: number | null,
name?: string | null,
billable?: boolean | null | null
} | null,
customer?: {
id?: number | null,
name?: string | null
} | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
deal?: {
id?: number | null,
name?: string | null
} | null | null,
hourly_rate?: number | null | null,
seconds?: number | null,
worked_seconds?: number | null,
timer_started_at?: string | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
create
activities.create
Create a time entry on a project task for the authenticated user, in hours or seconds
Risk: write
await corsair.moco.api.activities.create({
date: '2026-04-09',
project_id: 1234567,
task_id: 7536,
seconds: 1800,
description: 'Kickoff call',
billable: true,
});
| Name | Type | Required | Description |
|---|---|---|---|
impersonate_user_id | number | No | Execute request on behalf of another user if the authenticated user has permission to Staff. Some resources, such as Activities and User Presences, can be created for other users only if this header is used. |
date | string | No | Activity date. |
task_id | number | No | Task/service ID. |
company_id | number | No | Optional company/customer ID shortcut. |
project_id | number | No | Project ID (mapped internally to assignment). |
description | string | No | Free-text activity description. |
tag | string | No | Optional activity tag label. |
seconds | number | No | Duration in seconds. |
hours | number | No | Deprecated duration field, converted to seconds. |
billable | boolean | No | Whether the activity is billable. |
remote_service | "" | trello | jira | asana | basecamp | wunderlist | basecamp2 | basecamp3 | toggl | mite | github | youtrack | null | No | External source system identifier. |
remote_url | string | No | URL to related external item. |
remote_id | string | No | External identifier of linked remote item. |
stop_timer | boolean | No | If true, stops any running timer before applying the update. This allows updating seconds even when a timer is running. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Activity ID. |
date | string | null | No | Activity date. |
hours | number | null | No | Tracked hours as decimal value. |
description | string | null | null | No | Free-text description. |
billed | boolean | null | No | Whether this activity has been billed. |
billable | boolean | null | No | Whether this activity is billable. |
invoice_id | number | null | null | No | Linked invoice ID if billed. |
tag | string | null | null | No | Activity tag. |
remote_service | string | null | null | No | External integration identifier. |
remote_id | string | null | null | No | External activity ID. |
remote_url | string | null | null | No | External activity URL. |
project | object | null | No | Minimal project reference used in nested resources. |
task | object | null | No | Minimal task reference used in nested resources. |
customer | object | null | No | Minimal company reference used in nested resources. |
user | object | null | No | Minimal user reference used in nested resources. |
deal | object | null | No | — |
hourly_rate | number | null | null | No | Effective hourly rate if visible to caller. |
seconds | number | null | No | Tracked seconds. |
worked_seconds | number | null | No | Effective worked seconds including rounding logic. |
timer_started_at | string | null | null | No | Active timer start timestamp, if timer is running. |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null
task full type
task full type
{
id?: number | null,
name?: string | null,
billable?: boolean | null | null
} | null
customer full type
customer full type
{
id?: number | null,
name?: string | null
} | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
deal full type
deal full type
{
id?: number | null,
name?: string | null
} | null | null
delete
activities.delete
Delete a time entry; billed entries cannot be deleted this way
Risk: destructive · Irreversible
await corsair.moco.api.activities.delete({ id: 654321 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
date?: string | null,
hours?: number | null,
description?: string | null | null,
billed?: boolean | null,
billable?: boolean | null,
invoice_id?: number | null | null,
tag?: string | null | null,
remote_service?: string | null | null,
remote_id?: string | null | null,
remote_url?: string | null | null,
project?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null,
task?: {
id?: number | null,
name?: string | null,
billable?: boolean | null | null
} | null,
customer?: {
id?: number | null,
name?: string | null
} | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
deal?: {
id?: number | null,
name?: string | null
} | null | null,
hourly_rate?: number | null | null,
seconds?: number | null,
worked_seconds?: number | null,
timer_started_at?: string | null | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
disregard
activities.disregard
Disregard activities for invoicing: marks selected activities as disregarded for billing calculations
Risk: write
await corsair.moco.api.activities.disregard({
company_id: 889,
reason: 'Created by mistake',
activity_ids: [1],
});
| Name | Type | Required | Description |
|---|---|---|---|
company_id | number | Yes | Customer/company ID used for disregard context. |
customer_id | number | No | Deprecated alias for company_id. |
reason | string | Yes | Reason shown in history/audit context. |
project_id | number | No | Optional project scope. |
activity_ids | number[] | Yes | IDs of activities to disregard. |
number[]
get
activities.get
Read one time entry
Risk: read
await corsair.moco.api.activities.get({ id: 654321 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Activity ID. |
date | string | null | No | Activity date. |
hours | number | null | No | Tracked hours as decimal value. |
description | string | null | null | No | Free-text description. |
billed | boolean | null | No | Whether this activity has been billed. |
billable | boolean | null | No | Whether this activity is billable. |
invoice_id | number | null | null | No | Linked invoice ID if billed. |
tag | string | null | null | No | Activity tag. |
remote_service | string | null | null | No | External integration identifier. |
remote_id | string | null | null | No | External activity ID. |
remote_url | string | null | null | No | External activity URL. |
project | object | null | No | Minimal project reference used in nested resources. |
task | object | null | No | Minimal task reference used in nested resources. |
customer | object | null | No | Minimal company reference used in nested resources. |
user | object | null | No | Minimal user reference used in nested resources. |
deal | object | null | No | — |
hourly_rate | number | null | null | No | Effective hourly rate if visible to caller. |
seconds | number | null | No | Tracked seconds. |
worked_seconds | number | null | No | Effective worked seconds including rounding logic. |
timer_started_at | string | null | null | No | Active timer start timestamp, if timer is running. |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null
task full type
task full type
{
id?: number | null,
name?: string | null,
billable?: boolean | null | null
} | null
customer full type
customer full type
{
id?: number | null,
name?: string | null
} | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
deal full type
deal full type
{
id?: number | null,
name?: string | null
} | null | null
list
activities.list
List time entries with date, user, project, task, billable and billed filters, one page at a time
Risk: read
await corsair.moco.api.activities.list({ from: '2026-04-01', to: '2026-04-30', project_id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
sort_by | string | No | Field and optional direction, e.g. title desc. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
from | string | No | Start date filter. Format: YYYY-MM-DD (e.g. 2026-01-01). |
to | string | No | End date filter. Format: YYYY-MM-DD (e.g. 2026-01-31). |
user_id | number | No | — |
task_id | number | No | — |
company_id | number | No | — |
project_id | number | No | — |
deal_id | number | string | No | Single ID or comma-separated list. |
billable | boolean | No | — |
billed | boolean | No | — |
term | string | No | — |
tag | string | No | Single tag or comma-separated list of tags. |
remote_id | number | string | No | Single remote ID or comma-separated list of remote IDs. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
date?: string | null,
hours?: number | null,
description?: string | null | null,
billed?: boolean | null,
billable?: boolean | null,
invoice_id?: number | null | null,
tag?: string | null | null,
remote_service?: string | null | null,
remote_id?: string | null | null,
remote_url?: string | null | null,
project?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null,
task?: {
id?: number | null,
name?: string | null,
billable?: boolean | null | null
} | null,
customer?: {
id?: number | null,
name?: string | null
} | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
deal?: {
id?: number | null,
name?: string | null
} | null | null,
hourly_rate?: number | null | null,
seconds?: number | null,
worked_seconds?: number | null,
timer_started_at?: string | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
startTimer
activities.startTimer
Start activity timer: starts the timer for an existing activity
Risk: write
await corsair.moco.api.activities.startTimer({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Activity ID. |
date | string | null | No | Activity date. |
hours | number | null | No | Tracked hours as decimal value. |
description | string | null | null | No | Free-text description. |
billed | boolean | null | No | Whether this activity has been billed. |
billable | boolean | null | No | Whether this activity is billable. |
invoice_id | number | null | null | No | Linked invoice ID if billed. |
tag | string | null | null | No | Activity tag. |
remote_service | string | null | null | No | External integration identifier. |
remote_id | string | null | null | No | External activity ID. |
remote_url | string | null | null | No | External activity URL. |
project | object | null | No | Minimal project reference used in nested resources. |
task | object | null | No | Minimal task reference used in nested resources. |
customer | object | null | No | Minimal company reference used in nested resources. |
user | object | null | No | Minimal user reference used in nested resources. |
deal | object | null | No | — |
hourly_rate | number | null | null | No | Effective hourly rate if visible to caller. |
seconds | number | null | No | Tracked seconds. |
worked_seconds | number | null | No | Effective worked seconds including rounding logic. |
timer_started_at | string | null | null | No | Active timer start timestamp, if timer is running. |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null
task full type
task full type
{
id?: number | null,
name?: string | null,
billable?: boolean | null | null
} | null
customer full type
customer full type
{
id?: number | null,
name?: string | null
} | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
deal full type
deal full type
{
id?: number | null,
name?: string | null
} | null | null
stopTimer
activities.stopTimer
Stop activity timer: stops a running timer and writes tracked duration back to the activity
Risk: write
await corsair.moco.api.activities.stopTimer({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Activity ID. |
date | string | null | No | Activity date. |
hours | number | null | No | Tracked hours as decimal value. |
description | string | null | null | No | Free-text description. |
billed | boolean | null | No | Whether this activity has been billed. |
billable | boolean | null | No | Whether this activity is billable. |
invoice_id | number | null | null | No | Linked invoice ID if billed. |
tag | string | null | null | No | Activity tag. |
remote_service | string | null | null | No | External integration identifier. |
remote_id | string | null | null | No | External activity ID. |
remote_url | string | null | null | No | External activity URL. |
project | object | null | No | Minimal project reference used in nested resources. |
task | object | null | No | Minimal task reference used in nested resources. |
customer | object | null | No | Minimal company reference used in nested resources. |
user | object | null | No | Minimal user reference used in nested resources. |
deal | object | null | No | — |
hourly_rate | number | null | null | No | Effective hourly rate if visible to caller. |
seconds | number | null | No | Tracked seconds. |
worked_seconds | number | null | No | Effective worked seconds including rounding logic. |
timer_started_at | string | null | null | No | Active timer start timestamp, if timer is running. |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null
task full type
task full type
{
id?: number | null,
name?: string | null,
billable?: boolean | null | null
} | null
customer full type
customer full type
{
id?: number | null,
name?: string | null
} | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
deal full type
deal full type
{
id?: number | null,
name?: string | null
} | null | null
update
activities.update
Update a time entry
Risk: write
await corsair.moco.api.activities.update({ id: 654321, description: 'Kickoff call with follow-up', seconds: 2700 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
date | string | No | Activity date. |
task_id | number | No | Task/service ID. |
company_id | number | No | Optional company/customer ID shortcut. |
project_id | number | No | Project ID (mapped internally to assignment). |
description | string | No | Free-text activity description. |
tag | string | No | Optional activity tag label. |
seconds | number | No | Duration in seconds. |
hours | number | No | Deprecated duration field, converted to seconds. |
billable | boolean | No | Whether the activity is billable. |
remote_service | "" | trello | jira | asana | basecamp | wunderlist | basecamp2 | basecamp3 | toggl | mite | github | youtrack | null | No | External source system identifier. |
remote_url | string | No | URL to related external item. |
remote_id | string | No | External identifier of linked remote item. |
stop_timer | boolean | No | If true, stops any running timer before applying the update. This allows updating seconds even when a timer is running. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Activity ID. |
date | string | null | No | Activity date. |
hours | number | null | No | Tracked hours as decimal value. |
description | string | null | null | No | Free-text description. |
billed | boolean | null | No | Whether this activity has been billed. |
billable | boolean | null | No | Whether this activity is billable. |
invoice_id | number | null | null | No | Linked invoice ID if billed. |
tag | string | null | null | No | Activity tag. |
remote_service | string | null | null | No | External integration identifier. |
remote_id | string | null | null | No | External activity ID. |
remote_url | string | null | null | No | External activity URL. |
project | object | null | No | Minimal project reference used in nested resources. |
task | object | null | No | Minimal task reference used in nested resources. |
customer | object | null | No | Minimal company reference used in nested resources. |
user | object | null | No | Minimal user reference used in nested resources. |
deal | object | null | No | — |
hourly_rate | number | null | null | No | Effective hourly rate if visible to caller. |
seconds | number | null | No | Tracked seconds. |
worked_seconds | number | null | No | Effective worked seconds including rounding logic. |
timer_started_at | string | null | null | No | Active timer start timestamp, if timer is running. |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null
task full type
task full type
{
id?: number | null,
name?: string | null,
billable?: boolean | null | null
} | null
customer full type
customer full type
{
id?: number | null,
name?: string | null
} | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
deal full type
deal full type
{
id?: number | null,
name?: string | null
} | null | null
updateBillableSeconds
activities.updateBillableSeconds
Update activity billable seconds
Risk: write
await corsair.moco.api.activities.updateBillableSeconds({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
seconds | number | No | Billable seconds (may differ from worked_seconds). |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Activity ID. |
date | string | null | No | Activity date. |
hours | number | null | No | Tracked hours as decimal value. |
description | string | null | null | No | Free-text description. |
billed | boolean | null | No | Whether this activity has been billed. |
billable | boolean | null | No | Whether this activity is billable. |
invoice_id | number | null | null | No | Linked invoice ID if billed. |
tag | string | null | null | No | Activity tag. |
remote_service | string | null | null | No | External integration identifier. |
remote_id | string | null | null | No | External activity ID. |
remote_url | string | null | null | No | External activity URL. |
project | object | null | No | Minimal project reference used in nested resources. |
task | object | null | No | Minimal task reference used in nested resources. |
customer | object | null | No | Minimal company reference used in nested resources. |
user | object | null | No | Minimal user reference used in nested resources. |
deal | object | null | No | — |
hourly_rate | number | null | null | No | Effective hourly rate if visible to caller. |
seconds | number | null | No | Tracked seconds. |
worked_seconds | number | null | No | Effective worked seconds including rounding logic. |
timer_started_at | string | null | null | No | Active timer start timestamp, if timer is running. |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null
task full type
task full type
{
id?: number | null,
name?: string | null,
billable?: boolean | null | null
} | null
customer full type
customer full type
{
id?: number | null,
name?: string | null
} | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
deal full type
deal full type
{
id?: number | null,
name?: string | null
} | null | null
Approvals
approve
approvals.approve
Approve approval: approves a pending approval
Risk: write
await corsair.moco.api.approvals.approve({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Approval ID. |
status | string | null | No | Current approval status. |
target_type | string | null | No | The type of the approval target. |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
decided_at | string | null | null | No | Timestamp when the approval decision was made. |
note | string | null | null | No | Note attached to the approval request. |
deny_note | string | null | null | No | Note attached when denying the approval. |
creator | object | null | No | Creator of this approval request. |
approver | object | null | No | First assigned user for approval. |
approver2 | object | null | No | Second assigned user for approval (optional). |
processed_by | object | null | No | User who approved or denied the approval request. |
target | object | null | No | The invoice or purchase this approval belongs to. |
creator full type
creator full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null
approver full type
approver full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null
approver2 full type
approver2 full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
processed_by full type
processed_by full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
target full type
target full type
{
id?: number | null,
title?: string | null,
date?: string | null,
net_total?: number | null,
currency?: string | null
} | null
create
approvals.create
Create approval
Risk: write
await corsair.moco.api.approvals.create({ target_type: 'invoice', target_id: 1, approver_id: 1 });
| Name | Type | Required | Description |
|---|---|---|---|
target_type | invoice | purchase | Yes | The type of the approval target. |
target_id | number | Yes | ID of the invoice or purchase to approve. |
approver_id | number | Yes | ID of the first user assigned to approve. |
approver2_id | number | null | No | ID of an optional second approver. |
note | string | null | No | Optional note attached to the approval request. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Approval ID. |
status | string | null | No | Current approval status. |
target_type | string | null | No | The type of the approval target. |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
decided_at | string | null | null | No | Timestamp when the approval decision was made. |
note | string | null | null | No | Note attached to the approval request. |
deny_note | string | null | null | No | Note attached when denying the approval. |
creator | object | null | No | Creator of this approval request. |
approver | object | null | No | First assigned user for approval. |
approver2 | object | null | No | Second assigned user for approval (optional). |
processed_by | object | null | No | User who approved or denied the approval request. |
target | object | null | No | The invoice or purchase this approval belongs to. |
creator full type
creator full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null
approver full type
approver full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null
approver2 full type
approver2 full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
processed_by full type
processed_by full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
target full type
target full type
{
id?: number | null,
title?: string | null,
date?: string | null,
net_total?: number | null,
currency?: string | null
} | null
delete
approvals.delete
Delete approval
Risk: destructive · Irreversible
await corsair.moco.api.approvals.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
status?: string | null,
target_type?: string | null,
created_at?: string | null,
updated_at?: string | null,
decided_at?: string | null | null,
note?: string | null | null,
deny_note?: string | null | null,
creator?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null,
approver?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null,
approver2?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
processed_by?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
target?: {
id?: number | null,
title?: string | null,
date?: string | null,
net_total?: number | null,
currency?: string | null
} | null
} | {
success: true
}
deny
approvals.deny
Deny approval: denies a pending approval
Risk: write
await corsair.moco.api.approvals.deny({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
note | string | No | Reason for denial. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Approval ID. |
status | string | null | No | Current approval status. |
target_type | string | null | No | The type of the approval target. |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
decided_at | string | null | null | No | Timestamp when the approval decision was made. |
note | string | null | null | No | Note attached to the approval request. |
deny_note | string | null | null | No | Note attached when denying the approval. |
creator | object | null | No | Creator of this approval request. |
approver | object | null | No | First assigned user for approval. |
approver2 | object | null | No | Second assigned user for approval (optional). |
processed_by | object | null | No | User who approved or denied the approval request. |
target | object | null | No | The invoice or purchase this approval belongs to. |
creator full type
creator full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null
approver full type
approver full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null
approver2 full type
approver2 full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
processed_by full type
processed_by full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
target full type
target full type
{
id?: number | null,
title?: string | null,
date?: string | null,
net_total?: number | null,
currency?: string | null
} | null
get
approvals.get
Get approval
Risk: read
await corsair.moco.api.approvals.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Approval ID. |
status | string | null | No | Current approval status. |
target_type | string | null | No | The type of the approval target. |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
decided_at | string | null | null | No | Timestamp when the approval decision was made. |
note | string | null | null | No | Note attached to the approval request. |
deny_note | string | null | null | No | Note attached when denying the approval. |
creator | object | null | No | Creator of this approval request. |
approver | object | null | No | First assigned user for approval. |
approver2 | object | null | No | Second assigned user for approval (optional). |
processed_by | object | null | No | User who approved or denied the approval request. |
target | object | null | No | The invoice or purchase this approval belongs to. |
creator full type
creator full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null
approver full type
approver full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null
approver2 full type
approver2 full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
processed_by full type
processed_by full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
target full type
target full type
{
id?: number | null,
title?: string | null,
date?: string | null,
net_total?: number | null,
currency?: string | null
} | null
list
approvals.list
List approvals, one page at a time
Risk: read
await corsair.moco.api.approvals.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
type | invoice | purchase | No | Filter by approval target type. |
approver_user_id | number | No | Filter by approver user ID. |
creator_user_id | number | No | Filter by creator user ID. |
approval_status | pending | approved | denied | No | Filter by approval status. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
status?: string | null,
target_type?: string | null,
created_at?: string | null,
updated_at?: string | null,
decided_at?: string | null | null,
note?: string | null | null,
deny_note?: string | null | null,
creator?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null,
approver?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null,
approver2?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
processed_by?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
target?: {
id?: number | null,
title?: string | null,
date?: string | null,
net_total?: number | null,
currency?: string | null
} | null
}[]
Comments
bulkCreate
comments.bulkCreate
Create comments in bulk
Risk: write
await corsair.moco.api.comments.bulkCreate({
commentable_type: 'Company',
commentable_ids: [1],
text: 'Please find the invoice attached.',
});
| Name | Type | Required | Description |
|---|---|---|---|
text | string | Yes | — |
created_at | string | No | — |
commentable_type | Company | Contact | Deal | DeliveryNote | Expense | Invoice | InvoiceBookkeepingExport | InvoiceDeletion | InvoiceReminder | Offer | OfferConfirmation | Project | ProjectGroup | Purchase | PurchaseBookkeepingExport | PurchaseDraft | Receipt | ReceiptRefundRequest | RecurringExpense | Unit | User | UserHolidayRequest | Yes | — |
commentable_ids | number[] | Yes | — |
object[]
Output full type
Output full type
{
id?: number | null,
commentable_id?: number | null,
commentable_type?: string | null,
text?: string | null,
manual?: boolean | null,
created_at?: string | null,
updated_at?: string | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
impersonating_user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
}[]
create
comments.create
Create comment
Risk: write
await corsair.moco.api.comments.create({});
| Name | Type | Required | Description |
|---|---|---|---|
text | string | No | — |
created_at | string | No | — |
commentable_id | number | No | — |
commentable_type | Company | Contact | Deal | DeliveryNote | Expense | Invoice | InvoiceBookkeepingExport | InvoiceDeletion | InvoiceReminder | Offer | OfferConfirmation | Project | ProjectGroup | Purchase | PurchaseBookkeepingExport | PurchaseDraft | Receipt | ReceiptRefundRequest | RecurringExpense | Unit | User | UserHolidayRequest | No | Public target type (for example Project, Invoice, Purchase). |
attachment_filename | string | No | — |
attachment_content | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
commentable_id | number | null | No | — |
commentable_type | string | null | No | — |
text | string | null | No | — |
manual | boolean | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
impersonating_user | object | null | No | Minimal user reference used in nested resources. |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
impersonating_user full type
impersonating_user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
delete
comments.delete
Delete comment
Risk: destructive · Irreversible
await corsair.moco.api.comments.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
success | true | Yes | MOCO accepted the call; it answered with no body. |
get
comments.get
Get comment
Risk: read
await corsair.moco.api.comments.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
commentable_id | number | null | No | — |
commentable_type | string | null | No | — |
text | string | null | No | — |
manual | boolean | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
impersonating_user | object | null | No | Minimal user reference used in nested resources. |
attachment_filename | string | null | null | No | — |
attachment_content | string | null | null | No | Base64 encoded attachment content. |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
impersonating_user full type
impersonating_user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
list
comments.list
List comments, one page at a time
Risk: read
await corsair.moco.api.comments.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
commentable_type | Company | Contact | Deal | DeliveryNote | Expense | Invoice | InvoiceBookkeepingExport | InvoiceDeletion | InvoiceReminder | Offer | OfferConfirmation | Project | ProjectGroup | Purchase | PurchaseBookkeepingExport | PurchaseDraft | Receipt | ReceiptRefundRequest | RecurringExpense | Unit | User | UserHolidayRequest | No | Comment target type (for example Project, Invoice, Purchase). |
commentable_id | number | No | — |
user_id | number | No | — |
manual | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
commentable_id?: number | null,
commentable_type?: string | null,
text?: string | null,
manual?: boolean | null,
created_at?: string | null,
updated_at?: string | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
impersonating_user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
}[]
update
comments.update
Update comment
Risk: write
await corsair.moco.api.comments.update({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
text | string | No | — |
created_at | string | No | — |
commentable_id | number | No | — |
commentable_type | Company | Contact | Deal | DeliveryNote | Expense | Invoice | InvoiceBookkeepingExport | InvoiceDeletion | InvoiceReminder | Offer | OfferConfirmation | Project | ProjectGroup | Purchase | PurchaseBookkeepingExport | PurchaseDraft | Receipt | ReceiptRefundRequest | RecurringExpense | Unit | User | UserHolidayRequest | No | Public target type (for example Project, Invoice, Purchase). |
attachment_filename | string | No | — |
attachment_content | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
commentable_id | number | null | No | — |
commentable_type | string | null | No | — |
text | string | null | No | — |
manual | boolean | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
impersonating_user | object | null | No | Minimal user reference used in nested resources. |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
impersonating_user full type
impersonating_user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
Companies
archive
companies.archive
Archive a company; unarchive reverses it
Risk: write
await corsair.moco.api.companies.archive({ id: 889 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
type | string | null | No | — |
identifier | string | null | null | No | Customer identifier (customer records only). |
name | string | null | No | — |
website | string | null | null | No | — |
email | string | null | null | No | — |
billing_email_cc | string | null | null | No | — |
phone | string | null | null | No | — |
fax | string | null | null | No | — |
address | string | null | null | No | — |
country_code | string | null | null | No | — |
vat_identifier | string | null | null | No | — |
alternative_correspondence_language | boolean | null | No | — |
english_correspondence_language | boolean | null | No | — |
tags | string[] | null | No | — |
labels | string[] | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
info | string | null | null | No | — |
footer | string | null | null | No | — |
custom_properties | object | null | No | — |
active | boolean | null | No | — |
archived_on | string | null | null | No | — |
currency | string | null | null | No | — |
customer_vat | object | null | No | Customer VAT settings (customers only). |
supplier_vat | object | null | No | Supplier VAT settings (suppliers only). |
default_invoice_due_days | number | null | null | No | — |
invoice_format | string | null | null | No | — |
default_payment_means | string | null | null | No | — |
projects | object[] | null | No | — |
iban | string | null | null | No | — |
bank_bic | string | null | null | No | — |
bank_owner | string | null | null | No | — |
debit_number | number | null | null | No | — |
credit_number | number | null | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
custom_properties full type
custom_properties full type
{
} | null
customer_vat full type
customer_vat full type
{
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null
supplier_vat full type
supplier_vat full type
{
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null
projects full type
projects full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
active?: boolean | null,
billable?: boolean | null
}[] | null
create
companies.create
Create a client, supplier or organization
Risk: write
await corsair.moco.api.companies.create({
name: 'Beachy',
type: 'customer',
country_code: 'DE',
currency: 'EUR',
});
| Name | Type | Required | Description |
|---|---|---|---|
type | customer | supplier | organization | No | — |
identifier | string | No | — |
name | string | No | — |
email | string | No | — |
address | string | No | — |
currency | string | No | — |
customer_tax | number | No | Deprecated VAT shortcut for customer records. |
supplier_tax | number | No | Deprecated VAT shortcut for supplier records. |
customer_vat_code_id | number | No | — |
supplier_vat_code_id | number | No | — |
info | string | No | — |
default_invoice_due_days | number | No | — |
invoice_due_days | number | No | — |
website | string | No | — |
phone | string | No | — |
fax | string | No | — |
user_id | number | No | — |
country_code | string | No | — |
footer | string | No | — |
iban | string | No | — |
vat_identifier | string | No | — |
billing_email_cc | string | No | — |
debit_number | number | No | — |
credit_number | number | No | — |
alternative_correspondence_language | boolean | No | — |
billing_notes | string | No | — |
bank_bic | string | No | — |
bank_owner | string | No | — |
invoice_format | regular_pdf | x_invoice | zugferd_x_invoice | No | — |
default_payment_means | not_defined | credit_transfer | No | — |
tags | string[] | No | — |
labels | string[] | No | — |
custom_properties | object | No | — |
custom_properties full type
custom_properties full type
{
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
type | string | null | No | — |
identifier | string | null | null | No | Customer identifier (customer records only). |
name | string | null | No | — |
website | string | null | null | No | — |
email | string | null | null | No | — |
billing_email_cc | string | null | null | No | — |
phone | string | null | null | No | — |
fax | string | null | null | No | — |
address | string | null | null | No | — |
country_code | string | null | null | No | — |
vat_identifier | string | null | null | No | — |
alternative_correspondence_language | boolean | null | No | — |
english_correspondence_language | boolean | null | No | — |
tags | string[] | null | No | — |
labels | string[] | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
info | string | null | null | No | — |
footer | string | null | null | No | — |
custom_properties | object | null | No | — |
active | boolean | null | No | — |
archived_on | string | null | null | No | — |
currency | string | null | null | No | — |
customer_vat | object | null | No | Customer VAT settings (customers only). |
supplier_vat | object | null | No | Supplier VAT settings (suppliers only). |
default_invoice_due_days | number | null | null | No | — |
invoice_format | string | null | null | No | — |
default_payment_means | string | null | null | No | — |
projects | object[] | null | No | — |
iban | string | null | null | No | — |
bank_bic | string | null | null | No | — |
bank_owner | string | null | null | No | — |
debit_number | number | null | null | No | — |
credit_number | number | null | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
custom_properties full type
custom_properties full type
{
} | null
customer_vat full type
customer_vat full type
{
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null
supplier_vat full type
supplier_vat full type
{
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null
projects full type
projects full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
active?: boolean | null,
billable?: boolean | null
}[] | null
delete
companies.delete
Delete company
Risk: destructive · Irreversible
await corsair.moco.api.companies.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
type?: string | null,
identifier?: string | null | null,
name?: string | null,
website?: string | null | null,
email?: string | null | null,
billing_email_cc?: string | null | null,
phone?: string | null | null,
fax?: string | null | null,
address?: string | null | null,
country_code?: string | null | null,
vat_identifier?: string | null | null,
alternative_correspondence_language?: boolean | null,
english_correspondence_language?: boolean | null,
tags?: string[] | null,
labels?: string[] | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
info?: string | null | null,
footer?: string | null | null,
custom_properties?: {
} | null,
active?: boolean | null,
archived_on?: string | null | null,
currency?: string | null | null,
customer_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null,
supplier_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null,
default_invoice_due_days?: number | null | null,
invoice_format?: string | null | null,
default_payment_means?: string | null | null,
projects?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
active?: boolean | null,
billable?: boolean | null
}[] | null,
iban?: string | null | null,
bank_bic?: string | null | null,
bank_owner?: string | null | null,
debit_number?: number | null | null,
credit_number?: number | null | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
get
companies.get
Read one company
Risk: read
await corsair.moco.api.companies.get({ id: 889 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
type | string | null | No | — |
identifier | string | null | null | No | Customer identifier (customer records only). |
name | string | null | No | — |
website | string | null | null | No | — |
email | string | null | null | No | — |
billing_email_cc | string | null | null | No | — |
phone | string | null | null | No | — |
fax | string | null | null | No | — |
address | string | null | null | No | — |
country_code | string | null | null | No | — |
vat_identifier | string | null | null | No | — |
alternative_correspondence_language | boolean | null | No | — |
english_correspondence_language | boolean | null | No | — |
tags | string[] | null | No | — |
labels | string[] | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
info | string | null | null | No | — |
footer | string | null | null | No | — |
custom_properties | object | null | No | — |
active | boolean | null | No | — |
archived_on | string | null | null | No | — |
currency | string | null | null | No | — |
customer_vat | object | null | No | Customer VAT settings (customers only). |
supplier_vat | object | null | No | Supplier VAT settings (suppliers only). |
default_invoice_due_days | number | null | null | No | — |
invoice_format | string | null | null | No | — |
default_payment_means | string | null | null | No | — |
projects | object[] | null | No | — |
iban | string | null | null | No | — |
bank_bic | string | null | null | No | — |
bank_owner | string | null | null | No | — |
debit_number | number | null | null | No | — |
credit_number | number | null | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
custom_properties full type
custom_properties full type
{
} | null
customer_vat full type
customer_vat full type
{
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null
supplier_vat full type
supplier_vat full type
{
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null
projects full type
projects full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
active?: boolean | null,
billable?: boolean | null
}[] | null
list
companies.list
List clients, suppliers and organizations, one page at a time
Risk: read
await corsair.moco.api.companies.list({ type: 'customer', term: 'beachy' });
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
include_archived | boolean | No | — |
type | customer | supplier | organization | No | — |
tags | string | No | Comma-separated list of tag names. |
identifier | string | No | — |
term | string | No | — |
custom_properties | Record<string, string | boolean | string[]> | No | Filter by custom field values. Unknown custom field names return an empty result set. For MultiSelect fields, pass multiple values using custom_properties[Field][]=A&custom_properties[Field][]=B. Boolean fields should be queried with true or false. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
type?: string | null,
identifier?: string | null | null,
name?: string | null,
website?: string | null | null,
email?: string | null | null,
billing_email_cc?: string | null | null,
phone?: string | null | null,
fax?: string | null | null,
address?: string | null | null,
country_code?: string | null | null,
vat_identifier?: string | null | null,
alternative_correspondence_language?: boolean | null,
english_correspondence_language?: boolean | null,
tags?: string[] | null,
labels?: string[] | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
info?: string | null | null,
footer?: string | null | null,
custom_properties?: {
} | null,
active?: boolean | null,
archived_on?: string | null | null,
currency?: string | null | null,
customer_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null,
supplier_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null,
default_invoice_due_days?: number | null | null,
invoice_format?: string | null | null,
default_payment_means?: string | null | null,
projects?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
active?: boolean | null,
billable?: boolean | null
}[] | null,
iban?: string | null | null,
bank_bic?: string | null | null,
bank_owner?: string | null | null,
debit_number?: number | null | null,
credit_number?: number | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
unarchive
companies.unarchive
Unarchive a company
Risk: write
await corsair.moco.api.companies.unarchive({ id: 889 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
type | string | null | No | — |
identifier | string | null | null | No | Customer identifier (customer records only). |
name | string | null | No | — |
website | string | null | null | No | — |
email | string | null | null | No | — |
billing_email_cc | string | null | null | No | — |
phone | string | null | null | No | — |
fax | string | null | null | No | — |
address | string | null | null | No | — |
country_code | string | null | null | No | — |
vat_identifier | string | null | null | No | — |
alternative_correspondence_language | boolean | null | No | — |
english_correspondence_language | boolean | null | No | — |
tags | string[] | null | No | — |
labels | string[] | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
info | string | null | null | No | — |
footer | string | null | null | No | — |
custom_properties | object | null | No | — |
active | boolean | null | No | — |
archived_on | string | null | null | No | — |
currency | string | null | null | No | — |
customer_vat | object | null | No | Customer VAT settings (customers only). |
supplier_vat | object | null | No | Supplier VAT settings (suppliers only). |
default_invoice_due_days | number | null | null | No | — |
invoice_format | string | null | null | No | — |
default_payment_means | string | null | null | No | — |
projects | object[] | null | No | — |
iban | string | null | null | No | — |
bank_bic | string | null | null | No | — |
bank_owner | string | null | null | No | — |
debit_number | number | null | null | No | — |
credit_number | number | null | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
custom_properties full type
custom_properties full type
{
} | null
customer_vat full type
customer_vat full type
{
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null
supplier_vat full type
supplier_vat full type
{
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null
projects full type
projects full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
active?: boolean | null,
billable?: boolean | null
}[] | null
update
companies.update
Update a company
Risk: write
await corsair.moco.api.companies.update({ id: 889, info: 'Retainer client' });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
type | customer | supplier | organization | No | — |
identifier | string | No | — |
name | string | No | — |
email | string | No | — |
address | string | No | — |
currency | string | No | — |
customer_tax | number | No | Deprecated VAT shortcut for customer records. |
supplier_tax | number | No | Deprecated VAT shortcut for supplier records. |
customer_vat_code_id | number | No | — |
supplier_vat_code_id | number | No | — |
info | string | No | — |
default_invoice_due_days | number | No | — |
invoice_due_days | number | No | — |
website | string | No | — |
phone | string | No | — |
fax | string | No | — |
user_id | number | No | — |
country_code | string | No | — |
footer | string | No | — |
iban | string | No | — |
vat_identifier | string | No | — |
billing_email_cc | string | No | — |
debit_number | number | No | — |
credit_number | number | No | — |
alternative_correspondence_language | boolean | No | — |
billing_notes | string | No | — |
bank_bic | string | No | — |
bank_owner | string | No | — |
invoice_format | regular_pdf | x_invoice | zugferd_x_invoice | No | — |
default_payment_means | not_defined | credit_transfer | No | — |
tags | string[] | No | — |
labels | string[] | No | — |
custom_properties | object | No | — |
custom_properties full type
custom_properties full type
{
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
type | string | null | No | — |
identifier | string | null | null | No | Customer identifier (customer records only). |
name | string | null | No | — |
website | string | null | null | No | — |
email | string | null | null | No | — |
billing_email_cc | string | null | null | No | — |
phone | string | null | null | No | — |
fax | string | null | null | No | — |
address | string | null | null | No | — |
country_code | string | null | null | No | — |
vat_identifier | string | null | null | No | — |
alternative_correspondence_language | boolean | null | No | — |
english_correspondence_language | boolean | null | No | — |
tags | string[] | null | No | — |
labels | string[] | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
info | string | null | null | No | — |
footer | string | null | null | No | — |
custom_properties | object | null | No | — |
active | boolean | null | No | — |
archived_on | string | null | null | No | — |
currency | string | null | null | No | — |
customer_vat | object | null | No | Customer VAT settings (customers only). |
supplier_vat | object | null | No | Supplier VAT settings (suppliers only). |
default_invoice_due_days | number | null | null | No | — |
invoice_format | string | null | null | No | — |
default_payment_means | string | null | null | No | — |
projects | object[] | null | No | — |
iban | string | null | null | No | — |
bank_bic | string | null | null | No | — |
bank_owner | string | null | null | No | — |
debit_number | number | null | null | No | — |
credit_number | number | null | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
custom_properties full type
custom_properties full type
{
} | null
customer_vat full type
customer_vat full type
{
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null
supplier_vat full type
supplier_vat full type
{
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null
projects full type
projects full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
active?: boolean | null,
billable?: boolean | null
}[] | null
Contacts
create
contacts.create
Create a contact person for a company
Risk: write
await corsair.moco.api.contacts.create({
firstname: 'Jana',
lastname: 'Berger',
gender: 'F',
company_id: 889,
work_email: 'jana.berger@beachy.example',
});
| Name | Type | Required | Description |
|---|---|---|---|
gender | U | M | F | No | Unknown values are stored as U. |
firstname | string | No | — |
lastname | string | No | — |
name | string | No | — |
title | string | No | — |
job_position | string | No | — |
mobile_phone | string | No | — |
work_email | string | No | — |
work_phone | string | No | — |
work_fax | string | No | — |
work_address | string | No | — |
home_email | string | No | — |
home_address | string | No | — |
bday | string | No | — |
birthday | string | No | — |
salutation | string | No | — |
info | string | No | — |
company_id | number | No | — |
customer_id | number | No | — |
organization_id | number | No | — |
user_id | number | No | — |
tags | string[] | No | — |
custom_properties | object | No | — |
avatar | object | No | — |
custom_properties full type
custom_properties full type
{
}
avatar full type
avatar full type
{
filename?: string,
base64?: string
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
gender | string | null | No | — |
firstname | string | null | No | — |
lastname | string | null | No | — |
title | string | null | null | No | — |
job_position | string | null | null | No | — |
mobile_phone | string | null | null | No | — |
work_fax | string | null | null | No | — |
work_phone | string | null | null | No | — |
work_email | string | null | null | No | — |
work_address | string | null | null | No | — |
home_email | string | null | null | No | — |
home_address | string | null | null | No | — |
birthday | string | null | null | No | — |
salutation | string | null | null | No | — |
info | string | null | null | No | — |
avatar_url | string | null | null | No | — |
tags | string[] | null | No | — |
custom_properties | object | null | No | — |
company | object | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
custom_properties full type
custom_properties full type
{
} | null
company full type
company full type
{
id?: number | null,
type?: string | null,
name?: string | null
} | null | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
delete
contacts.delete
Delete a contact person
Risk: destructive · Irreversible
await corsair.moco.api.contacts.delete({ id: 4471 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
gender?: string | null,
firstname?: string | null,
lastname?: string | null,
title?: string | null | null,
job_position?: string | null | null,
mobile_phone?: string | null | null,
work_fax?: string | null | null,
work_phone?: string | null | null,
work_email?: string | null | null,
work_address?: string | null | null,
home_email?: string | null | null,
home_address?: string | null | null,
birthday?: string | null | null,
salutation?: string | null | null,
info?: string | null | null,
avatar_url?: string | null | null,
tags?: string[] | null,
custom_properties?: {
} | null,
company?: {
id?: number | null,
type?: string | null,
name?: string | null
} | null | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
get
contacts.get
Read one contact person
Risk: read
await corsair.moco.api.contacts.get({ id: 4471 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
gender | string | null | No | — |
firstname | string | null | No | — |
lastname | string | null | No | — |
title | string | null | null | No | — |
job_position | string | null | null | No | — |
mobile_phone | string | null | null | No | — |
work_fax | string | null | null | No | — |
work_phone | string | null | null | No | — |
work_email | string | null | null | No | — |
work_address | string | null | null | No | — |
home_email | string | null | null | No | — |
home_address | string | null | null | No | — |
birthday | string | null | null | No | — |
salutation | string | null | null | No | — |
info | string | null | null | No | — |
avatar_url | string | null | null | No | — |
tags | string[] | null | No | — |
custom_properties | object | null | No | — |
company | object | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
custom_properties full type
custom_properties full type
{
} | null
company full type
company full type
{
id?: number | null,
type?: string | null,
name?: string | null
} | null | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
list
contacts.list
List contact persons, one page at a time
Risk: read
await corsair.moco.api.contacts.list({ term: 'jana' });
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
tags | string | No | Comma-separated list of tag names. |
term | string | No | Full text search on name, email and company. |
phone | string | No | Reverse lookup on work/mobile phone. |
custom_properties | Record<string, string | boolean | string[]> | No | Filter by custom field values. Unknown custom field names return an empty result set. For MultiSelect fields, pass multiple values using custom_properties[Field][]=A&custom_properties[Field][]=B. Boolean fields should be queried with true or false. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
gender?: string | null,
firstname?: string | null,
lastname?: string | null,
title?: string | null | null,
job_position?: string | null | null,
mobile_phone?: string | null | null,
work_fax?: string | null | null,
work_phone?: string | null | null,
work_email?: string | null | null,
work_address?: string | null | null,
home_email?: string | null | null,
home_address?: string | null | null,
birthday?: string | null | null,
salutation?: string | null | null,
info?: string | null | null,
avatar_url?: string | null | null,
tags?: string[] | null,
custom_properties?: {
} | null,
company?: {
id?: number | null,
type?: string | null,
name?: string | null
} | null | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
update
contacts.update
Update a contact person
Risk: write
await corsair.moco.api.contacts.update({ id: 4471, job_position: 'CEO' });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
gender | U | M | F | No | Unknown values are stored as U. |
firstname | string | No | — |
lastname | string | No | — |
name | string | No | — |
title | string | No | — |
job_position | string | No | — |
mobile_phone | string | No | — |
work_email | string | No | — |
work_phone | string | No | — |
work_fax | string | No | — |
work_address | string | No | — |
home_email | string | No | — |
home_address | string | No | — |
bday | string | No | — |
birthday | string | No | — |
salutation | string | No | — |
info | string | No | — |
company_id | number | No | — |
customer_id | number | No | — |
organization_id | number | No | — |
user_id | number | No | — |
tags | string[] | No | — |
custom_properties | object | No | — |
avatar | object | No | — |
custom_properties full type
custom_properties full type
{
}
avatar full type
avatar full type
{
filename?: string,
base64?: string
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
gender | string | null | No | — |
firstname | string | null | No | — |
lastname | string | null | No | — |
title | string | null | null | No | — |
job_position | string | null | null | No | — |
mobile_phone | string | null | null | No | — |
work_fax | string | null | null | No | — |
work_phone | string | null | null | No | — |
work_email | string | null | null | No | — |
work_address | string | null | null | No | — |
home_email | string | null | null | No | — |
home_address | string | null | null | No | — |
birthday | string | null | null | No | — |
salutation | string | null | null | No | — |
info | string | null | null | No | — |
avatar_url | string | null | null | No | — |
tags | string[] | null | No | — |
custom_properties | object | null | No | — |
company | object | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
custom_properties full type
custom_properties full type
{
} | null
company full type
company full type
{
id?: number | null,
type?: string | null,
name?: string | null
} | null | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
Deal Categories
create
dealCategories.create
Create deal category
Risk: write
await corsair.moco.api.dealCategories.create({});
| Name | Type | Required | Description |
|---|---|---|---|
name | string | No | — |
probability | number | No | Probability in percent (0-100). |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
probability | number | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
delete
dealCategories.delete
Delete deal category
Risk: destructive · Irreversible
await corsair.moco.api.dealCategories.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
name?: string | null,
probability?: number | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
get
dealCategories.get
Get deal category
Risk: read
await corsair.moco.api.dealCategories.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
probability | number | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
list
dealCategories.list
List deal categories, one page at a time
Risk: read
await corsair.moco.api.dealCategories.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
name?: string | null,
probability?: number | null,
created_at?: string | null,
updated_at?: string | null
}[]
update
dealCategories.update
Update deal category
Risk: write
await corsair.moco.api.dealCategories.update({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
name | string | No | — |
probability | number | No | Probability in percent (0-100). |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
probability | number | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
Deals
create
deals.create
Create a deal in a deal category
Risk: write
await corsair.moco.api.deals.create({
name: 'Website Relaunch',
deal_category_id: 12,
money: 50000,
currency: 'EUR',
status: 'pending',
});
| Name | Type | Required | Description |
|---|---|---|---|
deal_category_id | number | No | Deal category ID. Required only when status is pending. |
money | number | No | Deal value in selected currency. |
name | string | No | — |
company_id | number | No | Company/customer ID. |
customer_id | number | No | Deprecated alias for company_id. |
person_id | number | No | Linked contact person ID. |
user_id | number | No | Responsible user ID. |
status | potential | pending | won | lost | dropped | No | — |
info | string | No | — |
reminder_date | string | No | — |
closed_on | string | No | — |
currency | string | No | — |
service_period_from | string | No | — |
service_period_to | string | No | — |
tags | string[] | No | — |
custom_properties | object | No | — |
custom_properties full type
custom_properties full type
{
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
status | string | null | No | — |
reminder_date | string | null | null | No | — |
closed_on | string | null | null | No | — |
money | number | null | No | — |
currency | string | null | No | — |
info | string | null | null | No | — |
tags | string[] | null | No | — |
custom_properties | object | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
person | object | null | No | — |
customer | object | null | No | — |
company | object | null | No | — |
category | object | null | No | — |
service_period_from | string | null | null | No | — |
service_period_to | string | null | null | No | — |
inbox_email_address | string | null | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
custom_properties full type
custom_properties full type
{
} | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
person full type
person full type
{
id?: number | null,
name?: string | null
} | null | null
customer full type
customer full type
{
id?: number | null,
name?: string | null
} | null | null
company full type
company full type
{
id?: number | null,
type?: string | null,
name?: string | null
} | null | null
category full type
category full type
{
id?: number | null,
name?: string | null,
probability?: number | null
} | null
delete
deals.delete
Delete a deal
Risk: destructive · Irreversible
await corsair.moco.api.deals.delete({ id: 991 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
name?: string | null,
status?: string | null,
reminder_date?: string | null | null,
closed_on?: string | null | null,
money?: number | null,
currency?: string | null,
info?: string | null | null,
tags?: string[] | null,
custom_properties?: {
} | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
person?: {
id?: number | null,
name?: string | null
} | null | null,
customer?: {
id?: number | null,
name?: string | null
} | null | null,
company?: {
id?: number | null,
type?: string | null,
name?: string | null
} | null | null,
category?: {
id?: number | null,
name?: string | null,
probability?: number | null
} | null,
service_period_from?: string | null | null,
service_period_to?: string | null | null,
inbox_email_address?: string | null | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
get
deals.get
Read one deal
Risk: read
await corsair.moco.api.deals.get({ id: 991 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
status | string | null | No | — |
reminder_date | string | null | null | No | — |
closed_on | string | null | null | No | — |
money | number | null | No | — |
currency | string | null | No | — |
info | string | null | null | No | — |
tags | string[] | null | No | — |
custom_properties | object | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
person | object | null | No | — |
customer | object | null | No | — |
company | object | null | No | — |
category | object | null | No | — |
service_period_from | string | null | null | No | — |
service_period_to | string | null | null | No | — |
inbox_email_address | string | null | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
custom_properties full type
custom_properties full type
{
} | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
person full type
person full type
{
id?: number | null,
name?: string | null
} | null | null
customer full type
customer full type
{
id?: number | null,
name?: string | null
} | null | null
company full type
company full type
{
id?: number | null,
type?: string | null,
name?: string | null
} | null | null
category full type
category full type
{
id?: number | null,
name?: string | null,
probability?: number | null
} | null
list
deals.list
List deals with status, close date, company and contact filters, one page at a time
Risk: read
await corsair.moco.api.deals.list({ status: 'pending' });
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
custom_properties | Record<string, string | boolean | string[]> | No | Filter by custom field values. Unknown custom field names return an empty result set. For MultiSelect fields, pass multiple values using custom_properties[Field][]=A&custom_properties[Field][]=B. Boolean fields should be queried with true or false. |
status | potential | pending | won | lost | dropped | No | — |
tags | string | No | Comma-separated list of deal tag names. |
closed_from | string | No | Closed date range start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
closed_to | string | No | Closed date range end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
company_id | number | No | — |
person_id | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
name?: string | null,
status?: string | null,
reminder_date?: string | null | null,
closed_on?: string | null | null,
money?: number | null,
currency?: string | null,
info?: string | null | null,
tags?: string[] | null,
custom_properties?: {
} | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
person?: {
id?: number | null,
name?: string | null
} | null | null,
customer?: {
id?: number | null,
name?: string | null
} | null | null,
company?: {
id?: number | null,
type?: string | null,
name?: string | null
} | null | null,
category?: {
id?: number | null,
name?: string | null,
probability?: number | null
} | null,
service_period_from?: string | null | null,
service_period_to?: string | null | null,
inbox_email_address?: string | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
update
deals.update
Update a deal, including its status
Risk: write
await corsair.moco.api.deals.update({ id: 991, status: 'won', closed_on: '2026-04-15' });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
deal_category_id | number | No | Deal category ID. Required only when status is pending. |
money | number | No | Deal value in selected currency. |
name | string | No | — |
company_id | number | No | Company/customer ID. |
customer_id | number | No | Deprecated alias for company_id. |
person_id | number | No | Linked contact person ID. |
user_id | number | No | Responsible user ID. |
status | potential | pending | won | lost | dropped | No | — |
info | string | No | — |
reminder_date | string | No | — |
closed_on | string | No | — |
currency | string | No | — |
service_period_from | string | No | — |
service_period_to | string | No | — |
tags | string[] | No | — |
custom_properties | object | No | — |
custom_properties full type
custom_properties full type
{
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
status | string | null | No | — |
reminder_date | string | null | null | No | — |
closed_on | string | null | null | No | — |
money | number | null | No | — |
currency | string | null | No | — |
info | string | null | null | No | — |
tags | string[] | null | No | — |
custom_properties | object | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
person | object | null | No | — |
customer | object | null | No | — |
company | object | null | No | — |
category | object | null | No | — |
service_period_from | string | null | null | No | — |
service_period_to | string | null | null | No | — |
inbox_email_address | string | null | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
custom_properties full type
custom_properties full type
{
} | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
person full type
person full type
{
id?: number | null,
name?: string | null
} | null | null
customer full type
customer full type
{
id?: number | null,
name?: string | null
} | null | null
company full type
company full type
{
id?: number | null,
type?: string | null,
name?: string | null
} | null | null
category full type
category full type
{
id?: number | null,
name?: string | null,
probability?: number | null
} | null
Invoice Reminders
create
invoiceReminders.create
Create invoice reminder
Risk: write
await corsair.moco.api.invoiceReminders.create({});
| Name | Type | Required | Description |
|---|---|---|---|
invoice_id | number | No | — |
title | string | No | — |
text | string | No | — |
fee | number | No | — |
date | string | No | — |
due_date | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
title | string | null | No | — |
text | string | null | null | No | — |
fee | number | null | null | No | — |
date | string | null | No | — |
due_date | string | null | null | No | — |
status | string | null | No | — |
file_url | string | null | null | No | — |
invoice | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
invoice full type
invoice full type
{
id?: number | null,
identifier?: string | null | null,
title?: string | null,
dunning_level?: number | null
} | null
delete
invoiceReminders.delete
Delete invoice reminder
Risk: destructive · Irreversible
await corsair.moco.api.invoiceReminders.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
title?: string | null,
text?: string | null | null,
fee?: number | null | null,
date?: string | null,
due_date?: string | null | null,
status?: string | null,
file_url?: string | null | null,
invoice?: {
id?: number | null,
identifier?: string | null | null,
title?: string | null,
dunning_level?: number | null
} | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
get
invoiceReminders.get
Get invoice reminder
Risk: read
await corsair.moco.api.invoiceReminders.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
title | string | null | No | — |
text | string | null | null | No | — |
fee | number | null | null | No | — |
date | string | null | No | — |
due_date | string | null | null | No | — |
status | string | null | No | — |
file_url | string | null | null | No | — |
invoice | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
invoice full type
invoice full type
{
id?: number | null,
identifier?: string | null | null,
title?: string | null,
dunning_level?: number | null
} | null
list
invoiceReminders.list
List invoice reminders, one page at a time
Risk: read
await corsair.moco.api.invoiceReminders.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
invoice_id | number | No | — |
date_from | string | No | Reminder date range start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
date_to | string | No | Reminder date range end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
title?: string | null,
text?: string | null | null,
fee?: number | null | null,
date?: string | null,
due_date?: string | null | null,
status?: string | null,
file_url?: string | null | null,
invoice?: {
id?: number | null,
identifier?: string | null | null,
title?: string | null,
dunning_level?: number | null
} | null,
created_at?: string | null,
updated_at?: string | null
}[]
sendEmail
invoiceReminders.sendEmail
Email a payment reminder to the recipients given (sends real email from MOCO)
Risk: destructive · Irreversible
await corsair.moco.api.invoiceReminders.sendEmail({ id: 1234567, subject: 'Your invoice', text: 'Please find the invoice attached.' });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
emails_to | string | No | Semicolon-separated email list. |
emails_cc | string | No | Semicolon-separated email list. |
emails_bcc | string | No | Semicolon-separated email list. |
subject | string | Yes | — |
text | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
emails_to | string | null | null | No | Final to recipients (semicolon-separated). |
emails_cc | string | null | null | No | Final cc recipients (semicolon-separated). |
emails_bcc | string | null | null | No | Final bcc recipients (semicolon-separated). |
subject | string | null | No | Email subject. |
text | string | null | No | Email body text. |
Invoices
attachments.create
invoices.attachments.create
Create invoice attachment: uploads a file as invoice attachment using base64-encoded content
Risk: write
await corsair.moco.api.invoices.attachments.create({
invoice_id: 777001,
attachment: { filename: 'receipt.pdf', base64: 'JVBERi0xLjQKJSVFT0YK' },
});
| Name | Type | Required | Description |
|---|---|---|---|
invoice_id | number | Yes | — |
attachment | object | Yes | — |
attachment full type
attachment full type
{
filename: string,
base64: string
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Attachment ID. |
title | string | null | No | Display name of attachment. |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
attachments.delete
invoices.attachments.delete
Delete invoice attachment
Risk: destructive · Irreversible
await corsair.moco.api.invoices.attachments.delete({ invoice_id: 777001, id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
invoice_id | number | Yes | — |
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
title?: string | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
attachments.list
invoices.attachments.list
List invoice attachments
Risk: read
await corsair.moco.api.invoices.attachments.list({ invoice_id: 777001 });
| Name | Type | Required | Description |
|---|---|---|---|
invoice_id | number | Yes | — |
object[]
Output full type
Output full type
{
id?: number | null,
title?: string | null,
created_at?: string | null,
updated_at?: string | null
}[]
bookkeepingExports.create
invoices.bookkeepingExports.create
Create invoice bookkeeping export
Risk: destructive · Irreversible
await corsair.moco.api.invoices.bookkeepingExports.create({});
| Name | Type | Required | Description |
|---|---|---|---|
comment | string | No | — |
trigger_submission | boolean | No | Whether to trigger direct online submission. |
invoice_ids | number[] | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
from | string | null | No | — |
to | string | null | No | — |
invoice_ids | number[] | null | No | — |
comment | string | null | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
status | string | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
bookkeepingExports.get
invoices.bookkeepingExports.get
Get invoice bookkeeping export
Risk: read
await corsair.moco.api.invoices.bookkeepingExports.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
from | string | null | No | — |
to | string | null | No | — |
invoice_ids | number[] | null | No | — |
comment | string | null | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
status | string | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
bookkeepingExports.list
invoices.bookkeepingExports.list
List invoice bookkeeping exports, one page at a time
Risk: read
await corsair.moco.api.invoices.bookkeepingExports.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
from?: string | null,
to?: string | null,
invoice_ids?: number[] | null,
comment?: string | null | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
status?: string | null,
created_at?: string | null,
updated_at?: string | null
}[]
create
invoices.create
Create invoice
Risk: write
await corsair.moco.api.invoices.create({
customer_id: 1,
recipient_address: 'Beachy GmbH
Example Street 1
10115 Berlin',
date: '2026-04-09',
due_date: '2026-04-09',
title: 'Website Relaunch',
currency: 'EUR',
items: [{ type: 'title' }],
});
| Name | Type | Required | Description |
|---|---|---|---|
status | created | draft | No | Initial invoice status. When omitted, the backend applies its default behavior. Set to draft to create a draft invoice that is not yet issued and can be edited further. |
customer_id | number | Yes | Customer company ID. |
offer_id | number | No | Optional source offer ID. |
project_id | number | No | Optional project ID. |
category | default | partial | final | No | Invoice category. When omitted, defaults to default. - default: Regular invoice. - partial: Partial invoice (Abschlagsrechnung). Cannot be combined with a discount. - final: Final invoice (Schlussrechnung). |
currency | string | Yes | Currency code. |
identifier | string | No | Optional custom invoice number. Only applied when the invoice number range is set to manual numbering; then it is required and must be unique within the account. Ignored with automatic numbering and for drafts. |
title | string | Yes | Invoice title. |
date | string | Yes | Invoice date. |
due_date | string | Yes | Due date. |
service_period_from | string | No | Service period start. Use together with service_period_to. |
service_period_to | string | No | Service period end. Use together with service_period_from. |
salutation | string | No | Salutation text. Supports template variables such as {salutation}, {recipient}, {company_name}, {date}, {due_date}, and more. |
footer | string | No | Footer text. Supports template variables such as {identifier}, {gross_total}, {net_total}, {user}, {me}, and more. |
recipient_address | string | Yes | Recipient address. |
change_address | invoice | project | customer | No | Replace recipient address from selected source. |
discount | number | No | Discount value. |
tax | number | No | Deprecated. VAT/tax percentage. Use vat_code_id instead. When vat_code_id is provided, this field is ignored. |
vat_code_id | number | No | VAT code ID for this invoice. Takes precedence over the deprecated tax field. Available VAT codes can be fetched via GET /api/v1/vat_code_sales. |
contact_id | number | No | External contact person ID. |
internal_contact_id | number | No | Internal contact user ID. |
cash_discount | number | No | Cash discount percentage. |
cash_discount_days | number | No | Cash discount validity in days. |
print_detail_columns | boolean | No | Include detailed columns in print layouts. |
payment_means | not_defined | credit_transfer | No | Payment means for this invoice. When omitted, derived from the customer’s e-invoice configuration (credit_transfer for e-invoice customers whose payment means default is bank transfer, otherwise not_defined). Must be credit_transfer when payment_account_id is provided; payment_account_id must be omitted otherwise. |
payment_account_id | number | null | No | Payment account receiving the payment. When omitted, derived from the customer’s default payment account or the account’s default incoming payment account (for e-invoice customers with credit_transfer). Only allowed together with payment_means=credit_transfer. |
tags | string[] | No | Invoice tags. |
custom_properties | object | No | Custom field values keyed by custom field name. |
letter_paper_id | number | null | No | Letter paper ID to use for this invoice. When omitted, the account’s default invoice letter paper is used. If without_letter_paper is set to true, this field is ignored. Available letter papers can be fetched via GET /api/v1/letter_papers. |
without_letter_paper | boolean | No | When set to true, creates the invoice without letter paper (white). This takes precedence over letter_paper_id. |
items | object[] | Yes | Invoice line items. |
custom_properties full type
custom_properties full type
{
}
items full type
items full type
{
id?: number,
type: title | description | item | subtotal | page-break | separator,
title?: string,
description?: string,
quantity?: number,
unit?: string,
unit_price?: number,
net_total?: number,
part?: boolean,
subtotal_type?: part_total | sub_total,
additional?: boolean,
optional?: boolean,
revenue_category_id?: number,
activity_ids?: number[],
expense_ids?: number[]
}[]
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Internal invoice ID. |
customer_id | number | null | No | Customer company ID. |
project_id | number | null | null | No | Linked project ID. |
offer_id | number | null | null | No | Linked offer ID. |
identifier | string | null | null | No | Human-readable invoice number. |
date | string | null | No | Invoice date. |
due_date | string | null | null | No | Due date. |
service_period | string | null | null | No | Human-readable service period. |
service_period_from | string | null | null | No | Service period start date. |
service_period_to | string | null | null | No | Service period end date. |
status | string | null | No | Public API status. |
reversed | boolean | null | null | No | Whether this invoice has been reversed. |
reversal_invoice_id | number | null | null | No | Id of the reversal invoice, if any. |
reversal | boolean | null | null | No | Whether this invoice itself is a reversal invoice. |
reversed_invoice_id | number | null | null | No | Id of the invoice that was reversed by this one. |
title | string | null | No | Invoice title/subject. |
recipient_address | string | null | null | No | Recipient address printed on the invoice. |
currency | string | null | No | Invoice currency. |
net_total | number | null | No | Net total amount. |
tax | number | null | null | No | VAT/tax percentage. |
vat | object | null | No | Full VAT code block. |
gross_total | number | null | null | No | Gross total amount. |
discount | number | null | null | No | Discount value. |
cash_discount | number | null | null | No | Cash discount percentage. |
cash_discount_days | number | null | null | No | Number of days cash discount is valid. |
creditor_reference | string | null | null | No | Creditor reference used for payments. |
debit_number | number | null | null | No | Bookkeeping debit account number. |
credit_number | number | null | null | No | Bookkeeping credit account number. |
locked | boolean | null | null | No | Whether accounting/printing has locked modifications. |
custom_properties | object | null | No | Custom field values keyed by custom field name. |
tags | string[] | null | No | Invoice tags. |
letter_paper_id | number | null | null | No | Letter paper ID used for this invoice. Available letter papers can be fetched via GET /api/v1/letter_papers. |
without_letter_paper | boolean | null | No | Whether the invoice is set to be printed without letter paper (white). When true, letter_paper_id will be null. |
user | object | null | No | Minimal user reference used in nested resources. |
file_url | string | null | null | No | Download URL to the invoice file. URL is temporary and can change. |
debt_collection_procedure | object | null | No | A debt collection procedure linked to an invoice. |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
created_on | string | null | No | Deprecated date-only version of created_at. |
updated_on | string | null | No | Deprecated date-only version of updated_at. |
salutation | string | null | null | No | Salutation used in invoice document. |
footer | string | null | null | No | Footer text used in invoice document. |
items | object[] | null | No | Invoice line items in display order. |
payments | object[] | null | No | Payments linked to this invoice. |
reminders | object[] | null | No | Payment reminders linked to this invoice. |
internal_contact | object | null | No | Minimal user reference used in nested resources. |
activity_hours_modified | boolean | null | No | Indicates that invoiced activity hours were modified. |
vat full type
vat full type
{
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null
custom_properties full type
custom_properties full type
{
} | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
debt_collection_procedure full type
debt_collection_procedure full type
{
id?: number | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
note?: string | null | null,
created_at?: string | null,
updated_at?: string | null
} | null | null
items full type
items full type
{
id?: number | null,
type?: string | null,
title?: string | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
description?: string | null | null,
quantity?: number | null | null,
unit?: string | null | null,
unit_price?: number | null | null,
net_total?: number | null,
optional?: boolean | null,
service_type?: string | null,
expense_ids?: number[] | null | null,
subtotal_type?: string | null | null
}[] | null
payments full type
payments full type
{
id?: number | null,
date?: string | null,
paid_total?: number | null,
currency?: string | null,
created_on?: string | null,
updated_on?: string | null
}[] | null
reminders full type
reminders full type
{
id?: number | null,
date?: string | null,
due_date?: string | null,
fee?: number | null,
text?: string | null | null,
created_on?: string | null,
updated_on?: string | null
}[] | null
internal_contact full type
internal_contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
delete
invoices.delete
Delete invoice
Risk: destructive · Irreversible
await corsair.moco.api.invoices.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
reason | string | No | Human-readable deletion reason for audit/history. |
| Name | Type | Required | Description |
|---|---|---|---|
success | true | Yes | MOCO accepted the call; it answered with no body. |
get
invoices.get
Read one invoice with its line items, payments and reminders
Risk: read
await corsair.moco.api.invoices.get({ id: 777001 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Internal invoice ID. |
customer_id | number | null | No | Customer company ID. |
project_id | number | null | null | No | Linked project ID. |
offer_id | number | null | null | No | Linked offer ID. |
identifier | string | null | null | No | Human-readable invoice number. |
date | string | null | No | Invoice date. |
due_date | string | null | null | No | Due date. |
service_period | string | null | null | No | Human-readable service period. |
service_period_from | string | null | null | No | Service period start date. |
service_period_to | string | null | null | No | Service period end date. |
status | string | null | No | Public API status. |
reversed | boolean | null | null | No | Whether this invoice has been reversed. |
reversal_invoice_id | number | null | null | No | Id of the reversal invoice, if any. |
reversal | boolean | null | null | No | Whether this invoice itself is a reversal invoice. |
reversed_invoice_id | number | null | null | No | Id of the invoice that was reversed by this one. |
title | string | null | No | Invoice title/subject. |
recipient_address | string | null | null | No | Recipient address printed on the invoice. |
currency | string | null | No | Invoice currency. |
net_total | number | null | No | Net total amount. |
tax | number | null | null | No | VAT/tax percentage. |
vat | object | null | No | Full VAT code block. |
gross_total | number | null | null | No | Gross total amount. |
discount | number | null | null | No | Discount value. |
cash_discount | number | null | null | No | Cash discount percentage. |
cash_discount_days | number | null | null | No | Number of days cash discount is valid. |
creditor_reference | string | null | null | No | Creditor reference used for payments. |
debit_number | number | null | null | No | Bookkeeping debit account number. |
credit_number | number | null | null | No | Bookkeeping credit account number. |
locked | boolean | null | null | No | Whether accounting/printing has locked modifications. |
custom_properties | object | null | No | Custom field values keyed by custom field name. |
tags | string[] | null | No | Invoice tags. |
letter_paper_id | number | null | null | No | Letter paper ID used for this invoice. Available letter papers can be fetched via GET /api/v1/letter_papers. |
without_letter_paper | boolean | null | No | Whether the invoice is set to be printed without letter paper (white). When true, letter_paper_id will be null. |
user | object | null | No | Minimal user reference used in nested resources. |
file_url | string | null | null | No | Download URL to the invoice file. URL is temporary and can change. |
debt_collection_procedure | object | null | No | A debt collection procedure linked to an invoice. |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
created_on | string | null | No | Deprecated date-only version of created_at. |
updated_on | string | null | No | Deprecated date-only version of updated_at. |
salutation | string | null | null | No | Salutation used in invoice document. |
footer | string | null | null | No | Footer text used in invoice document. |
items | object[] | null | No | Invoice line items in display order. |
payments | object[] | null | No | Payments linked to this invoice. |
reminders | object[] | null | No | Payment reminders linked to this invoice. |
internal_contact | object | null | No | Minimal user reference used in nested resources. |
activity_hours_modified | boolean | null | No | Indicates that invoiced activity hours were modified. |
vat full type
vat full type
{
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null
custom_properties full type
custom_properties full type
{
} | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
debt_collection_procedure full type
debt_collection_procedure full type
{
id?: number | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
note?: string | null | null,
created_at?: string | null,
updated_at?: string | null
} | null | null
items full type
items full type
{
id?: number | null,
type?: string | null,
title?: string | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
description?: string | null | null,
quantity?: number | null | null,
unit?: string | null | null,
unit_price?: number | null | null,
net_total?: number | null,
optional?: boolean | null,
service_type?: string | null,
expense_ids?: number[] | null | null,
subtotal_type?: string | null | null
}[] | null
payments full type
payments full type
{
id?: number | null,
date?: string | null,
paid_total?: number | null,
currency?: string | null,
created_on?: string | null,
updated_on?: string | null
}[] | null
reminders full type
reminders full type
{
id?: number | null,
date?: string | null,
due_date?: string | null,
fee?: number | null,
text?: string | null | null,
created_on?: string | null,
updated_on?: string | null
}[] | null
internal_contact full type
internal_contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
getPdf
invoices.getPdf
Download invoice PDF (a PDF, saved to Files)
Risk: read
await corsair.moco.api.invoices.getPdf({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
blank | boolean | No | Return PDF without letter paper. |
letter_paper_id | number | No | Letter paper ID. Defaults to account default when omitted. |
| Name | Type | Required | Description |
|---|---|---|---|
contentBase64 | string | No | The file, base64-encoded. Missing when the file came back as text or contentOmitted is set. |
text | string | No | The file as text, in place of contentBase64, when it is a text file (CSV, JSON, Markdown, XML and the like) in UTF-8. |
contentType | string | Yes | Media type of the file, for example application/pdf. |
byteLength | number | Yes | Size of the file in bytes. |
filename | string | No | The file name, when known. |
contentOmitted | not_requested | over_limit | No | Set when the content was left out: the caller did not ask for it, or the file was over the limit. |
fileId | string | No | Where the host saved the file. Over the limit it comes in place of the content; a host that keeps every file sets it beside the content too. On Corsair it is a Files id (fil_…): pass it to another app wherever that app takes a file URL, or read a text file or PDF with files.read_text. |
getTimesheet
invoices.getTimesheet
Get invoice timesheet entries
Risk: read
await corsair.moco.api.invoices.getTimesheet({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object[]
Output full type
Output full type
{
id?: number | null,
date?: string | null,
hours?: number | null,
description?: string | null | null,
billed?: boolean | null,
billable?: boolean | null,
invoice_id?: number | null | null,
tag?: string | null | null,
remote_service?: string | null | null,
remote_id?: string | null | null,
remote_url?: string | null | null,
project?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null,
task?: {
id?: number | null,
name?: string | null,
billable?: boolean | null | null
} | null,
customer?: {
id?: number | null,
name?: string | null
} | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
deal?: {
id?: number | null,
name?: string | null
} | null | null,
hourly_rate?: number | null | null,
seconds?: number | null,
worked_seconds?: number | null,
timer_started_at?: string | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
getTimesheetPdf
invoices.getTimesheetPdf
Download invoice timesheet PDF (a PDF, saved to Files)
Risk: read
await corsair.moco.api.invoices.getTimesheetPdf({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
letter_paper_id | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
contentBase64 | string | No | The file, base64-encoded. Missing when the file came back as text or contentOmitted is set. |
text | string | No | The file as text, in place of contentBase64, when it is a text file (CSV, JSON, Markdown, XML and the like) in UTF-8. |
contentType | string | Yes | Media type of the file, for example application/pdf. |
byteLength | number | Yes | Size of the file in bytes. |
filename | string | No | The file name, when known. |
contentOmitted | not_requested | over_limit | No | Set when the content was left out: the caller did not ask for it, or the file was over the limit. |
fileId | string | No | Where the host saved the file. Over the limit it comes in place of the content; a host that keeps every file sets it beside the content too. On Corsair it is a Files id (fil_…): pass it to another app wherever that app takes a file URL, or read a text file or PDF with files.read_text. |
list
invoices.list
List invoices with status, date, client and project filters, one page at a time
Risk: read
await corsair.moco.api.invoices.list({ status: 'created', date_from: '2026-01-01' });
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
sort_by | string | No | Field and optional direction, e.g. title desc. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
status | string | No | Comma-separated API statuses: draft, created, sent, partially_paid, paid, overdue, ignored, disregarded. disregarded invoices are only returned with include_disregarded=true. |
include_disregarded | boolean | No | — |
not_booked | boolean | No | — |
date_from | string | No | Invoice date range start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
date_to | string | No | Invoice date range end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
service_period_from | string | No | Service period start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
service_period_to | string | No | Service period end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
tags | string | No | Comma-separated list of tag names. |
identifier | string | No | — |
term | string | No | — |
company_id | number | string | No | Single ID or comma-separated list. |
project_id | number | string | No | Single ID or comma-separated list. |
custom_properties | Record<string, string | boolean | string[]> | No | Filter by custom field values. Unknown custom field names return an empty result set. For MultiSelect fields, pass multiple values using custom_properties[Field][]=A&custom_properties[Field][]=B. Boolean fields should be queried with true or false. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
customer_id?: number | null,
project_id?: number | null | null,
offer_id?: number | null | null,
identifier?: string | null | null,
date?: string | null,
due_date?: string | null | null,
service_period?: string | null | null,
service_period_from?: string | null | null,
service_period_to?: string | null | null,
status?: string | null,
reversed?: boolean | null | null,
reversal_invoice_id?: number | null | null,
reversal?: boolean | null | null,
reversed_invoice_id?: number | null | null,
title?: string | null,
recipient_address?: string | null | null,
currency?: string | null,
net_total?: number | null,
tax?: number | null | null,
vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null,
gross_total?: number | null | null,
discount?: number | null | null,
cash_discount?: number | null | null,
cash_discount_days?: number | null | null,
creditor_reference?: string | null | null,
debit_number?: number | null | null,
credit_number?: number | null | null,
locked?: boolean | null | null,
custom_properties?: {
} | null,
tags?: string[] | null,
letter_paper_id?: number | null | null,
without_letter_paper?: boolean | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
file_url?: string | null | null,
debt_collection_procedure?: {
id?: number | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
note?: string | null | null,
created_at?: string | null,
updated_at?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null,
created_on?: string | null,
updated_on?: string | null
}[]
listExpenses
invoices.listExpenses
List invoice expenses
Risk: read
await corsair.moco.api.invoices.listExpenses({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object[]
Output full type
Output full type
{
id?: number | null,
date?: string | null,
title?: string | null,
description?: string | null | null,
quantity?: number | null,
unit?: string | null | null,
unit_price?: number | null,
unit_cost?: number | null,
price?: number | null,
cost?: number | null,
currency?: string | null,
budget_relevant?: boolean | null,
billable?: boolean | null,
billed?: boolean | null,
purchase_assignment_locked?: boolean | null,
cost_total_planned?: number | null,
planned_purchase_date?: string | null | null,
invoice_id?: number | null | null,
service_period?: string | null | null,
service_period_from?: string | null | null,
service_period_to?: string | null | null,
recurring_expense_id?: number | null | null,
file_url?: string | null | null,
custom_properties?: {
} | null,
company?: {
id?: number | null,
name?: string | null
} | null,
project?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null,
group?: {
id?: number | null,
title?: string | null,
budget?: number | null
} | null | null,
purchase_items?: {
id?: number | null,
title?: string | null | null,
net_total?: number | null,
currency?: string | null,
purchase_id?: number | null,
document?: {
id?: number | null,
file_url?: string | null | null
} | null | null
}[] | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
listLocked
invoices.listLocked
List locked invoices, one page at a time
Risk: read
await corsair.moco.api.invoices.listLocked({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
status | string | No | Comma-separated API statuses: draft, created, sent, partially_paid, paid, overdue, ignored, disregarded. disregarded invoices are only returned with include_disregarded=true. |
include_disregarded | boolean | No | — |
date_from | string | No | Invoice date range start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
date_to | string | No | Invoice date range end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
identifier | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
customer_id?: number | null,
project_id?: number | null | null,
offer_id?: number | null | null,
identifier?: string | null | null,
date?: string | null,
due_date?: string | null | null,
service_period?: string | null | null,
service_period_from?: string | null | null,
service_period_to?: string | null | null,
status?: string | null,
reversed?: boolean | null | null,
reversal_invoice_id?: number | null | null,
reversal?: boolean | null | null,
reversed_invoice_id?: number | null | null,
title?: string | null,
recipient_address?: string | null | null,
currency?: string | null,
net_total?: number | null,
tax?: number | null | null,
vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null,
gross_total?: number | null | null,
discount?: number | null | null,
cash_discount?: number | null | null,
cash_discount_days?: number | null | null,
creditor_reference?: string | null | null,
debit_number?: number | null | null,
credit_number?: number | null | null,
locked?: boolean | null | null,
custom_properties?: {
} | null,
tags?: string[] | null,
letter_paper_id?: number | null | null,
without_letter_paper?: boolean | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
file_url?: string | null | null,
debt_collection_procedure?: {
id?: number | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
note?: string | null | null,
created_at?: string | null,
updated_at?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null,
created_on?: string | null,
updated_on?: string | null
}[]
payments.bulkCreate
invoices.payments.bulkCreate
Create invoice payments in bulk: requires application/json request body with bulk_data list
Risk: write
await corsair.moco.api.invoices.payments.bulkCreate({
bulk_data: [{}],
});
| Name | Type | Required | Description |
|---|---|---|---|
bulk_data | object[] | Yes | — |
bulk_data full type
bulk_data full type
{
date?: string,
paid_total?: number,
currency?: string,
invoice_id?: number,
payment_account_id?: number
}[]
object[]
Output full type
Output full type
{
id?: number | null,
date?: string | null,
invoice?: {
id?: number | null,
identifier?: string | null,
title?: string | null
} | null | null,
payment_account?: {
id?: number | null,
title?: string | null,
kind?: string | null
} | null | null,
paid_total?: number | null,
paid_total_in_account_currency?: number | null,
currency?: string | null,
description?: string | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
payments.create
invoices.payments.create
Create invoice payment
Risk: write
await corsair.moco.api.invoices.payments.create({ date: '2026-04-09', paid_total: 1, invoice_id: 777001 });
| Name | Type | Required | Description |
|---|---|---|---|
date | string | Yes | — |
paid_total | number | Yes | — |
currency | string | No | — |
invoice_id | number | Yes | — |
payment_account_id | number | No | — |
partially_paid | boolean | No | — |
description | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Payment ID. |
date | string | null | No | Payment date. |
invoice | object | null | No | Linked invoice (if available). |
payment_account | object | null | No | Linked payment account (if available). |
paid_total | number | null | No | Amount paid. |
paid_total_in_account_currency | number | null | No | Amount paid converted to the account currency. |
currency | string | null | No | Currency of paid amount. |
description | string | null | null | No | Optional payment description. |
created_at | string | null | No | Creation timestamp. |
updated_at | string | null | No | Last update timestamp. |
invoice full type
invoice full type
{
id?: number | null,
identifier?: string | null,
title?: string | null
} | null | null
payment_account full type
payment_account full type
{
id?: number | null,
title?: string | null,
kind?: string | null
} | null | null
payments.delete
invoices.payments.delete
Delete invoice payment
Risk: destructive · Irreversible
await corsair.moco.api.invoices.payments.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
date?: string | null,
invoice?: {
id?: number | null,
identifier?: string | null,
title?: string | null
} | null | null,
payment_account?: {
id?: number | null,
title?: string | null,
kind?: string | null
} | null | null,
paid_total?: number | null,
paid_total_in_account_currency?: number | null,
currency?: string | null,
description?: string | null | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
payments.get
invoices.payments.get
Get invoice payment
Risk: read
await corsair.moco.api.invoices.payments.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Payment ID. |
date | string | null | No | Payment date. |
invoice | object | null | No | Linked invoice (if available). |
payment_account | object | null | No | Linked payment account (if available). |
paid_total | number | null | No | Amount paid. |
paid_total_in_account_currency | number | null | No | Amount paid converted to the account currency. |
currency | string | null | No | Currency of paid amount. |
description | string | null | null | No | Optional payment description. |
created_at | string | null | No | Creation timestamp. |
updated_at | string | null | No | Last update timestamp. |
invoice full type
invoice full type
{
id?: number | null,
identifier?: string | null,
title?: string | null
} | null | null
payment_account full type
payment_account full type
{
id?: number | null,
title?: string | null,
kind?: string | null
} | null | null
payments.list
invoices.payments.list
List invoice payments, one page at a time
Risk: read
await corsair.moco.api.invoices.payments.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
invoice_id | number | string | No | Single ID or comma-separated list. |
date_from | string | No | Payment date range start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
date_to | string | No | Payment date range end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
date?: string | null,
invoice?: {
id?: number | null,
identifier?: string | null,
title?: string | null
} | null | null,
payment_account?: {
id?: number | null,
title?: string | null,
kind?: string | null
} | null | null,
paid_total?: number | null,
paid_total_in_account_currency?: number | null,
currency?: string | null,
description?: string | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
payments.update
invoices.payments.update
Update invoice payment
Risk: write
await corsair.moco.api.invoices.payments.update({
id: 1234567,
date: '2026-04-09',
paid_total: 1,
invoice_id: 777001,
});
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
date | string | Yes | — |
paid_total | number | Yes | — |
currency | string | No | — |
invoice_id | number | Yes | — |
payment_account_id | number | No | — |
partially_paid | boolean | No | — |
description | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Payment ID. |
date | string | null | No | Payment date. |
invoice | object | null | No | Linked invoice (if available). |
payment_account | object | null | No | Linked payment account (if available). |
paid_total | number | null | No | Amount paid. |
paid_total_in_account_currency | number | null | No | Amount paid converted to the account currency. |
currency | string | null | No | Currency of paid amount. |
description | string | null | null | No | Optional payment description. |
created_at | string | null | No | Creation timestamp. |
updated_at | string | null | No | Last update timestamp. |
invoice full type
invoice full type
{
id?: number | null,
identifier?: string | null,
title?: string | null
} | null | null
payment_account full type
payment_account full type
{
id?: number | null,
title?: string | null,
kind?: string | null
} | null | null
sendEmail
invoices.sendEmail
Email an invoice to the recipients given (sends real email from MOCO)
Risk: destructive · Irreversible
await corsair.moco.api.invoices.sendEmail({
id: 777001,
emails_to: 'billing@example.com',
subject: 'Your invoice',
text: 'Please find the invoice attached.',
});
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
emails_to | string | No | To recipients as semicolon-separated list. |
emails_cc | string | No | CC recipients as semicolon-separated list. |
emails_bcc | string | No | BCC recipients as semicolon-separated list. |
subject | string | Yes | Email subject. |
text | string | Yes | Email body text. |
letter_paper_id | number | No | Optional letter paper ID used for generated PDF. |
| Name | Type | Required | Description |
|---|---|---|---|
emails_to | string | null | null | No | Final to recipients (semicolon-separated). |
emails_cc | string | null | null | No | Final cc recipients (semicolon-separated). |
emails_bcc | string | null | null | No | Final bcc recipients (semicolon-separated). |
subject | string | null | No | Email subject. |
text | string | null | No | Email body text. |
updateStatus
invoices.updateStatus
Move an invoice to created, sent, overdue or ignored; locked invoices refuse the change
Risk: write
await corsair.moco.api.invoices.updateStatus({ id: 777001, status: 'sent' });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
status | created | sent | overdue | ignored | Yes | Target API status. |
| Name | Type | Required | Description |
|---|---|---|---|
success | true | Yes | MOCO accepted the call; it answered with no body. |
Letter Papers
list
letterPapers.list
List letter papers
Risk: read
await corsair.moco.api.letterPapers.list({});
object[]
Output full type
Output full type
{
id?: number | null,
name?: string | null,
active?: boolean | null,
template?: string | null | null,
file?: string | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
Offer Confirmations
create
offerConfirmations.create
Create offer confirmation
Risk: write
await corsair.moco.api.offerConfirmations.create({ offer_id: 456001 });
| Name | Type | Required | Description |
|---|---|---|---|
impersonate_user_id | number | No | Execute request on behalf of another user if the authenticated user has permission to Staff. Some resources, such as Activities and User Presences, can be created for other users only if this header is used. |
offer_id | number | Yes | ID of the offer this confirmation belongs to. |
title | string | No | Confirmation title. Defaults to “Auftragsbestätigung – {offer title}” if omitted. |
date | string | No | Confirmation date. Defaults to current date if omitted. |
salutation_raw | string | null | No | Salutation text (raw HTML). Defaults to account default if omitted. |
footer_raw | string | null | No | Footer text (raw HTML). Defaults to account default if omitted. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Internal offer confirmation ID. |
date | string | null | No | Confirmation date. |
title | string | null | No | Confirmation title. |
salutation_raw | string | null | No | Salutation text (raw HTML). |
footer_raw | string | null | No | Footer text (raw HTML). |
file_url | string | null | No | Full URL to the generated PDF document via the API v1 endpoint. |
user | object | null | No | Minimal user reference used in nested resources. |
offer | object | null | No | Parent offer. |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
offer full type
offer full type
{
id?: number | null,
identifier?: string | null | null,
title?: string | null
} | null
delete
offerConfirmations.delete
Delete offer confirmation
Risk: destructive · Irreversible
await corsair.moco.api.offerConfirmations.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
impersonate_user_id | number | No | Execute request on behalf of another user if the authenticated user has permission to Staff. Some resources, such as Activities and User Presences, can be created for other users only if this header is used. |
object
Output full type
Output full type
{
id?: number | null,
date?: string | null,
title?: string | null,
salutation_raw?: string | null,
footer_raw?: string | null,
file_url?: string | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
offer?: {
id?: number | null,
identifier?: string | null | null,
title?: string | null
} | null
} | {
success: true
}
get
offerConfirmations.get
Get offer confirmation
Risk: read
await corsair.moco.api.offerConfirmations.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Internal offer confirmation ID. |
date | string | null | No | Confirmation date. |
title | string | null | No | Confirmation title. |
salutation_raw | string | null | No | Salutation text (raw HTML). |
footer_raw | string | null | No | Footer text (raw HTML). |
file_url | string | null | No | Full URL to the generated PDF document via the API v1 endpoint. |
user | object | null | No | Minimal user reference used in nested resources. |
offer | object | null | No | Parent offer. |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
offer full type
offer full type
{
id?: number | null,
identifier?: string | null | null,
title?: string | null
} | null
getPdf
offerConfirmations.getPdf
Download offer confirmation PDF (a PDF, saved to Files)
Risk: read
await corsair.moco.api.offerConfirmations.getPdf({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
letter_paper_id | number | No | Letter paper ID. Defaults to account default when omitted. |
| Name | Type | Required | Description |
|---|---|---|---|
contentBase64 | string | No | The file, base64-encoded. Missing when the file came back as text or contentOmitted is set. |
text | string | No | The file as text, in place of contentBase64, when it is a text file (CSV, JSON, Markdown, XML and the like) in UTF-8. |
contentType | string | Yes | Media type of the file, for example application/pdf. |
byteLength | number | Yes | Size of the file in bytes. |
filename | string | No | The file name, when known. |
contentOmitted | not_requested | over_limit | No | Set when the content was left out: the caller did not ask for it, or the file was over the limit. |
fileId | string | No | Where the host saved the file. Over the limit it comes in place of the content; a host that keeps every file sets it beside the content too. On Corsair it is a Files id (fil_…): pass it to another app wherever that app takes a file URL, or read a text file or PDF with files.read_text. |
list
offerConfirmations.list
List offer confirmations, one page at a time
Risk: read
await corsair.moco.api.offerConfirmations.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
offer_id | number | string | No | Single ID or comma-separated list of offer IDs. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
date?: string | null,
title?: string | null,
salutation_raw?: string | null,
footer_raw?: string | null,
file_url?: string | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
offer?: {
id?: number | null,
identifier?: string | null | null,
title?: string | null
} | null
}[]
update
offerConfirmations.update
Update offer confirmation
Risk: write
await corsair.moco.api.offerConfirmations.update({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
impersonate_user_id | number | No | Execute request on behalf of another user if the authenticated user has permission to Staff. Some resources, such as Activities and User Presences, can be created for other users only if this header is used. |
title | string | No | Confirmation title. |
date | string | No | Confirmation date. Keeps the existing date if omitted. |
salutation_raw | string | null | No | Salutation text (raw HTML). |
footer_raw | string | null | No | Footer text (raw HTML). |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Internal offer confirmation ID. |
date | string | null | No | Confirmation date. |
title | string | null | No | Confirmation title. |
salutation_raw | string | null | No | Salutation text (raw HTML). |
footer_raw | string | null | No | Footer text (raw HTML). |
file_url | string | null | No | Full URL to the generated PDF document via the API v1 endpoint. |
user | object | null | No | Minimal user reference used in nested resources. |
offer | object | null | No | Parent offer. |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
offer full type
offer full type
{
id?: number | null,
identifier?: string | null | null,
title?: string | null
} | null
Offers
assign
offers.assign
Assign offer to company/project/deal: if project_id is set, project company overrides company_id
Risk: write
await corsair.moco.api.offers.assign({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
company_id | number | No | — |
deal_id | number | No | — |
project_id | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
invoice_id | number | null | null | No | — |
identifier | string | null | No | — |
date | string | null | No | — |
due_date | string | null | No | — |
title | string | null | No | — |
recipient_address | string | null | null | No | — |
currency | string | null | No | — |
net_total | number | null | No | — |
tax | number | null | No | — |
vat | object | null | No | — |
gross_total | number | null | No | — |
discount | number | null | No | — |
status | string | null | No | — |
tags | string[] | null | No | — |
custom_properties | object | null | No | — |
company | object | null | No | — |
project | object | null | No | — |
deal | object | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
offer_confirmation | object | null | No | — |
customer_approval | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
created_on | string | null | No | — |
updated_on | string | null | No | — |
file_url | string | null | No | Full URL to the generated PDF document via the API v1 endpoint. |
salutation | string | null | null | No | — |
footer | string | null | null | No | — |
items | object[] | null | No | — |
internal_contact | object | null | No | Minimal user reference used in nested resources. |
vat full type
vat full type
{
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null
custom_properties full type
custom_properties full type
{
} | null
company full type
company full type
{
id?: number | null,
name?: string | null
} | null | null
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null
} | null | null
deal full type
deal full type
{
id?: number | null,
name?: string | null
} | null | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
offer_confirmation full type
offer_confirmation full type
{
id?: number | null,
title?: string | null,
date?: string | null,
created_at?: string | null,
updated_at?: string | null
} | null | null
customer_approval full type
customer_approval full type
{
id?: number | null,
active?: boolean | null,
url?: string | null | null,
customer_full_name?: string | null | null,
customer_email?: string | null | null,
signed_at?: string | null | null
} | null | null
items full type
items full type
{
id?: number | null,
type?: string | null,
title?: string | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
description?: string | null | null,
quantity?: number | null | null,
unit?: string | null | null,
unit_price?: number | null | null,
net_total?: number | null,
unit_cost?: number | null | null,
optional?: boolean | null,
service_type?: string | null,
subtotal_type?: string | null | null
}[] | null
internal_contact full type
internal_contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
attachments.create
offers.attachments.create
Create offer attachment
Risk: write
await corsair.moco.api.offers.attachments.create({
offer_id: 456001,
attachment: { filename: 'receipt.pdf', base64: 'JVBERi0xLjQKJSVFT0YK' },
});
| Name | Type | Required | Description |
|---|---|---|---|
offer_id | number | Yes | — |
attachment | object | Yes | — |
attachment full type
attachment full type
{
filename: string,
base64: string
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Attachment ID. |
title | string | null | No | Display name of attachment. |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
attachments.delete
offers.attachments.delete
Delete offer attachment
Risk: destructive · Irreversible
await corsair.moco.api.offers.attachments.delete({ offer_id: 456001, id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
offer_id | number | Yes | — |
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
title?: string | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
attachments.list
offers.attachments.list
List offer attachments
Risk: read
await corsair.moco.api.offers.attachments.list({ offer_id: 456001 });
| Name | Type | Required | Description |
|---|---|---|---|
offer_id | number | Yes | — |
object[]
Output full type
Output full type
{
id?: number | null,
title?: string | null,
created_at?: string | null,
updated_at?: string | null
}[]
create
offers.create
Create offer
Risk: write
await corsair.moco.api.offers.create({
vat_code_id: 1,
items: [{ type: 'title' }],
});
| Name | Type | Required | Description |
|---|---|---|---|
company_id | number | No | — |
deal_id | number | No | — |
project_id | number | No | — |
identifier | string | No | — |
title | string | No | — |
date | string | No | — |
due_date | string | No | — |
salutation | string | No | — |
footer | string | No | — |
recipient_address | string | No | — |
change_address | offer | customer | No | — |
discount | number | No | — |
tax | number | No | Deprecated: use vat_code_id instead. Must match an active sale VAT code tax in the account. |
vat_code_id | number | Yes | ID of an active sale VAT code in the account. |
contact_id | number | No | — |
internal_contact_id | number | No | — |
table_header_visible | boolean | No | — |
print_detail_columns | boolean | No | — |
totals_section_visible | boolean | No | — |
currency | string | No | — |
tags | string[] | No | — |
custom_properties | object | No | — |
items | object[] | Yes | — |
custom_properties full type
custom_properties full type
{
}
items full type
items full type
{
id?: number,
type: title | description | item | subtotal | page-break | separator,
title?: string,
description?: string,
quantity?: number,
unit?: string,
unit_price?: number,
net_total?: number,
part?: boolean,
subtotal_type?: part_total | sub_total,
additional?: boolean,
optional?: boolean,
revenue_category_id?: number,
activity_ids?: number[],
expense_ids?: number[]
}[]
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
invoice_id | number | null | null | No | — |
identifier | string | null | No | — |
date | string | null | No | — |
due_date | string | null | No | — |
title | string | null | No | — |
recipient_address | string | null | null | No | — |
currency | string | null | No | — |
net_total | number | null | No | — |
tax | number | null | No | — |
vat | object | null | No | — |
gross_total | number | null | No | — |
discount | number | null | No | — |
status | string | null | No | — |
tags | string[] | null | No | — |
custom_properties | object | null | No | — |
company | object | null | No | — |
project | object | null | No | — |
deal | object | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
offer_confirmation | object | null | No | — |
customer_approval | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
created_on | string | null | No | — |
updated_on | string | null | No | — |
file_url | string | null | No | Full URL to the generated PDF document via the API v1 endpoint. |
salutation | string | null | null | No | — |
footer | string | null | null | No | — |
items | object[] | null | No | — |
internal_contact | object | null | No | Minimal user reference used in nested resources. |
vat full type
vat full type
{
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null
custom_properties full type
custom_properties full type
{
} | null
company full type
company full type
{
id?: number | null,
name?: string | null
} | null | null
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null
} | null | null
deal full type
deal full type
{
id?: number | null,
name?: string | null
} | null | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
offer_confirmation full type
offer_confirmation full type
{
id?: number | null,
title?: string | null,
date?: string | null,
created_at?: string | null,
updated_at?: string | null
} | null | null
customer_approval full type
customer_approval full type
{
id?: number | null,
active?: boolean | null,
url?: string | null | null,
customer_full_name?: string | null | null,
customer_email?: string | null | null,
signed_at?: string | null | null
} | null | null
items full type
items full type
{
id?: number | null,
type?: string | null,
title?: string | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
description?: string | null | null,
quantity?: number | null | null,
unit?: string | null | null,
unit_price?: number | null | null,
net_total?: number | null,
unit_cost?: number | null | null,
optional?: boolean | null,
service_type?: string | null,
subtotal_type?: string | null | null
}[] | null
internal_contact full type
internal_contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
customerApproval.activate
offers.customerApproval.activate
Activate customer approval
Risk: write
await corsair.moco.api.offers.customerApproval.activate({ offer_id: 456001 });
| Name | Type | Required | Description |
|---|---|---|---|
offer_id | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
approval_url | string | null | No | — |
offer_document_url | string | null | No | — |
active | boolean | null | No | — |
customer_full_name | string | null | null | No | — |
customer_email | string | null | null | No | — |
signature_url | string | null | null | No | — |
signed_at | string | null | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
customerApproval.deactivate
offers.customerApproval.deactivate
Deactivate customer approval
Risk: write
await corsair.moco.api.offers.customerApproval.deactivate({ offer_id: 456001 });
| Name | Type | Required | Description |
|---|---|---|---|
offer_id | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
approval_url | string | null | No | — |
offer_document_url | string | null | No | — |
active | boolean | null | No | — |
customer_full_name | string | null | null | No | — |
customer_email | string | null | null | No | — |
signature_url | string | null | null | No | — |
signed_at | string | null | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
customerApproval.get
offers.customerApproval.get
Get customer approval state
Risk: read
await corsair.moco.api.offers.customerApproval.get({ offer_id: 456001 });
| Name | Type | Required | Description |
|---|---|---|---|
offer_id | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
approval_url | string | null | No | — |
offer_document_url | string | null | No | — |
active | boolean | null | No | — |
customer_full_name | string | null | null | No | — |
customer_email | string | null | null | No | — |
signature_url | string | null | null | No | — |
signed_at | string | null | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
delete
offers.delete
Delete offer
Risk: destructive · Irreversible
await corsair.moco.api.offers.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
invoice_id?: number | null | null,
identifier?: string | null,
date?: string | null,
due_date?: string | null,
title?: string | null,
recipient_address?: string | null | null,
currency?: string | null,
net_total?: number | null,
tax?: number | null,
vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null,
gross_total?: number | null,
discount?: number | null,
status?: string | null,
tags?: string[] | null,
custom_properties?: {
} | null,
company?: {
id?: number | null,
name?: string | null
} | null | null,
project?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null
} | null | null,
deal?: {
id?: number | null,
name?: string | null
} | null | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
offer_confirmation?: {
id?: number | null,
title?: string | null,
date?: string | null,
created_at?: string | null,
updated_at?: string | null
} | null | null,
customer_approval?: {
id?: number | null,
active?: boolean | null,
url?: string | null | null,
customer_full_name?: string | null | null,
customer_email?: string | null | null,
signed_at?: string | null | null
} | null | null,
created_at?: string | null,
updated_at?: string | null,
created_on?: string | null,
updated_on?: string | null,
file_url?: string | null,
salutation?: string | null | null,
footer?: string | null | null,
items?: {
id?: number | null,
type?: string | null,
title?: string | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
description?: string | null | null,
quantity?: number | null | null,
unit?: string | null | null,
unit_price?: number | null | null,
net_total?: number | null,
unit_cost?: number | null | null,
optional?: boolean | null,
service_type?: string | null,
subtotal_type?: string | null | null
}[] | null,
internal_contact?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
} | {
success: true
}
get
offers.get
Get offer
Risk: read
await corsair.moco.api.offers.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
invoice_id | number | null | null | No | — |
identifier | string | null | No | — |
date | string | null | No | — |
due_date | string | null | No | — |
title | string | null | No | — |
recipient_address | string | null | null | No | — |
currency | string | null | No | — |
net_total | number | null | No | — |
tax | number | null | No | — |
vat | object | null | No | — |
gross_total | number | null | No | — |
discount | number | null | No | — |
status | string | null | No | — |
tags | string[] | null | No | — |
custom_properties | object | null | No | — |
company | object | null | No | — |
project | object | null | No | — |
deal | object | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
offer_confirmation | object | null | No | — |
customer_approval | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
created_on | string | null | No | — |
updated_on | string | null | No | — |
file_url | string | null | No | Full URL to the generated PDF document via the API v1 endpoint. |
salutation | string | null | null | No | — |
footer | string | null | null | No | — |
items | object[] | null | No | — |
internal_contact | object | null | No | Minimal user reference used in nested resources. |
vat full type
vat full type
{
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null
custom_properties full type
custom_properties full type
{
} | null
company full type
company full type
{
id?: number | null,
name?: string | null
} | null | null
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null
} | null | null
deal full type
deal full type
{
id?: number | null,
name?: string | null
} | null | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
offer_confirmation full type
offer_confirmation full type
{
id?: number | null,
title?: string | null,
date?: string | null,
created_at?: string | null,
updated_at?: string | null
} | null | null
customer_approval full type
customer_approval full type
{
id?: number | null,
active?: boolean | null,
url?: string | null | null,
customer_full_name?: string | null | null,
customer_email?: string | null | null,
signed_at?: string | null | null
} | null | null
items full type
items full type
{
id?: number | null,
type?: string | null,
title?: string | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
description?: string | null | null,
quantity?: number | null | null,
unit?: string | null | null,
unit_price?: number | null | null,
net_total?: number | null,
unit_cost?: number | null | null,
optional?: boolean | null,
service_type?: string | null,
subtotal_type?: string | null | null
}[] | null
internal_contact full type
internal_contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
getPdf
offers.getPdf
Download offer PDF (a PDF, saved to Files)
Risk: read
await corsair.moco.api.offers.getPdf({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
letter_paper_id | number | No | Letter paper ID. Defaults to account default when omitted. |
| Name | Type | Required | Description |
|---|---|---|---|
contentBase64 | string | No | The file, base64-encoded. Missing when the file came back as text or contentOmitted is set. |
text | string | No | The file as text, in place of contentBase64, when it is a text file (CSV, JSON, Markdown, XML and the like) in UTF-8. |
contentType | string | Yes | Media type of the file, for example application/pdf. |
byteLength | number | Yes | Size of the file in bytes. |
filename | string | No | The file name, when known. |
contentOmitted | not_requested | over_limit | No | Set when the content was left out: the caller did not ask for it, or the file was over the limit. |
fileId | string | No | Where the host saved the file. Over the limit it comes in place of the content; a host that keeps every file sets it beside the content too. On Corsair it is a Files id (fil_…): pass it to another app wherever that app takes a file URL, or read a text file or PDF with files.read_text. |
list
offers.list
List offers, one page at a time
Risk: read
await corsair.moco.api.offers.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
sort_by | string | No | Field and optional direction, e.g. title desc. |
status | created | sent | accepted | partially_billed | billed | archived | No | — |
from | string | No | Offer date range start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
to | string | No | Offer date range end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
identifier | string | No | — |
deal_id | number | string | No | Single ID or comma-separated list. |
project_id | number | string | No | Single ID or comma-separated list. |
company_id | number | string | No | Single ID or comma-separated list. |
tags | string | No | Comma-separated list of tag names. |
custom_properties | Record<string, string | boolean | string[]> | No | Filter by custom field values. Unknown custom field names return an empty result set. For MultiSelect fields, pass multiple values using custom_properties[Field][]=A&custom_properties[Field][]=B. Boolean fields should be queried with true or false. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
invoice_id?: number | null | null,
identifier?: string | null,
date?: string | null,
due_date?: string | null,
title?: string | null,
recipient_address?: string | null | null,
currency?: string | null,
net_total?: number | null,
tax?: number | null,
vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null,
gross_total?: number | null,
discount?: number | null,
status?: string | null,
tags?: string[] | null,
custom_properties?: {
} | null,
company?: {
id?: number | null,
name?: string | null
} | null | null,
project?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null
} | null | null,
deal?: {
id?: number | null,
name?: string | null
} | null | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
offer_confirmation?: {
id?: number | null,
title?: string | null,
date?: string | null,
created_at?: string | null,
updated_at?: string | null
} | null | null,
customer_approval?: {
id?: number | null,
active?: boolean | null,
url?: string | null | null,
customer_full_name?: string | null | null,
customer_email?: string | null | null,
signed_at?: string | null | null
} | null | null,
created_at?: string | null,
updated_at?: string | null,
created_on?: string | null,
updated_on?: string | null,
file_url?: string | null
}[]
sendEmail
offers.sendEmail
Email an offer to the recipients given (sends real email from MOCO)
Risk: destructive · Irreversible
await corsair.moco.api.offers.sendEmail({ id: 1234567, subject: 'Your invoice', text: 'Please find the invoice attached.' });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
emails_to | string | No | Semicolon-separated email list. |
emails_cc | string | No | Semicolon-separated email list. |
emails_bcc | string | No | Semicolon-separated email list. |
subject | string | Yes | — |
text | string | Yes | — |
letter_paper_id | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
emails_to | string | null | null | No | — |
emails_cc | string | null | null | No | — |
emails_bcc | string | null | null | No | — |
subject | string | null | No | — |
text | string | null | No | — |
update
offers.update
Update offer
Risk: write
await corsair.moco.api.offers.update({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
identifier | string | No | — |
title | string | No | — |
date | string | No | — |
due_date | string | No | — |
salutation | string | No | — |
footer | string | No | — |
recipient_address | string | No | — |
change_address | offer | customer | No | — |
discount | number | No | — |
vat_code_id | number | No | ID of an active sale VAT code in the account. |
contact_id | number | No | — |
internal_contact_id | number | No | — |
table_header_visible | boolean | No | — |
print_detail_columns | boolean | No | — |
totals_section_visible | boolean | No | — |
tags | string[] | No | — |
custom_properties | object | No | — |
items | object[] | No | — |
custom_properties full type
custom_properties full type
{
}
items full type
items full type
{
id?: number,
type: title | description | item | subtotal | page-break | separator,
title?: string,
description?: string,
quantity?: number,
unit?: string,
unit_price?: number,
net_total?: number,
part?: boolean,
subtotal_type?: part_total | sub_total,
additional?: boolean,
optional?: boolean,
revenue_category_id?: number,
activity_ids?: number[],
expense_ids?: number[]
}[]
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
invoice_id | number | null | null | No | — |
identifier | string | null | No | — |
date | string | null | No | — |
due_date | string | null | No | — |
title | string | null | No | — |
recipient_address | string | null | null | No | — |
currency | string | null | No | — |
net_total | number | null | No | — |
tax | number | null | No | — |
vat | object | null | No | — |
gross_total | number | null | No | — |
discount | number | null | No | — |
status | string | null | No | — |
tags | string[] | null | No | — |
custom_properties | object | null | No | — |
company | object | null | No | — |
project | object | null | No | — |
deal | object | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
offer_confirmation | object | null | No | — |
customer_approval | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
created_on | string | null | No | — |
updated_on | string | null | No | — |
file_url | string | null | No | Full URL to the generated PDF document via the API v1 endpoint. |
salutation | string | null | null | No | — |
footer | string | null | null | No | — |
items | object[] | null | No | — |
internal_contact | object | null | No | Minimal user reference used in nested resources. |
vat full type
vat full type
{
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null
custom_properties full type
custom_properties full type
{
} | null
company full type
company full type
{
id?: number | null,
name?: string | null
} | null | null
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null
} | null | null
deal full type
deal full type
{
id?: number | null,
name?: string | null
} | null | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
offer_confirmation full type
offer_confirmation full type
{
id?: number | null,
title?: string | null,
date?: string | null,
created_at?: string | null,
updated_at?: string | null
} | null | null
customer_approval full type
customer_approval full type
{
id?: number | null,
active?: boolean | null,
url?: string | null | null,
customer_full_name?: string | null | null,
customer_email?: string | null | null,
signed_at?: string | null | null
} | null | null
items full type
items full type
{
id?: number | null,
type?: string | null,
title?: string | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
description?: string | null | null,
quantity?: number | null | null,
unit?: string | null | null,
unit_price?: number | null | null,
net_total?: number | null,
unit_cost?: number | null | null,
optional?: boolean | null,
service_type?: string | null,
subtotal_type?: string | null | null
}[] | null
internal_contact full type
internal_contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
updateStatus
offers.updateStatus
Update offer status: transitions the offer state; successful updates return no body
Risk: write
await corsair.moco.api.offers.updateStatus({ id: 1234567, status: 'sent' });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
status | created | sent | accepted | partially_billed | billed | archived | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
success | true | Yes | MOCO accepted the call; it answered with no body. |
Planned Purchases
create
plannedPurchases.create
Create planned purchase: create a new planned purchase
Risk: write
await corsair.moco.api.plannedPurchases.create({
date: '2026-04-09',
title: 'Website Relaunch',
net_total: 1,
currency: 'EUR',
user_id: 933590696,
frequency: 'once',
});
| Name | Type | Required | Description |
|---|---|---|---|
impersonate_user_id | number | No | Execute request on behalf of another user if the authenticated user has permission to Staff. Some resources, such as Activities and User Presences, can be created for other users only if this header is used. |
date | string | Yes | — |
finish_date | string | No | — |
frequency | once | weekly | biweekly | monthly | quarterly | biannual | annual | Yes | — |
title | string | Yes | — |
info | string | null | No | — |
net_total | number | Yes | — |
currency | string | Yes | — |
company_id | number | null | No | — |
purchase_budget_id | number | null | No | — |
user_id | number | Yes | — |
custom_properties | object | null | No | — |
custom_properties full type
custom_properties full type
{
} | null
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Internal planned purchase ID. |
date | string | null | No | Start date of the planned purchase. |
active | boolean | null | No | Whether the planned purchase is active. |
finish_date | string | null | null | No | End date of the planned purchase (for recurring planned purchases). |
frequency | string | null | No | Recurrence frequency. |
variant | string | null | No | Planned purchase variant type (once for one-time planned purchases, recurring for recurring planned purchases). |
title | string | null | No | Title of the planned purchase. |
info | string | null | null | No | Additional information. |
net_total | number | null | No | Net total amount in the planned purchase currency. |
net_total_in_account_currency | number | null | No | Net total in account currency. |
exhausted | number | null | No | Amount already spent from planned purchase. |
exhausted_in_account_currency | number | null | No | Amount spent in account currency. |
currency | string | null | No | Currency code (ISO 4217). |
company | object | null | No | — |
purchase_budget | object | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
purchases | object[] | null | No | Linked purchases created from this planned purchase. |
custom_properties | object | null | No | Custom property values for the planned purchase. |
create_on_recur | boolean | null | No | Whether to automatically create purchases on recurrence. |
recur_next_on | string | null | null | No | Next scheduled recurrence date. |
updated_at | string | null | No | — |
created_at | string | null | No | — |
company full type
company full type
{
id?: number | null,
name?: string | null
} | null | null
purchase_budget full type
purchase_budget full type
{
id?: number | null,
title?: string | null
} | null | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
purchases full type
purchases full type
{
id?: number | null,
number?: string | null | null,
date?: string | null,
net_total?: number | null,
currency?: string | null,
status?: string | null
}[] | null
custom_properties full type
custom_properties full type
{
} | null | null
delete
plannedPurchases.delete
Delete planned purchase
Risk: destructive · Irreversible
await corsair.moco.api.plannedPurchases.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
impersonate_user_id | number | No | Execute request on behalf of another user if the authenticated user has permission to Staff. Some resources, such as Activities and User Presences, can be created for other users only if this header is used. |
object
Output full type
Output full type
{
id?: number | null,
date?: string | null,
active?: boolean | null,
finish_date?: string | null | null,
frequency?: string | null,
variant?: string | null,
title?: string | null,
info?: string | null | null,
net_total?: number | null,
net_total_in_account_currency?: number | null,
exhausted?: number | null,
exhausted_in_account_currency?: number | null,
currency?: string | null,
company?: {
id?: number | null,
name?: string | null
} | null | null,
purchase_budget?: {
id?: number | null,
title?: string | null
} | null | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
purchases?: {
id?: number | null,
number?: string | null | null,
date?: string | null,
net_total?: number | null,
currency?: string | null,
status?: string | null
}[] | null,
custom_properties?: {
} | null | null,
create_on_recur?: boolean | null,
recur_next_on?: string | null | null,
updated_at?: string | null,
created_at?: string | null
} | {
success: true
}
get
plannedPurchases.get
Get planned purchase
Risk: read
await corsair.moco.api.plannedPurchases.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Internal planned purchase ID. |
date | string | null | No | Start date of the planned purchase. |
active | boolean | null | No | Whether the planned purchase is active. |
finish_date | string | null | null | No | End date of the planned purchase (for recurring planned purchases). |
frequency | string | null | No | Recurrence frequency. |
variant | string | null | No | Planned purchase variant type (once for one-time planned purchases, recurring for recurring planned purchases). |
title | string | null | No | Title of the planned purchase. |
info | string | null | null | No | Additional information. |
net_total | number | null | No | Net total amount in the planned purchase currency. |
net_total_in_account_currency | number | null | No | Net total in account currency. |
exhausted | number | null | No | Amount already spent from planned purchase. |
exhausted_in_account_currency | number | null | No | Amount spent in account currency. |
currency | string | null | No | Currency code (ISO 4217). |
company | object | null | No | — |
purchase_budget | object | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
purchases | object[] | null | No | Linked purchases created from this planned purchase. |
custom_properties | object | null | No | Custom property values for the planned purchase. |
create_on_recur | boolean | null | No | Whether to automatically create purchases on recurrence. |
recur_next_on | string | null | null | No | Next scheduled recurrence date. |
updated_at | string | null | No | — |
created_at | string | null | No | — |
company full type
company full type
{
id?: number | null,
name?: string | null
} | null | null
purchase_budget full type
purchase_budget full type
{
id?: number | null,
title?: string | null
} | null | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
purchases full type
purchases full type
{
id?: number | null,
number?: string | null | null,
date?: string | null,
net_total?: number | null,
currency?: string | null,
status?: string | null
}[] | null
custom_properties full type
custom_properties full type
{
} | null | null
list
plannedPurchases.list
List planned purchases, one page at a time
Risk: read
await corsair.moco.api.plannedPurchases.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
date?: string | null,
active?: boolean | null,
finish_date?: string | null | null,
frequency?: string | null,
variant?: string | null,
title?: string | null,
info?: string | null | null,
net_total?: number | null,
net_total_in_account_currency?: number | null,
exhausted?: number | null,
exhausted_in_account_currency?: number | null,
currency?: string | null,
company?: {
id?: number | null,
name?: string | null
} | null | null,
purchase_budget?: {
id?: number | null,
title?: string | null
} | null | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
purchases?: {
id?: number | null,
number?: string | null | null,
date?: string | null,
net_total?: number | null,
currency?: string | null,
status?: string | null
}[] | null,
custom_properties?: {
} | null | null,
create_on_recur?: boolean | null,
recur_next_on?: string | null | null,
updated_at?: string | null,
created_at?: string | null
}[]
update
plannedPurchases.update
Update planned purchase: update an existing planned purchase
Risk: write
await corsair.moco.api.plannedPurchases.update({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
impersonate_user_id | number | No | Execute request on behalf of another user if the authenticated user has permission to Staff. Some resources, such as Activities and User Presences, can be created for other users only if this header is used. |
date | string | No | — |
finish_date | string | No | — |
frequency | once | weekly | biweekly | monthly | quarterly | biannual | annual | No | — |
title | string | No | — |
info | string | null | No | — |
net_total | number | No | — |
currency | string | No | — |
company_id | number | null | No | — |
purchase_budget_id | number | null | No | — |
user_id | number | No | — |
custom_properties | object | null | No | — |
custom_properties full type
custom_properties full type
{
} | null
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Internal planned purchase ID. |
date | string | null | No | Start date of the planned purchase. |
active | boolean | null | No | Whether the planned purchase is active. |
finish_date | string | null | null | No | End date of the planned purchase (for recurring planned purchases). |
frequency | string | null | No | Recurrence frequency. |
variant | string | null | No | Planned purchase variant type (once for one-time planned purchases, recurring for recurring planned purchases). |
title | string | null | No | Title of the planned purchase. |
info | string | null | null | No | Additional information. |
net_total | number | null | No | Net total amount in the planned purchase currency. |
net_total_in_account_currency | number | null | No | Net total in account currency. |
exhausted | number | null | No | Amount already spent from planned purchase. |
exhausted_in_account_currency | number | null | No | Amount spent in account currency. |
currency | string | null | No | Currency code (ISO 4217). |
company | object | null | No | — |
purchase_budget | object | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
purchases | object[] | null | No | Linked purchases created from this planned purchase. |
custom_properties | object | null | No | Custom property values for the planned purchase. |
create_on_recur | boolean | null | No | Whether to automatically create purchases on recurrence. |
recur_next_on | string | null | null | No | Next scheduled recurrence date. |
updated_at | string | null | No | — |
created_at | string | null | No | — |
company full type
company full type
{
id?: number | null,
name?: string | null
} | null | null
purchase_budget full type
purchase_budget full type
{
id?: number | null,
title?: string | null
} | null | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
purchases full type
purchases full type
{
id?: number | null,
number?: string | null | null,
date?: string | null,
net_total?: number | null,
currency?: string | null,
status?: string | null
}[] | null
custom_properties full type
custom_properties full type
{
} | null | null
Planning Entries
create
planningEntries.create
Create planning entry
Risk: write
await corsair.moco.api.planningEntries.create({});
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | No | — |
deal_id | number | No | — |
task_id | number | No | — |
title | string | No | — |
starts_on | string | No | — |
ends_on | string | No | — |
hours_per_day | number | No | — |
comment | string | No | — |
symbol | string | No | — |
color | string | No | — |
tentative | boolean | No | — |
user_id | number | No | Optional and only accepted when caller can modify user assignment. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
title | string | null | No | — |
starts_on | string | null | No | — |
ends_on | string | null | No | — |
hours_per_day | number | null | No | — |
comment | string | null | null | No | — |
symbol | number | null | null | No | — |
color | string | null | null | No | — |
read_only | boolean | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
project | object | null | No | — |
task | object | null | No | — |
deal | object | null | No | — |
series_id | string | null | null | No | — |
tentative | boolean | null | No | — |
series_repeat | string | null | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
customer_name?: string | null | null,
color?: string | null | null
} | null | null
task full type
task full type
{
id?: number | null,
name?: string | null
} | null | null
deal full type
deal full type
{
id?: number | null,
name?: string | null,
customer_name?: string | null | null,
color?: string | null | null
} | null | null
delete
planningEntries.delete
Delete planning entry
Risk: destructive · Irreversible
await corsair.moco.api.planningEntries.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
title?: string | null,
starts_on?: string | null,
ends_on?: string | null,
hours_per_day?: number | null,
comment?: string | null | null,
symbol?: number | null | null,
color?: string | null | null,
read_only?: boolean | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
project?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
customer_name?: string | null | null,
color?: string | null | null
} | null | null,
task?: {
id?: number | null,
name?: string | null
} | null | null,
deal?: {
id?: number | null,
name?: string | null,
customer_name?: string | null | null,
color?: string | null | null
} | null | null,
series_id?: string | null | null,
tentative?: boolean | null,
series_repeat?: string | null | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
get
planningEntries.get
Get planning entry
Risk: read
await corsair.moco.api.planningEntries.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
title | string | null | No | — |
starts_on | string | null | No | — |
ends_on | string | null | No | — |
hours_per_day | number | null | No | — |
comment | string | null | null | No | — |
symbol | number | null | null | No | — |
color | string | null | null | No | — |
read_only | boolean | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
project | object | null | No | — |
task | object | null | No | — |
deal | object | null | No | — |
series_id | string | null | null | No | — |
tentative | boolean | null | No | — |
series_repeat | string | null | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
customer_name?: string | null | null,
color?: string | null | null
} | null | null
task full type
task full type
{
id?: number | null,
name?: string | null
} | null | null
deal full type
deal full type
{
id?: number | null,
name?: string | null,
customer_name?: string | null | null,
color?: string | null | null
} | null | null
list
planningEntries.list
List planning entries, one page at a time
Risk: read
await corsair.moco.api.planningEntries.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
period | string | No | Date range in YYYY-MM-DD:YYYY-MM-DD format (e.g. 2020-04-01:2020-07-31). |
user_id | number | string | No | Single ID or comma-separated list. |
project_id | number | string | No | Single ID or comma-separated list. |
deal_id | number | string | No | Single ID or comma-separated list. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
title?: string | null,
starts_on?: string | null,
ends_on?: string | null,
hours_per_day?: number | null,
comment?: string | null | null,
symbol?: number | null | null,
color?: string | null | null,
read_only?: boolean | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
project?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
customer_name?: string | null | null,
color?: string | null | null
} | null | null,
task?: {
id?: number | null,
name?: string | null
} | null | null,
deal?: {
id?: number | null,
name?: string | null,
customer_name?: string | null | null,
color?: string | null | null
} | null | null,
series_id?: string | null | null,
tentative?: boolean | null,
series_repeat?: string | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
update
planningEntries.update
Update planning entry
Risk: write
await corsair.moco.api.planningEntries.update({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
project_id | number | No | — |
deal_id | number | No | — |
task_id | number | No | — |
title | string | No | — |
starts_on | string | No | — |
ends_on | string | No | — |
hours_per_day | number | No | — |
comment | string | No | — |
symbol | string | No | — |
color | string | No | — |
tentative | boolean | No | — |
user_id | number | No | Optional and only accepted when caller can modify user assignment. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
title | string | null | No | — |
starts_on | string | null | No | — |
ends_on | string | null | No | — |
hours_per_day | number | null | No | — |
comment | string | null | null | No | — |
symbol | number | null | null | No | — |
color | string | null | null | No | — |
read_only | boolean | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
project | object | null | No | — |
task | object | null | No | — |
deal | object | null | No | — |
series_id | string | null | null | No | — |
tentative | boolean | null | No | — |
series_repeat | string | null | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
customer_name?: string | null | null,
color?: string | null | null
} | null | null
task full type
task full type
{
id?: number | null,
name?: string | null
} | null | null
deal full type
deal full type
{
id?: number | null,
name?: string | null,
customer_name?: string | null | null,
color?: string | null | null
} | null | null
Profile
get
profile.get
Read the profile of the authenticated user
Risk: read
await corsair.moco.api.profile.get({});
| Name | Type | Required | Description |
|---|---|---|---|
impersonate_user_id | number | No | Execute request on behalf of another user if the authenticated user has permission to Staff. Some resources, such as Activities and User Presences, can be created for other users only if this header is used. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
email | string | null | No | — |
full_name | string | null | No | — |
first_name | string | null | No | — |
last_name | string | null | No | — |
active | boolean | null | No | — |
external | boolean | null | No | — |
avatar_url | string | null | null | No | — |
unit | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
unit full type
unit full type
{
id?: number | null,
name?: string | null
} | null
performanceReport
profile.performanceReport
Get current user’s performance report
Risk: read
await corsair.moco.api.profile.performanceReport({});
| Name | Type | Required | Description |
|---|---|---|---|
impersonate_user_id | number | No | Execute request on behalf of another user if the authenticated user has permission to Staff. Some resources, such as Activities and User Presences, can be created for other users only if this header is used. |
year | number | No | Report year. Must be between 2000 and 2100. |
| Name | Type | Required | Description |
|---|---|---|---|
annually | object | null | No | — |
monthly | object[] | null | No | — |
annually full type
annually full type
{
year?: number | null,
employment_hours?: number | null,
target_hours?: number | null,
hours_tracked_total?: number | null,
variation?: number | null,
variation_until_today?: number | null | null,
hours_billable_total?: number | null
} | null
monthly full type
monthly full type
{
year?: number | null,
month?: number | null,
target_hours?: number | null,
hours_tracked_total?: number | null,
variation?: number | null,
hours_billable_total?: number | null
}[] | null
Projects
archive
projects.archive
Archive a project; unarchive reverses it
Risk: write
await corsair.moco.api.projects.archive({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Internal project ID. |
identifier | string | null | null | No | Human-readable project number/identifier. |
name | string | null | No | Project name. |
active | boolean | null | No | Whether the project is active. |
billable | boolean | null | No | Whether project work is billable. |
fixed_price | boolean | null | No | Whether the project is fixed price. |
retainer | boolean | null | No | Whether the project is a retainer project. |
start_date | string | null | null | No | Project start date in ISO-8601 date format. |
finish_date | string | null | null | No | Project finish date in ISO-8601 date format. |
currency | string | null | No | Billing currency of the project. |
billing_variant | string | null | null | No | How rates are applied: - project: one project rate - task: per task rate - user: per assigned user rate |
billing_address | string | null | null | No | Billing address used for documents. |
billing_email_to | string | null | null | No | Default recipient email(s) for billing. |
billing_email_cc | string | null | null | No | Default CC recipient email(s) for billing. |
billing_notes | string | null | null | No | Internal or document billing notes. |
setting_include_time_report | boolean | null | No | If true, include time report on generated billing documents. |
budget | number | null | null | No | Budget amount in project currency. |
budget_monthly | number | null | null | No | Monthly budget for retainers. |
budget_expenses | number | null | null | No | Expense budget amount. |
hourly_rate | number | null | No | Effective hourly rate according to billing variant. |
info | string | null | null | No | Free text information field. |
retainer_billing_date | number | null | null | No | Day of month used for retainer billing. |
retainer_billing_title | string | null | null | No | Default title used for retainer schedule items. |
retainer_billing_description | string | null | null | No | Default description used for retainer schedule items. |
color | string | null | null | No | Project color in hex format. |
customer_report_url | string | null | null | No | Public customer report URL when sharing is enabled. |
tags | string[] | null | No | Tag names assigned to this project. |
labels | string[] | null | No | Deprecated alias for tags. |
custom_properties | object | null | No | Custom field values keyed by custom field name. |
leader | object | null | No | Minimal user reference used in nested resources. |
co_leader | object | null | No | Minimal user reference used in nested resources. |
customer | object | null | No | Customer representation. Returns {id, name} by default; full company payload when include_company=true is passed. |
tasks | object[] | null | No | Project tasks/services. |
contracts | object[] | null | No | Assigned user contracts. |
deal | object | null | No | — |
project_group | object | null | No | — |
billing_contact | object | null | No | Minimal user reference used in nested resources. |
contact | object | null | No | Minimal user reference used in nested resources. |
secondary_contact | object | null | No | Minimal user reference used in nested resources. |
archived_on | string | null | null | No | Timestamp when project was archived. |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
custom_properties full type
custom_properties full type
{
} | null
leader full type
leader full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
co_leader full type
co_leader full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
customer full type
customer full type
{
id?: number | null,
name?: string | null
} | {
id?: number | null,
type?: string | null,
identifier?: string | null | null,
name?: string | null,
website?: string | null | null,
email?: string | null | null,
billing_email_cc?: string | null | null,
phone?: string | null | null,
fax?: string | null | null,
address?: string | null | null,
country_code?: string | null | null,
vat_identifier?: string | null | null,
alternative_correspondence_language?: boolean | null,
english_correspondence_language?: boolean | null,
tags?: string[] | null,
labels?: string[] | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
info?: string | null | null,
footer?: string | null | null,
custom_properties?: {
} | null,
active?: boolean | null,
archived_on?: string | null | null,
currency?: string | null | null,
customer_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null,
supplier_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null,
default_invoice_due_days?: number | null | null,
invoice_format?: string | null | null,
default_payment_means?: string | null | null,
projects?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
active?: boolean | null,
billable?: boolean | null
}[] | null,
iban?: string | null | null,
bank_bic?: string | null | null,
bank_owner?: string | null | null,
debit_number?: number | null | null,
credit_number?: number | null | null,
created_at?: string | null,
updated_at?: string | null
} | null
tasks full type
tasks full type
{
id?: number | null,
name?: string | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null | null,
description?: string | null | null
}[] | null
contracts full type
contracts full type
{
id?: number | null,
user_id?: number | null,
firstname?: string | null,
lastname?: string | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null | null
}[] | null
deal full type
deal full type
{
id?: number | null,
name?: string | null
} | null | null
project_group full type
project_group full type
{
id?: number | null,
name?: string | null
} | null | null
billing_contact full type
billing_contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
contact full type
contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
secondary_contact full type
secondary_contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
assignProjectGroup
projects.assignProjectGroup
Assign project to project group: assigns a project to a project group
Risk: write
await corsair.moco.api.projects.assignProjectGroup({ id: 1234567, project_group_id: 1 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
project_group_id | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Internal project ID. |
identifier | string | null | null | No | Human-readable project number/identifier. |
name | string | null | No | Project name. |
active | boolean | null | No | Whether the project is active. |
billable | boolean | null | No | Whether project work is billable. |
fixed_price | boolean | null | No | Whether the project is fixed price. |
retainer | boolean | null | No | Whether the project is a retainer project. |
start_date | string | null | null | No | Project start date in ISO-8601 date format. |
finish_date | string | null | null | No | Project finish date in ISO-8601 date format. |
currency | string | null | No | Billing currency of the project. |
billing_variant | string | null | null | No | How rates are applied: - project: one project rate - task: per task rate - user: per assigned user rate |
billing_address | string | null | null | No | Billing address used for documents. |
billing_email_to | string | null | null | No | Default recipient email(s) for billing. |
billing_email_cc | string | null | null | No | Default CC recipient email(s) for billing. |
billing_notes | string | null | null | No | Internal or document billing notes. |
setting_include_time_report | boolean | null | No | If true, include time report on generated billing documents. |
budget | number | null | null | No | Budget amount in project currency. |
budget_monthly | number | null | null | No | Monthly budget for retainers. |
budget_expenses | number | null | null | No | Expense budget amount. |
hourly_rate | number | null | No | Effective hourly rate according to billing variant. |
info | string | null | null | No | Free text information field. |
retainer_billing_date | number | null | null | No | Day of month used for retainer billing. |
retainer_billing_title | string | null | null | No | Default title used for retainer schedule items. |
retainer_billing_description | string | null | null | No | Default description used for retainer schedule items. |
color | string | null | null | No | Project color in hex format. |
customer_report_url | string | null | null | No | Public customer report URL when sharing is enabled. |
tags | string[] | null | No | Tag names assigned to this project. |
labels | string[] | null | No | Deprecated alias for tags. |
custom_properties | object | null | No | Custom field values keyed by custom field name. |
leader | object | null | No | Minimal user reference used in nested resources. |
co_leader | object | null | No | Minimal user reference used in nested resources. |
customer | object | null | No | Customer representation. Returns {id, name} by default; full company payload when include_company=true is passed. |
tasks | object[] | null | No | Project tasks/services. |
contracts | object[] | null | No | Assigned user contracts. |
deal | object | null | No | — |
project_group | object | null | No | — |
billing_contact | object | null | No | Minimal user reference used in nested resources. |
contact | object | null | No | Minimal user reference used in nested resources. |
secondary_contact | object | null | No | Minimal user reference used in nested resources. |
archived_on | string | null | null | No | Timestamp when project was archived. |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
custom_properties full type
custom_properties full type
{
} | null
leader full type
leader full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
co_leader full type
co_leader full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
customer full type
customer full type
{
id?: number | null,
name?: string | null
} | {
id?: number | null,
type?: string | null,
identifier?: string | null | null,
name?: string | null,
website?: string | null | null,
email?: string | null | null,
billing_email_cc?: string | null | null,
phone?: string | null | null,
fax?: string | null | null,
address?: string | null | null,
country_code?: string | null | null,
vat_identifier?: string | null | null,
alternative_correspondence_language?: boolean | null,
english_correspondence_language?: boolean | null,
tags?: string[] | null,
labels?: string[] | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
info?: string | null | null,
footer?: string | null | null,
custom_properties?: {
} | null,
active?: boolean | null,
archived_on?: string | null | null,
currency?: string | null | null,
customer_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null,
supplier_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null,
default_invoice_due_days?: number | null | null,
invoice_format?: string | null | null,
default_payment_means?: string | null | null,
projects?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
active?: boolean | null,
billable?: boolean | null
}[] | null,
iban?: string | null | null,
bank_bic?: string | null | null,
bank_owner?: string | null | null,
debit_number?: number | null | null,
credit_number?: number | null | null,
created_at?: string | null,
updated_at?: string | null
} | null
tasks full type
tasks full type
{
id?: number | null,
name?: string | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null | null,
description?: string | null | null
}[] | null
contracts full type
contracts full type
{
id?: number | null,
user_id?: number | null,
firstname?: string | null,
lastname?: string | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null | null
}[] | null
deal full type
deal full type
{
id?: number | null,
name?: string | null
} | null | null
project_group full type
project_group full type
{
id?: number | null,
name?: string | null
} | null | null
billing_contact full type
billing_contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
contact full type
contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
secondary_contact full type
secondary_contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
contracts.create
projects.contracts.create
Create project contract
Risk: write
await corsair.moco.api.projects.contracts.create({ project_id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
hourly_rate | number | No | — |
user_id | number | No | — |
active | boolean | No | — |
billable | boolean | No | — |
budget | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
user_id | number | null | No | — |
firstname | string | null | No | — |
lastname | string | null | No | — |
billable | boolean | null | No | — |
active | boolean | null | No | — |
budget | number | null | null | No | — |
hourly_rate | number | null | No | — |
project | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
project full type
project full type
{
id?: number | null,
name?: string | null
} | null
contracts.delete
projects.contracts.delete
Delete project contract
Risk: destructive · Irreversible
await corsair.moco.api.projects.contracts.delete({ project_id: 1234567, id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
user_id?: number | null,
firstname?: string | null,
lastname?: string | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null,
project?: {
id?: number | null,
name?: string | null
} | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
contracts.get
projects.contracts.get
Get project contract
Risk: read
await corsair.moco.api.projects.contracts.get({ project_id: 1234567, id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
user_id | number | null | No | — |
firstname | string | null | No | — |
lastname | string | null | No | — |
billable | boolean | null | No | — |
active | boolean | null | No | — |
budget | number | null | null | No | — |
hourly_rate | number | null | No | — |
project | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
project full type
project full type
{
id?: number | null,
name?: string | null
} | null
contracts.list
projects.contracts.list
List project contracts, one page at a time
Risk: read
await corsair.moco.api.projects.contracts.list({ project_id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
project_id | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
user_id?: number | null,
firstname?: string | null,
lastname?: string | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null,
project?: {
id?: number | null,
name?: string | null
} | null,
created_at?: string | null,
updated_at?: string | null
}[]
contracts.update
projects.contracts.update
Update project contract
Risk: write
await corsair.moco.api.projects.contracts.update({ project_id: 1234567, id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
id | number | Yes | Resource ID. |
hourly_rate | number | No | — |
active | boolean | No | — |
billable | boolean | No | — |
budget | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
user_id | number | null | No | — |
firstname | string | null | No | — |
lastname | string | null | No | — |
billable | boolean | null | No | — |
active | boolean | null | No | — |
budget | number | null | null | No | — |
hourly_rate | number | null | No | — |
project | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
project full type
project full type
{
id?: number | null,
name?: string | null
} | null
create
projects.create
Create a project for a client
Risk: write
await corsair.moco.api.projects.create({ name: 'Website Relaunch', company_id: 889, currency: 'EUR' });
| Name | Type | Required | Description |
|---|---|---|---|
identifier | string | No | Project number/identifier. Required when number ranges are manual. |
name | string | No | Project name. |
fixed_price | boolean | No | Whether the project is fixed price. |
company_id | number | No | Customer company ID. |
customer_id | number | No | Deprecated alias of company_id. |
deal_id | number | No | Linked deal ID. |
project_group_id | number | No | Linked project group ID. |
leader_id | number | No | Main responsible user ID. |
co_leader_id | number | No | Secondary responsible user ID. |
contact_id | number | No | Main external contact ID. |
secondary_contact_id | number | No | Secondary external contact ID. |
billing_contact_id | number | No | Billing contact ID. |
info | string | No | Internal project notes. |
start_date | string | No | Project start date. |
finish_date | string | No | Project finish date. |
retainer | boolean | No | Whether project is billed as retainer. |
retainer_billing_date | number | No | Retainer billing day in month (1-31). |
retainer_billing_title | string | No | Default title for generated retainer items. |
retainer_billing_description | string | No | Default description for generated retainer items. |
billing_variant | project | task | user | billing_variant_rate_per_project | billing_variant_rate_per_task | billing_variant_rate_per_user | No | Pricing mode for hourly rates. Preferred values are project, task, user. billing_variant_rate_per_project, billing_variant_rate_per_task, billing_variant_rate_per_user are also accepted. |
hourly_rate | number | No | Effective hourly rate for project pricing. |
budget | number | No | Project budget in project currency. |
budget_monthly | number | No | Monthly budget for retainers. |
budget_expenses | number | No | Expense budget in project currency. |
currency | string | No | Project currency. Mandatory on create and immutable afterwards. |
billing_address | string | No | Billing address for generated documents. |
billing_notes | string | No | Notes printed or used during billing. |
setting_include_time_report | boolean | No | Include time report in billing output. |
billing_email_to | string | No | Default recipient email(s), semicolon-separated. |
billing_email_cc | string | No | Default CC email(s), semicolon-separated. |
skip_favorite | boolean | No | Do not add this project to favorites for the creator. |
tags | string[] | No | Project tags. |
labels | string[] | No | Deprecated alias for tags. |
custom_properties | object | No | Custom field values keyed by custom field name. |
custom_properties full type
custom_properties full type
{
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Internal project ID. |
identifier | string | null | null | No | Human-readable project number/identifier. |
name | string | null | No | Project name. |
active | boolean | null | No | Whether the project is active. |
billable | boolean | null | No | Whether project work is billable. |
fixed_price | boolean | null | No | Whether the project is fixed price. |
retainer | boolean | null | No | Whether the project is a retainer project. |
start_date | string | null | null | No | Project start date in ISO-8601 date format. |
finish_date | string | null | null | No | Project finish date in ISO-8601 date format. |
currency | string | null | No | Billing currency of the project. |
billing_variant | string | null | null | No | How rates are applied: - project: one project rate - task: per task rate - user: per assigned user rate |
billing_address | string | null | null | No | Billing address used for documents. |
billing_email_to | string | null | null | No | Default recipient email(s) for billing. |
billing_email_cc | string | null | null | No | Default CC recipient email(s) for billing. |
billing_notes | string | null | null | No | Internal or document billing notes. |
setting_include_time_report | boolean | null | No | If true, include time report on generated billing documents. |
budget | number | null | null | No | Budget amount in project currency. |
budget_monthly | number | null | null | No | Monthly budget for retainers. |
budget_expenses | number | null | null | No | Expense budget amount. |
hourly_rate | number | null | No | Effective hourly rate according to billing variant. |
info | string | null | null | No | Free text information field. |
retainer_billing_date | number | null | null | No | Day of month used for retainer billing. |
retainer_billing_title | string | null | null | No | Default title used for retainer schedule items. |
retainer_billing_description | string | null | null | No | Default description used for retainer schedule items. |
color | string | null | null | No | Project color in hex format. |
customer_report_url | string | null | null | No | Public customer report URL when sharing is enabled. |
tags | string[] | null | No | Tag names assigned to this project. |
labels | string[] | null | No | Deprecated alias for tags. |
custom_properties | object | null | No | Custom field values keyed by custom field name. |
leader | object | null | No | Minimal user reference used in nested resources. |
co_leader | object | null | No | Minimal user reference used in nested resources. |
customer | object | null | No | Customer representation. Returns {id, name} by default; full company payload when include_company=true is passed. |
tasks | object[] | null | No | Project tasks/services. |
contracts | object[] | null | No | Assigned user contracts. |
deal | object | null | No | — |
project_group | object | null | No | — |
billing_contact | object | null | No | Minimal user reference used in nested resources. |
contact | object | null | No | Minimal user reference used in nested resources. |
secondary_contact | object | null | No | Minimal user reference used in nested resources. |
archived_on | string | null | null | No | Timestamp when project was archived. |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
custom_properties full type
custom_properties full type
{
} | null
leader full type
leader full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
co_leader full type
co_leader full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
customer full type
customer full type
{
id?: number | null,
name?: string | null
} | {
id?: number | null,
type?: string | null,
identifier?: string | null | null,
name?: string | null,
website?: string | null | null,
email?: string | null | null,
billing_email_cc?: string | null | null,
phone?: string | null | null,
fax?: string | null | null,
address?: string | null | null,
country_code?: string | null | null,
vat_identifier?: string | null | null,
alternative_correspondence_language?: boolean | null,
english_correspondence_language?: boolean | null,
tags?: string[] | null,
labels?: string[] | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
info?: string | null | null,
footer?: string | null | null,
custom_properties?: {
} | null,
active?: boolean | null,
archived_on?: string | null | null,
currency?: string | null | null,
customer_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null,
supplier_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null,
default_invoice_due_days?: number | null | null,
invoice_format?: string | null | null,
default_payment_means?: string | null | null,
projects?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
active?: boolean | null,
billable?: boolean | null
}[] | null,
iban?: string | null | null,
bank_bic?: string | null | null,
bank_owner?: string | null | null,
debit_number?: number | null | null,
credit_number?: number | null | null,
created_at?: string | null,
updated_at?: string | null
} | null
tasks full type
tasks full type
{
id?: number | null,
name?: string | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null | null,
description?: string | null | null
}[] | null
contracts full type
contracts full type
{
id?: number | null,
user_id?: number | null,
firstname?: string | null,
lastname?: string | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null | null
}[] | null
deal full type
deal full type
{
id?: number | null,
name?: string | null
} | null | null
project_group full type
project_group full type
{
id?: number | null,
name?: string | null
} | null | null
billing_contact full type
billing_contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
contact full type
contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
secondary_contact full type
secondary_contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
delete
projects.delete
Delete project
Risk: destructive · Irreversible
await corsair.moco.api.projects.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
active?: boolean | null,
billable?: boolean | null,
fixed_price?: boolean | null,
retainer?: boolean | null,
start_date?: string | null | null,
finish_date?: string | null | null,
currency?: string | null,
billing_variant?: string | null | null,
billing_address?: string | null | null,
billing_email_to?: string | null | null,
billing_email_cc?: string | null | null,
billing_notes?: string | null | null,
setting_include_time_report?: boolean | null,
budget?: number | null | null,
budget_monthly?: number | null | null,
budget_expenses?: number | null | null,
hourly_rate?: number | null,
info?: string | null | null,
retainer_billing_date?: number | null | null,
retainer_billing_title?: string | null | null,
retainer_billing_description?: string | null | null,
color?: string | null | null,
customer_report_url?: string | null | null,
tags?: string[] | null,
labels?: string[] | null,
custom_properties?: {
} | null,
leader?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
co_leader?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
customer?: {
id?: number | null,
name?: string | null
} | {
id?: number | null,
type?: string | null,
identifier?: string | null | null,
name?: string | null,
website?: string | null | null,
email?: string | null | null,
billing_email_cc?: string | null | null,
phone?: string | null | null,
fax?: string | null | null,
address?: string | null | null,
country_code?: string | null | null,
vat_identifier?: string | null | null,
alternative_correspondence_language?: boolean | null,
english_correspondence_language?: boolean | null,
tags?: string[] | null,
labels?: string[] | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
info?: string | null | null,
footer?: string | null | null,
custom_properties?: {
} | null,
active?: boolean | null,
archived_on?: string | null | null,
currency?: string | null | null,
customer_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null,
supplier_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null,
default_invoice_due_days?: number | null | null,
invoice_format?: string | null | null,
default_payment_means?: string | null | null,
projects?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
active?: boolean | null,
billable?: boolean | null
}[] | null,
iban?: string | null | null,
bank_bic?: string | null | null,
bank_owner?: string | null | null,
debit_number?: number | null | null,
credit_number?: number | null | null,
created_at?: string | null,
updated_at?: string | null
} | null,
tasks?: {
id?: number | null,
name?: string | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null | null,
description?: string | null | null
}[] | null,
contracts?: {
id?: number | null,
user_id?: number | null,
firstname?: string | null,
lastname?: string | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null | null
}[] | null,
deal?: {
id?: number | null,
name?: string | null
} | null | null,
project_group?: {
id?: number | null,
name?: string | null
} | null | null,
billing_contact?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
contact?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
secondary_contact?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
archived_on?: string | null | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
disableShare
projects.disableShare
Disable project report sharing: disables public customer report sharing for the selected project
Risk: write
await corsair.moco.api.projects.disableShare({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
active | boolean | null | No | — |
url | string | null | null | No | — |
expenses.bulkCreate
projects.expenses.bulkCreate
Create project expenses in bulk
Risk: write
await corsair.moco.api.projects.expenses.bulkCreate({
project_id: 1234567,
bulk_data: [{}],
});
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
bulk_data | object[] | Yes | Expense entries created in one transaction. |
bulk_data full type
bulk_data full type
{
date?: string,
title?: string,
description?: string,
quantity?: number,
unit?: string,
unit_price?: number,
unit_cost?: number,
billable?: boolean,
budget_relevant?: boolean,
purchase_assignment_locked?: boolean,
service_period_from?: string,
service_period_to?: string,
planned_purchase_date?: string,
cost_total_planned?: number,
revenue_category_id?: number,
custom_properties?: {
}
}[]
object[]
Output full type
Output full type
{
id?: number | null,
date?: string | null,
title?: string | null,
description?: string | null | null,
quantity?: number | null,
unit?: string | null | null,
unit_price?: number | null,
unit_cost?: number | null,
price?: number | null,
cost?: number | null,
currency?: string | null,
budget_relevant?: boolean | null,
billable?: boolean | null,
billed?: boolean | null,
purchase_assignment_locked?: boolean | null,
cost_total_planned?: number | null,
planned_purchase_date?: string | null | null,
invoice_id?: number | null | null,
service_period?: string | null | null,
service_period_from?: string | null | null,
service_period_to?: string | null | null,
recurring_expense_id?: number | null | null,
file_url?: string | null | null,
custom_properties?: {
} | null,
company?: {
id?: number | null,
name?: string | null
} | null,
project?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null,
group?: {
id?: number | null,
title?: string | null,
budget?: number | null
} | null | null,
purchase_items?: {
id?: number | null,
title?: string | null | null,
net_total?: number | null,
currency?: string | null,
purchase_id?: number | null,
document?: {
id?: number | null,
file_url?: string | null | null
} | null | null
}[] | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
expenses.create
projects.expenses.create
Create project expense
Risk: write
await corsair.moco.api.projects.expenses.create({ project_id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | Project ID. |
user_id | number | No | Responsible user ID (must be active on create). |
date | string | No | Expense date. |
title | string | No | Expense title. |
description | string | No | Expense description text. |
quantity | number | No | Quantity. |
unit | string | No | Unit label. |
unit_price | number | No | Unit selling price. |
price | number | No | Deprecated total selling price alias. |
unit_cost | number | No | Unit internal cost. |
billable | boolean | No | Whether this expense can be billed. |
budget_relevant | boolean | No | Whether this expense affects project budget. |
purchase_assignment_locked | boolean | No | Locks assignment to purchase items. |
service_period_from | string | No | Start of service period. |
service_period_to | string | No | End of service period. |
planned_purchase_date | string | No | Planned purchase date (when planned purchases are enabled). |
cost_total_planned | number | No | Planned internal cost total. |
revenue_category_id | number | No | Revenue category ID for billing assignment. Rejected with 422 when the revenue category only applies to tasks, unless the stored value is unchanged. |
custom_properties | object | No | Custom field values keyed by custom field name. |
file | object | No | Optional attachment payload. |
custom_properties full type
custom_properties full type
{
}
file full type
file full type
{
filename?: string,
base64?: string
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Expense ID. |
date | string | null | No | Expense date. |
title | string | null | No | Expense title. |
description | string | null | null | No | Expense description. |
quantity | number | null | No | Quantity. |
unit | string | null | null | No | Unit label. |
unit_price | number | null | No | Unit selling price. |
unit_cost | number | null | No | Unit internal cost. |
price | number | null | No | Total selling price. |
cost | number | null | No | Total internal cost. |
currency | string | null | No | Expense currency. |
budget_relevant | boolean | null | No | Whether this expense affects budget calculations. |
billable | boolean | null | No | Whether this expense can be billed to customer. |
billed | boolean | null | No | Whether this expense has already been billed. |
purchase_assignment_locked | boolean | null | No | Whether purchase assignment is locked. |
cost_total_planned | number | null | No | Planned cost total. |
planned_purchase_date | string | null | null | No | Planned purchase date. |
invoice_id | number | null | null | No | Linked invoice ID if billed. |
service_period | string | null | null | No | Human-readable service period. |
service_period_from | string | null | null | No | Service period start date. |
service_period_to | string | null | null | No | Service period end date. |
recurring_expense_id | number | null | null | No | Linked recurring expense ID. |
file_url | string | null | null | No | Linked document URL. |
custom_properties | object | null | No | Custom field values keyed by custom field name. |
company | object | null | No | Minimal company reference used in nested resources. |
project | object | null | No | Minimal project reference used in nested resources. |
group | object | null | No | — |
purchase_items | object[] | null | No | Linked purchase item allocations. |
user | object | null | No | Minimal user reference used in nested resources. |
revenue_category | object | null | No | — |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
custom_properties full type
custom_properties full type
{
} | null
company full type
company full type
{
id?: number | null,
name?: string | null
} | null
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null
group full type
group full type
{
id?: number | null,
title?: string | null,
budget?: number | null
} | null | null
purchase_items full type
purchase_items full type
{
id?: number | null,
title?: string | null | null,
net_total?: number | null,
currency?: string | null,
purchase_id?: number | null,
document?: {
id?: number | null,
file_url?: string | null | null
} | null | null
}[] | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
revenue_category full type
revenue_category full type
{
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null
expenses.delete
projects.expenses.delete
Delete project expense
Risk: destructive · Irreversible
await corsair.moco.api.projects.expenses.delete({ project_id: 1234567, id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
date?: string | null,
title?: string | null,
description?: string | null | null,
quantity?: number | null,
unit?: string | null | null,
unit_price?: number | null,
unit_cost?: number | null,
price?: number | null,
cost?: number | null,
currency?: string | null,
budget_relevant?: boolean | null,
billable?: boolean | null,
billed?: boolean | null,
purchase_assignment_locked?: boolean | null,
cost_total_planned?: number | null,
planned_purchase_date?: string | null | null,
invoice_id?: number | null | null,
service_period?: string | null | null,
service_period_from?: string | null | null,
service_period_to?: string | null | null,
recurring_expense_id?: number | null | null,
file_url?: string | null | null,
custom_properties?: {
} | null,
company?: {
id?: number | null,
name?: string | null
} | null,
project?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null,
group?: {
id?: number | null,
title?: string | null,
budget?: number | null
} | null | null,
purchase_items?: {
id?: number | null,
title?: string | null | null,
net_total?: number | null,
currency?: string | null,
purchase_id?: number | null,
document?: {
id?: number | null,
file_url?: string | null | null
} | null | null
}[] | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
expenses.disregard
projects.expenses.disregard
Disregard project expenses: marks selected expenses as disregarded for billing calculations
Risk: write
await corsair.moco.api.projects.expenses.disregard({
project_id: 1234567,
reason: 'Created by mistake',
expense_ids: [1],
});
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
reason | string | Yes | Reason shown in history/audit context. |
expense_ids | number[] | Yes | IDs of expenses to disregard. |
| Name | Type | Required | Description |
|---|---|---|---|
success | true | Yes | MOCO accepted the call; it answered with no body. |
expenses.get
projects.expenses.get
Get project expense
Risk: read
await corsair.moco.api.projects.expenses.get({ project_id: 1234567, id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Expense ID. |
date | string | null | No | Expense date. |
title | string | null | No | Expense title. |
description | string | null | null | No | Expense description. |
quantity | number | null | No | Quantity. |
unit | string | null | null | No | Unit label. |
unit_price | number | null | No | Unit selling price. |
unit_cost | number | null | No | Unit internal cost. |
price | number | null | No | Total selling price. |
cost | number | null | No | Total internal cost. |
currency | string | null | No | Expense currency. |
budget_relevant | boolean | null | No | Whether this expense affects budget calculations. |
billable | boolean | null | No | Whether this expense can be billed to customer. |
billed | boolean | null | No | Whether this expense has already been billed. |
purchase_assignment_locked | boolean | null | No | Whether purchase assignment is locked. |
cost_total_planned | number | null | No | Planned cost total. |
planned_purchase_date | string | null | null | No | Planned purchase date. |
invoice_id | number | null | null | No | Linked invoice ID if billed. |
service_period | string | null | null | No | Human-readable service period. |
service_period_from | string | null | null | No | Service period start date. |
service_period_to | string | null | null | No | Service period end date. |
recurring_expense_id | number | null | null | No | Linked recurring expense ID. |
file_url | string | null | null | No | Linked document URL. |
custom_properties | object | null | No | Custom field values keyed by custom field name. |
company | object | null | No | Minimal company reference used in nested resources. |
project | object | null | No | Minimal project reference used in nested resources. |
group | object | null | No | — |
purchase_items | object[] | null | No | Linked purchase item allocations. |
user | object | null | No | Minimal user reference used in nested resources. |
revenue_category | object | null | No | — |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
custom_properties full type
custom_properties full type
{
} | null
company full type
company full type
{
id?: number | null,
name?: string | null
} | null
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null
group full type
group full type
{
id?: number | null,
title?: string | null,
budget?: number | null
} | null | null
purchase_items full type
purchase_items full type
{
id?: number | null,
title?: string | null | null,
net_total?: number | null,
currency?: string | null,
purchase_id?: number | null,
document?: {
id?: number | null,
file_url?: string | null | null
} | null | null
}[] | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
revenue_category full type
revenue_category full type
{
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null
expenses.list
projects.expenses.list
List project expenses, one page at a time
Risk: read
await corsair.moco.api.projects.expenses.list({ project_id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
custom_properties | Record<string, string | boolean | string[]> | No | Filter by custom field values. Unknown custom field names return an empty result set. For MultiSelect fields, pass multiple values using custom_properties[Field][]=A&custom_properties[Field][]=B. Boolean fields should be queried with true or false. |
billable | boolean | No | — |
billed | boolean | No | — |
budget_relevant | boolean | No | — |
user_id | number | No | — |
project_id | number | Yes | Project ID. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
date?: string | null,
title?: string | null,
description?: string | null | null,
quantity?: number | null,
unit?: string | null | null,
unit_price?: number | null,
unit_cost?: number | null,
price?: number | null,
cost?: number | null,
currency?: string | null,
budget_relevant?: boolean | null,
billable?: boolean | null,
billed?: boolean | null,
purchase_assignment_locked?: boolean | null,
cost_total_planned?: number | null,
planned_purchase_date?: string | null | null,
invoice_id?: number | null | null,
service_period?: string | null | null,
service_period_from?: string | null | null,
service_period_to?: string | null | null,
recurring_expense_id?: number | null | null,
file_url?: string | null | null,
custom_properties?: {
} | null,
company?: {
id?: number | null,
name?: string | null
} | null,
project?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null,
group?: {
id?: number | null,
title?: string | null,
budget?: number | null
} | null | null,
purchase_items?: {
id?: number | null,
title?: string | null | null,
net_total?: number | null,
currency?: string | null,
purchase_id?: number | null,
document?: {
id?: number | null,
file_url?: string | null | null
} | null | null
}[] | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
expenses.listAll
projects.expenses.listAll
List expenses across projects, one page at a time
Risk: read
await corsair.moco.api.projects.expenses.listAll({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
custom_properties | Record<string, string | boolean | string[]> | No | Filter by custom field values. Unknown custom field names return an empty result set. For MultiSelect fields, pass multiple values using custom_properties[Field][]=A&custom_properties[Field][]=B. Boolean fields should be queried with true or false. |
from | string | No | Expense date range start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
to | string | No | Expense date range end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
billable | boolean | No | — |
billed | boolean | No | — |
budget_relevant | boolean | No | — |
tags | string | No | Comma-separated project tag names. |
user_id | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
date?: string | null,
title?: string | null,
description?: string | null | null,
quantity?: number | null,
unit?: string | null | null,
unit_price?: number | null,
unit_cost?: number | null,
price?: number | null,
cost?: number | null,
currency?: string | null,
budget_relevant?: boolean | null,
billable?: boolean | null,
billed?: boolean | null,
purchase_assignment_locked?: boolean | null,
cost_total_planned?: number | null,
planned_purchase_date?: string | null | null,
invoice_id?: number | null | null,
service_period?: string | null | null,
service_period_from?: string | null | null,
service_period_to?: string | null | null,
recurring_expense_id?: number | null | null,
file_url?: string | null | null,
custom_properties?: {
} | null,
company?: {
id?: number | null,
name?: string | null
} | null,
project?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null,
group?: {
id?: number | null,
title?: string | null,
budget?: number | null
} | null | null,
purchase_items?: {
id?: number | null,
title?: string | null | null,
net_total?: number | null,
currency?: string | null,
purchase_id?: number | null,
document?: {
id?: number | null,
file_url?: string | null | null
} | null | null
}[] | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
expenses.update
projects.expenses.update
Update project expense
Risk: write
await corsair.moco.api.projects.expenses.update({ project_id: 1234567, id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
id | number | Yes | Resource ID. |
user_id | number | No | Responsible user ID (must be active on create). |
date | string | No | Expense date. |
title | string | No | Expense title. |
description | string | No | Expense description text. |
quantity | number | No | Quantity. |
unit | string | No | Unit label. |
unit_price | number | No | Unit selling price. |
price | number | No | Deprecated total selling price alias. |
unit_cost | number | No | Unit internal cost. |
billable | boolean | No | Whether this expense can be billed. |
budget_relevant | boolean | No | Whether this expense affects project budget. |
purchase_assignment_locked | boolean | No | Locks assignment to purchase items. |
service_period_from | string | No | Start of service period. |
service_period_to | string | No | End of service period. |
planned_purchase_date | string | No | Planned purchase date (when planned purchases are enabled). |
cost_total_planned | number | No | Planned internal cost total. |
revenue_category_id | number | No | Revenue category ID for billing assignment. Rejected with 422 when the revenue category only applies to tasks, unless the stored value is unchanged. |
custom_properties | object | No | Custom field values keyed by custom field name. |
file | object | No | Optional attachment payload. |
custom_properties full type
custom_properties full type
{
}
file full type
file full type
{
filename?: string,
base64?: string
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Expense ID. |
date | string | null | No | Expense date. |
title | string | null | No | Expense title. |
description | string | null | null | No | Expense description. |
quantity | number | null | No | Quantity. |
unit | string | null | null | No | Unit label. |
unit_price | number | null | No | Unit selling price. |
unit_cost | number | null | No | Unit internal cost. |
price | number | null | No | Total selling price. |
cost | number | null | No | Total internal cost. |
currency | string | null | No | Expense currency. |
budget_relevant | boolean | null | No | Whether this expense affects budget calculations. |
billable | boolean | null | No | Whether this expense can be billed to customer. |
billed | boolean | null | No | Whether this expense has already been billed. |
purchase_assignment_locked | boolean | null | No | Whether purchase assignment is locked. |
cost_total_planned | number | null | No | Planned cost total. |
planned_purchase_date | string | null | null | No | Planned purchase date. |
invoice_id | number | null | null | No | Linked invoice ID if billed. |
service_period | string | null | null | No | Human-readable service period. |
service_period_from | string | null | null | No | Service period start date. |
service_period_to | string | null | null | No | Service period end date. |
recurring_expense_id | number | null | null | No | Linked recurring expense ID. |
file_url | string | null | null | No | Linked document URL. |
custom_properties | object | null | No | Custom field values keyed by custom field name. |
company | object | null | No | Minimal company reference used in nested resources. |
project | object | null | No | Minimal project reference used in nested resources. |
group | object | null | No | — |
purchase_items | object[] | null | No | Linked purchase item allocations. |
user | object | null | No | Minimal user reference used in nested resources. |
revenue_category | object | null | No | — |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
custom_properties full type
custom_properties full type
{
} | null
company full type
company full type
{
id?: number | null,
name?: string | null
} | null
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null
group full type
group full type
{
id?: number | null,
title?: string | null,
budget?: number | null
} | null | null
purchase_items full type
purchase_items full type
{
id?: number | null,
title?: string | null | null,
net_total?: number | null,
currency?: string | null,
purchase_id?: number | null,
document?: {
id?: number | null,
file_url?: string | null | null
} | null | null
}[] | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
revenue_category full type
revenue_category full type
{
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null
get
projects.get
Read one project, optionally embedding the client
Risk: read
await corsair.moco.api.projects.get({ id: 1234567, include_company: true });
| Name | Type | Required | Description |
|---|---|---|---|
include_company | boolean | No | — |
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Internal project ID. |
identifier | string | null | null | No | Human-readable project number/identifier. |
name | string | null | No | Project name. |
active | boolean | null | No | Whether the project is active. |
billable | boolean | null | No | Whether project work is billable. |
fixed_price | boolean | null | No | Whether the project is fixed price. |
retainer | boolean | null | No | Whether the project is a retainer project. |
start_date | string | null | null | No | Project start date in ISO-8601 date format. |
finish_date | string | null | null | No | Project finish date in ISO-8601 date format. |
currency | string | null | No | Billing currency of the project. |
billing_variant | string | null | null | No | How rates are applied: - project: one project rate - task: per task rate - user: per assigned user rate |
billing_address | string | null | null | No | Billing address used for documents. |
billing_email_to | string | null | null | No | Default recipient email(s) for billing. |
billing_email_cc | string | null | null | No | Default CC recipient email(s) for billing. |
billing_notes | string | null | null | No | Internal or document billing notes. |
setting_include_time_report | boolean | null | No | If true, include time report on generated billing documents. |
budget | number | null | null | No | Budget amount in project currency. |
budget_monthly | number | null | null | No | Monthly budget for retainers. |
budget_expenses | number | null | null | No | Expense budget amount. |
hourly_rate | number | null | No | Effective hourly rate according to billing variant. |
info | string | null | null | No | Free text information field. |
retainer_billing_date | number | null | null | No | Day of month used for retainer billing. |
retainer_billing_title | string | null | null | No | Default title used for retainer schedule items. |
retainer_billing_description | string | null | null | No | Default description used for retainer schedule items. |
color | string | null | null | No | Project color in hex format. |
customer_report_url | string | null | null | No | Public customer report URL when sharing is enabled. |
tags | string[] | null | No | Tag names assigned to this project. |
labels | string[] | null | No | Deprecated alias for tags. |
custom_properties | object | null | No | Custom field values keyed by custom field name. |
leader | object | null | No | Minimal user reference used in nested resources. |
co_leader | object | null | No | Minimal user reference used in nested resources. |
customer | object | null | No | Customer representation. Returns {id, name} by default; full company payload when include_company=true is passed. |
tasks | object[] | null | No | Project tasks/services. |
contracts | object[] | null | No | Assigned user contracts. |
deal | object | null | No | — |
project_group | object | null | No | — |
billing_contact | object | null | No | Minimal user reference used in nested resources. |
contact | object | null | No | Minimal user reference used in nested resources. |
secondary_contact | object | null | No | Minimal user reference used in nested resources. |
archived_on | string | null | null | No | Timestamp when project was archived. |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
custom_properties full type
custom_properties full type
{
} | null
leader full type
leader full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
co_leader full type
co_leader full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
customer full type
customer full type
{
id?: number | null,
name?: string | null
} | {
id?: number | null,
type?: string | null,
identifier?: string | null | null,
name?: string | null,
website?: string | null | null,
email?: string | null | null,
billing_email_cc?: string | null | null,
phone?: string | null | null,
fax?: string | null | null,
address?: string | null | null,
country_code?: string | null | null,
vat_identifier?: string | null | null,
alternative_correspondence_language?: boolean | null,
english_correspondence_language?: boolean | null,
tags?: string[] | null,
labels?: string[] | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
info?: string | null | null,
footer?: string | null | null,
custom_properties?: {
} | null,
active?: boolean | null,
archived_on?: string | null | null,
currency?: string | null | null,
customer_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null,
supplier_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null,
default_invoice_due_days?: number | null | null,
invoice_format?: string | null | null,
default_payment_means?: string | null | null,
projects?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
active?: boolean | null,
billable?: boolean | null
}[] | null,
iban?: string | null | null,
bank_bic?: string | null | null,
bank_owner?: string | null | null,
debit_number?: number | null | null,
credit_number?: number | null | null,
created_at?: string | null,
updated_at?: string | null
} | null
tasks full type
tasks full type
{
id?: number | null,
name?: string | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null | null,
description?: string | null | null
}[] | null
contracts full type
contracts full type
{
id?: number | null,
user_id?: number | null,
firstname?: string | null,
lastname?: string | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null | null
}[] | null
deal full type
deal full type
{
id?: number | null,
name?: string | null
} | null | null
project_group full type
project_group full type
{
id?: number | null,
name?: string | null
} | null | null
billing_contact full type
billing_contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
contact full type
contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
secondary_contact full type
secondary_contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
groups.get
projects.groups.get
Get project group
Risk: read
await corsair.moco.api.projects.groups.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
company | object | null | No | — |
budget | number | null | No | — |
currency | string | null | null | No | — |
info | string | null | null | No | — |
custom_properties | object | null | No | — |
customer_report_url | string | null | null | No | — |
projects | object[] | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
company full type
company full type
{
id?: number | null,
name?: string | null
} | null
custom_properties full type
custom_properties full type
{
} | null
projects full type
projects full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
active?: boolean | null,
budget?: number | null | null
}[] | null
groups.list
projects.groups.list
List project groups, one page at a time
Risk: read
await corsair.moco.api.projects.groups.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
custom_properties | Record<string, string | boolean | string[]> | No | Filter by custom field values. Unknown custom field names return an empty result set. For MultiSelect fields, pass multiple values using custom_properties[Field][]=A&custom_properties[Field][]=B. Boolean fields should be queried with true or false. |
user_id | number | No | — |
company_id | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
name?: string | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
company?: {
id?: number | null,
name?: string | null
} | null,
budget?: number | null,
currency?: string | null | null,
info?: string | null | null,
custom_properties?: {
} | null,
customer_report_url?: string | null | null,
projects?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
active?: boolean | null,
budget?: number | null | null
}[] | null,
created_at?: string | null,
updated_at?: string | null
}[]
list
projects.list
List projects with company, leader, tag, date and archive filters, one page at a time
Risk: read
await corsair.moco.api.projects.list({ include_archived: false, company_id: 889 });
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
sort_by | string | No | Field and optional direction, e.g. title desc. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
include_archived | boolean | No | — |
include_company | boolean | No | Return full customer company payload instead of {id,name}. |
leader_id | number | string | No | Single ID or comma-separated list. |
company_id | number | string | No | Single ID or comma-separated list. |
created_from | string | No | Creation date range start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
created_to | string | No | Creation date range end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
updated_from | string | No | Update date range start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
updated_to | string | No | Update date range end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
tags | string | No | Comma-separated list of tag names. |
identifier | string | No | Single identifier or comma-separated list. |
retainer | boolean | No | — |
project_group_id | number | string | No | Single ID or comma-separated list. |
deal_id | number | string | No | Single ID or comma-separated list. |
term | string | No | Searches project name, project identifier and customer company name. |
custom_properties | Record<string, string | boolean | string[]> | No | Filter by custom field values. Unknown custom field names return an empty result set. For MultiSelect fields, pass multiple values using custom_properties[Field][]=A&custom_properties[Field][]=B. Boolean fields should be queried with true or false. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
active?: boolean | null,
billable?: boolean | null,
fixed_price?: boolean | null,
retainer?: boolean | null,
start_date?: string | null | null,
finish_date?: string | null | null,
currency?: string | null,
billing_variant?: string | null | null,
billing_address?: string | null | null,
billing_email_to?: string | null | null,
billing_email_cc?: string | null | null,
billing_notes?: string | null | null,
setting_include_time_report?: boolean | null,
budget?: number | null | null,
budget_monthly?: number | null | null,
budget_expenses?: number | null | null,
hourly_rate?: number | null,
info?: string | null | null,
retainer_billing_date?: number | null | null,
retainer_billing_title?: string | null | null,
retainer_billing_description?: string | null | null,
color?: string | null | null,
customer_report_url?: string | null | null,
tags?: string[] | null,
labels?: string[] | null,
custom_properties?: {
} | null,
leader?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
co_leader?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
customer?: {
id?: number | null,
name?: string | null
} | {
id?: number | null,
type?: string | null,
identifier?: string | null | null,
name?: string | null,
website?: string | null | null,
email?: string | null | null,
billing_email_cc?: string | null | null,
phone?: string | null | null,
fax?: string | null | null,
address?: string | null | null,
country_code?: string | null | null,
vat_identifier?: string | null | null,
alternative_correspondence_language?: boolean | null,
english_correspondence_language?: boolean | null,
tags?: string[] | null,
labels?: string[] | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
info?: string | null | null,
footer?: string | null | null,
custom_properties?: {
} | null,
active?: boolean | null,
archived_on?: string | null | null,
currency?: string | null | null,
customer_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null,
supplier_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null,
default_invoice_due_days?: number | null | null,
invoice_format?: string | null | null,
default_payment_means?: string | null | null,
projects?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
active?: boolean | null,
billable?: boolean | null
}[] | null,
iban?: string | null | null,
bank_bic?: string | null | null,
bank_owner?: string | null | null,
debit_number?: number | null | null,
credit_number?: number | null | null,
created_at?: string | null,
updated_at?: string | null
} | null,
tasks?: {
id?: number | null,
name?: string | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null | null,
description?: string | null | null
}[] | null,
contracts?: {
id?: number | null,
user_id?: number | null,
firstname?: string | null,
lastname?: string | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null | null
}[] | null,
deal?: {
id?: number | null,
name?: string | null
} | null | null,
project_group?: {
id?: number | null,
name?: string | null
} | null | null,
billing_contact?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
contact?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
secondary_contact?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
archived_on?: string | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
listAssigned
projects.listAssigned
List projects assigned to current user
Risk: read
await corsair.moco.api.projects.listAssigned({});
| Name | Type | Required | Description |
|---|---|---|---|
active | boolean | No | — |
object[]
Output full type
Output full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
active?: boolean | null,
billable?: boolean | null,
customer?: {
id?: number | null,
name?: string | null
} | null,
tasks?: {
id?: number | null,
name?: string | null,
active?: boolean | null,
billable?: boolean | null
}[] | null,
contract?: {
user_id?: number | null,
active?: boolean | null
} | null
}[]
paymentSchedules.create
projects.paymentSchedules.create
Create project payment schedule
Risk: write
await corsair.moco.api.projects.paymentSchedules.create({ project_id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
date | string | No | — |
net_total | number | No | — |
title | string | No | — |
checked | boolean | No | — |
description | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
date | string | null | No | — |
title | string | null | null | No | — |
net_total | number | null | No | — |
checked | boolean | null | No | — |
billed | boolean | null | No | — |
description | string | null | null | No | — |
project | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null
} | null
paymentSchedules.delete
projects.paymentSchedules.delete
Delete project payment schedule
Risk: destructive · Irreversible
await corsair.moco.api.projects.paymentSchedules.delete({ project_id: 1234567, id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
date?: string | null,
title?: string | null | null,
net_total?: number | null,
checked?: boolean | null,
billed?: boolean | null,
description?: string | null | null,
project?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null
} | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
paymentSchedules.get
projects.paymentSchedules.get
Get project payment schedule
Risk: read
await corsair.moco.api.projects.paymentSchedules.get({ project_id: 1234567, id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
date | string | null | No | — |
title | string | null | null | No | — |
net_total | number | null | No | — |
checked | boolean | null | No | — |
billed | boolean | null | No | — |
description | string | null | null | No | — |
project | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null
} | null
paymentSchedules.list
projects.paymentSchedules.list
List project payment schedules, one page at a time
Risk: read
await corsair.moco.api.projects.paymentSchedules.list({ project_id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
from | string | No | Payment schedule date range start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
to | string | No | Payment schedule date range end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
checked | boolean | No | — |
company_id | number | No | — |
project_id | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
date?: string | null,
title?: string | null | null,
net_total?: number | null,
checked?: boolean | null,
billed?: boolean | null,
description?: string | null | null,
project?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null
} | null,
created_at?: string | null,
updated_at?: string | null
}[]
paymentSchedules.listAll
projects.paymentSchedules.listAll
List project payment schedules (all projects), one page at a time
Risk: read
await corsair.moco.api.projects.paymentSchedules.listAll({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
from | string | No | Payment schedule date range start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
to | string | No | Payment schedule date range end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
checked | boolean | No | — |
company_id | number | No | — |
project_id | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
date?: string | null,
title?: string | null | null,
net_total?: number | null,
checked?: boolean | null,
billed?: boolean | null,
description?: string | null | null,
project?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null
} | null,
created_at?: string | null,
updated_at?: string | null
}[]
paymentSchedules.update
projects.paymentSchedules.update
Update project payment schedule
Risk: write
await corsair.moco.api.projects.paymentSchedules.update({ project_id: 1234567, id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
id | number | Yes | Resource ID. |
date | string | No | — |
net_total | number | No | — |
title | string | No | — |
checked | boolean | No | — |
description | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
date | string | null | No | — |
title | string | null | null | No | — |
net_total | number | null | No | — |
checked | boolean | null | No | — |
billed | boolean | null | No | — |
description | string | null | null | No | — |
project | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null
} | null
recurringExpenses.create
projects.recurringExpenses.create
Create project recurring expense
Risk: write
await corsair.moco.api.projects.recurringExpenses.create({ project_id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
start_date | string | No | — |
finish_date | string | No | — |
period | weekly | biweekly | monthly | quarterly | biannual | annual | annual2 | annual3 | No | — |
title | string | No | — |
description | string | No | — |
quantity | number | No | — |
unit | string | No | — |
unit_price | number | No | — |
unit_cost | number | No | — |
billable | boolean | No | — |
budget_relevant | boolean | No | — |
service_period_direction | none | forward | backward | No | — |
billing_in_advance | boolean | No | Deprecated alias for service_period_direction (true=forward, false=backward). |
purchase_assignment_locked | boolean | No | — |
user_id | number | No | — |
revenue_category_id | number | No | Rejected with 422 when the revenue category only applies to tasks, unless the stored value is unchanged. |
custom_properties | object | No | — |
custom_properties full type
custom_properties full type
{
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
start_date | string | null | No | — |
finish_date | string | null | null | No | — |
recur_next_date | string | null | No | — |
period | string | null | No | — |
title | string | null | No | — |
description | string | null | null | No | — |
quantity | number | null | No | — |
unit | string | null | null | No | — |
unit_price | number | null | No | — |
unit_cost | number | null | No | — |
price | number | null | No | — |
cost | number | null | No | — |
currency | string | null | No | — |
budget_relevant | boolean | null | No | — |
billable | boolean | null | No | — |
purchase_assignment_locked | boolean | null | No | — |
service_period_direction | string | null | No | — |
custom_properties | object | null | No | — |
project | object | null | No | Minimal project reference used in nested resources. |
user | object | null | No | Minimal user reference used in nested resources. |
revenue_category | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
custom_properties full type
custom_properties full type
{
} | null
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
revenue_category full type
revenue_category full type
{
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null
recurringExpenses.delete
projects.recurringExpenses.delete
Delete project recurring expense
Risk: destructive · Irreversible
await corsair.moco.api.projects.recurringExpenses.delete({ project_id: 1234567, id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
start_date?: string | null,
finish_date?: string | null | null,
recur_next_date?: string | null,
period?: string | null,
title?: string | null,
description?: string | null | null,
quantity?: number | null,
unit?: string | null | null,
unit_price?: number | null,
unit_cost?: number | null,
price?: number | null,
cost?: number | null,
currency?: string | null,
budget_relevant?: boolean | null,
billable?: boolean | null,
purchase_assignment_locked?: boolean | null,
service_period_direction?: string | null,
custom_properties?: {
} | null,
project?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
recurringExpenses.get
projects.recurringExpenses.get
Get project recurring expense
Risk: read
await corsair.moco.api.projects.recurringExpenses.get({ project_id: 1234567, id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
start_date | string | null | No | — |
finish_date | string | null | null | No | — |
recur_next_date | string | null | No | — |
period | string | null | No | — |
title | string | null | No | — |
description | string | null | null | No | — |
quantity | number | null | No | — |
unit | string | null | null | No | — |
unit_price | number | null | No | — |
unit_cost | number | null | No | — |
price | number | null | No | — |
cost | number | null | No | — |
currency | string | null | No | — |
budget_relevant | boolean | null | No | — |
billable | boolean | null | No | — |
purchase_assignment_locked | boolean | null | No | — |
service_period_direction | string | null | No | — |
custom_properties | object | null | No | — |
project | object | null | No | Minimal project reference used in nested resources. |
user | object | null | No | Minimal user reference used in nested resources. |
revenue_category | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
custom_properties full type
custom_properties full type
{
} | null
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
revenue_category full type
revenue_category full type
{
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null
recurringExpenses.list
projects.recurringExpenses.list
List project recurring expenses, one page at a time
Risk: read
await corsair.moco.api.projects.recurringExpenses.list({ project_id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
sort_by | string | No | Field and optional direction, e.g. title desc. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
custom_properties | Record<string, string | boolean | string[]> | No | Filter by custom field values. Unknown custom field names return an empty result set. For MultiSelect fields, pass multiple values using custom_properties[Field][]=A&custom_properties[Field][]=B. Boolean fields should be queried with true or false. |
project_id | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
start_date?: string | null,
finish_date?: string | null | null,
recur_next_date?: string | null,
period?: string | null,
title?: string | null,
description?: string | null | null,
quantity?: number | null,
unit?: string | null | null,
unit_price?: number | null,
unit_cost?: number | null,
price?: number | null,
cost?: number | null,
currency?: string | null,
budget_relevant?: boolean | null,
billable?: boolean | null,
purchase_assignment_locked?: boolean | null,
service_period_direction?: string | null,
custom_properties?: {
} | null,
project?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
recurringExpenses.recur
projects.recurringExpenses.recur
Recur project recurring expense
Risk: write
await corsair.moco.api.projects.recurringExpenses.recur({ project_id: 1234567, id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Expense ID. |
date | string | null | No | Expense date. |
title | string | null | No | Expense title. |
description | string | null | null | No | Expense description. |
quantity | number | null | No | Quantity. |
unit | string | null | null | No | Unit label. |
unit_price | number | null | No | Unit selling price. |
unit_cost | number | null | No | Unit internal cost. |
price | number | null | No | Total selling price. |
cost | number | null | No | Total internal cost. |
currency | string | null | No | Expense currency. |
budget_relevant | boolean | null | No | Whether this expense affects budget calculations. |
billable | boolean | null | No | Whether this expense can be billed to customer. |
billed | boolean | null | No | Whether this expense has already been billed. |
purchase_assignment_locked | boolean | null | No | Whether purchase assignment is locked. |
cost_total_planned | number | null | No | Planned cost total. |
planned_purchase_date | string | null | null | No | Planned purchase date. |
invoice_id | number | null | null | No | Linked invoice ID if billed. |
service_period | string | null | null | No | Human-readable service period. |
service_period_from | string | null | null | No | Service period start date. |
service_period_to | string | null | null | No | Service period end date. |
recurring_expense_id | number | null | null | No | Linked recurring expense ID. |
file_url | string | null | null | No | Linked document URL. |
custom_properties | object | null | No | Custom field values keyed by custom field name. |
company | object | null | No | Minimal company reference used in nested resources. |
project | object | null | No | Minimal project reference used in nested resources. |
group | object | null | No | — |
purchase_items | object[] | null | No | Linked purchase item allocations. |
user | object | null | No | Minimal user reference used in nested resources. |
revenue_category | object | null | No | — |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
custom_properties full type
custom_properties full type
{
} | null
company full type
company full type
{
id?: number | null,
name?: string | null
} | null
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null
group full type
group full type
{
id?: number | null,
title?: string | null,
budget?: number | null
} | null | null
purchase_items full type
purchase_items full type
{
id?: number | null,
title?: string | null | null,
net_total?: number | null,
currency?: string | null,
purchase_id?: number | null,
document?: {
id?: number | null,
file_url?: string | null | null
} | null | null
}[] | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
revenue_category full type
revenue_category full type
{
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null
recurringExpenses.update
projects.recurringExpenses.update
Update project recurring expense
Risk: write
await corsair.moco.api.projects.recurringExpenses.update({ project_id: 1234567, id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
id | number | Yes | Resource ID. |
start_date | string | No | — |
finish_date | string | No | — |
period | weekly | biweekly | monthly | quarterly | biannual | annual | annual2 | annual3 | No | — |
title | string | No | — |
description | string | No | — |
quantity | number | No | — |
unit | string | No | — |
unit_price | number | No | — |
unit_cost | number | No | — |
billable | boolean | No | — |
budget_relevant | boolean | No | — |
service_period_direction | none | forward | backward | No | — |
billing_in_advance | boolean | No | Deprecated alias for service_period_direction (true=forward, false=backward). |
purchase_assignment_locked | boolean | No | — |
user_id | number | No | — |
revenue_category_id | number | No | Rejected with 422 when the revenue category only applies to tasks, unless the stored value is unchanged. |
custom_properties | object | No | — |
custom_properties full type
custom_properties full type
{
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
start_date | string | null | No | — |
finish_date | string | null | null | No | — |
recur_next_date | string | null | No | — |
period | string | null | No | — |
title | string | null | No | — |
description | string | null | null | No | — |
quantity | number | null | No | — |
unit | string | null | null | No | — |
unit_price | number | null | No | — |
unit_cost | number | null | No | — |
price | number | null | No | — |
cost | number | null | No | — |
currency | string | null | No | — |
budget_relevant | boolean | null | No | — |
billable | boolean | null | No | — |
purchase_assignment_locked | boolean | null | No | — |
service_period_direction | string | null | No | — |
custom_properties | object | null | No | — |
project | object | null | No | Minimal project reference used in nested resources. |
user | object | null | No | Minimal user reference used in nested resources. |
revenue_category | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
custom_properties full type
custom_properties full type
{
} | null
project full type
project full type
{
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
revenue_category full type
revenue_category full type
{
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null
report
projects.report
Read a project business report: budget, invoiced totals, hours and costs
Risk: read
await corsair.moco.api.projects.report({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
share
projects.share
Enable project report sharing: enables public customer report sharing for the selected project
Risk: write
await corsair.moco.api.projects.share({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
active | boolean | null | No | — |
url | string | null | null | No | — |
tasks.create
projects.tasks.create
Create project task
Risk: write
await corsair.moco.api.projects.tasks.create({ project_id: 1234567, name: 'Design', billable: true });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
name | string | No | — |
description | string | No | — |
hourly_rate | number | No | — |
billable | boolean | No | — |
active | boolean | No | — |
budget | number | No | — |
index | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
description | string | null | null | No | — |
billable | boolean | null | No | — |
active | boolean | null | No | — |
budget | number | null | null | No | — |
hourly_rate | number | null | No | — |
revenue_category | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
revenue_category full type
revenue_category full type
{
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null
tasks.delete
projects.tasks.delete
Delete project task
Risk: destructive · Irreversible
await corsair.moco.api.projects.tasks.delete({ project_id: 1234567, id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
name?: string | null,
description?: string | null | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
tasks.deleteAll
projects.tasks.deleteAll
Delete all project tasks
Risk: destructive · Irreversible
await corsair.moco.api.projects.tasks.deleteAll({ project_id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
success | true | Yes | MOCO accepted the call; it answered with no body. |
tasks.get
projects.tasks.get
Get project task
Risk: read
await corsair.moco.api.projects.tasks.get({ project_id: 1234567, id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
description | string | null | null | No | — |
billable | boolean | null | No | — |
active | boolean | null | No | — |
budget | number | null | null | No | — |
hourly_rate | number | null | No | — |
revenue_category | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
revenue_category full type
revenue_category full type
{
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null
tasks.list
projects.tasks.list
List project tasks, one page at a time
Risk: read
await corsair.moco.api.projects.tasks.list({ project_id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
project_id | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
name?: string | null,
description?: string | null | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
tasks.update
projects.tasks.update
Update project task
Risk: write
await corsair.moco.api.projects.tasks.update({ project_id: 1234567, id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
project_id | number | Yes | — |
id | number | Yes | Resource ID. |
name | string | No | — |
description | string | No | — |
hourly_rate | number | No | — |
billable | boolean | No | — |
active | boolean | No | — |
budget | number | No | — |
index | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
description | string | null | null | No | — |
billable | boolean | null | No | — |
active | boolean | null | No | — |
budget | number | null | null | No | — |
hourly_rate | number | null | No | — |
revenue_category | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
revenue_category full type
revenue_category full type
{
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null
unarchive
projects.unarchive
Unarchive a project
Risk: write
await corsair.moco.api.projects.unarchive({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Internal project ID. |
identifier | string | null | null | No | Human-readable project number/identifier. |
name | string | null | No | Project name. |
active | boolean | null | No | Whether the project is active. |
billable | boolean | null | No | Whether project work is billable. |
fixed_price | boolean | null | No | Whether the project is fixed price. |
retainer | boolean | null | No | Whether the project is a retainer project. |
start_date | string | null | null | No | Project start date in ISO-8601 date format. |
finish_date | string | null | null | No | Project finish date in ISO-8601 date format. |
currency | string | null | No | Billing currency of the project. |
billing_variant | string | null | null | No | How rates are applied: - project: one project rate - task: per task rate - user: per assigned user rate |
billing_address | string | null | null | No | Billing address used for documents. |
billing_email_to | string | null | null | No | Default recipient email(s) for billing. |
billing_email_cc | string | null | null | No | Default CC recipient email(s) for billing. |
billing_notes | string | null | null | No | Internal or document billing notes. |
setting_include_time_report | boolean | null | No | If true, include time report on generated billing documents. |
budget | number | null | null | No | Budget amount in project currency. |
budget_monthly | number | null | null | No | Monthly budget for retainers. |
budget_expenses | number | null | null | No | Expense budget amount. |
hourly_rate | number | null | No | Effective hourly rate according to billing variant. |
info | string | null | null | No | Free text information field. |
retainer_billing_date | number | null | null | No | Day of month used for retainer billing. |
retainer_billing_title | string | null | null | No | Default title used for retainer schedule items. |
retainer_billing_description | string | null | null | No | Default description used for retainer schedule items. |
color | string | null | null | No | Project color in hex format. |
customer_report_url | string | null | null | No | Public customer report URL when sharing is enabled. |
tags | string[] | null | No | Tag names assigned to this project. |
labels | string[] | null | No | Deprecated alias for tags. |
custom_properties | object | null | No | Custom field values keyed by custom field name. |
leader | object | null | No | Minimal user reference used in nested resources. |
co_leader | object | null | No | Minimal user reference used in nested resources. |
customer | object | null | No | Customer representation. Returns {id, name} by default; full company payload when include_company=true is passed. |
tasks | object[] | null | No | Project tasks/services. |
contracts | object[] | null | No | Assigned user contracts. |
deal | object | null | No | — |
project_group | object | null | No | — |
billing_contact | object | null | No | Minimal user reference used in nested resources. |
contact | object | null | No | Minimal user reference used in nested resources. |
secondary_contact | object | null | No | Minimal user reference used in nested resources. |
archived_on | string | null | null | No | Timestamp when project was archived. |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
custom_properties full type
custom_properties full type
{
} | null
leader full type
leader full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
co_leader full type
co_leader full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
customer full type
customer full type
{
id?: number | null,
name?: string | null
} | {
id?: number | null,
type?: string | null,
identifier?: string | null | null,
name?: string | null,
website?: string | null | null,
email?: string | null | null,
billing_email_cc?: string | null | null,
phone?: string | null | null,
fax?: string | null | null,
address?: string | null | null,
country_code?: string | null | null,
vat_identifier?: string | null | null,
alternative_correspondence_language?: boolean | null,
english_correspondence_language?: boolean | null,
tags?: string[] | null,
labels?: string[] | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
info?: string | null | null,
footer?: string | null | null,
custom_properties?: {
} | null,
active?: boolean | null,
archived_on?: string | null | null,
currency?: string | null | null,
customer_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null,
supplier_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null,
default_invoice_due_days?: number | null | null,
invoice_format?: string | null | null,
default_payment_means?: string | null | null,
projects?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
active?: boolean | null,
billable?: boolean | null
}[] | null,
iban?: string | null | null,
bank_bic?: string | null | null,
bank_owner?: string | null | null,
debit_number?: number | null | null,
credit_number?: number | null | null,
created_at?: string | null,
updated_at?: string | null
} | null
tasks full type
tasks full type
{
id?: number | null,
name?: string | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null | null,
description?: string | null | null
}[] | null
contracts full type
contracts full type
{
id?: number | null,
user_id?: number | null,
firstname?: string | null,
lastname?: string | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null | null
}[] | null
deal full type
deal full type
{
id?: number | null,
name?: string | null
} | null | null
project_group full type
project_group full type
{
id?: number | null,
name?: string | null
} | null | null
billing_contact full type
billing_contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
contact full type
contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
secondary_contact full type
secondary_contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
unassignProjectGroup
projects.unassignProjectGroup
Unassign project from project group: removes the project-group assignment from a project
Risk: write
await corsair.moco.api.projects.unassignProjectGroup({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Internal project ID. |
identifier | string | null | null | No | Human-readable project number/identifier. |
name | string | null | No | Project name. |
active | boolean | null | No | Whether the project is active. |
billable | boolean | null | No | Whether project work is billable. |
fixed_price | boolean | null | No | Whether the project is fixed price. |
retainer | boolean | null | No | Whether the project is a retainer project. |
start_date | string | null | null | No | Project start date in ISO-8601 date format. |
finish_date | string | null | null | No | Project finish date in ISO-8601 date format. |
currency | string | null | No | Billing currency of the project. |
billing_variant | string | null | null | No | How rates are applied: - project: one project rate - task: per task rate - user: per assigned user rate |
billing_address | string | null | null | No | Billing address used for documents. |
billing_email_to | string | null | null | No | Default recipient email(s) for billing. |
billing_email_cc | string | null | null | No | Default CC recipient email(s) for billing. |
billing_notes | string | null | null | No | Internal or document billing notes. |
setting_include_time_report | boolean | null | No | If true, include time report on generated billing documents. |
budget | number | null | null | No | Budget amount in project currency. |
budget_monthly | number | null | null | No | Monthly budget for retainers. |
budget_expenses | number | null | null | No | Expense budget amount. |
hourly_rate | number | null | No | Effective hourly rate according to billing variant. |
info | string | null | null | No | Free text information field. |
retainer_billing_date | number | null | null | No | Day of month used for retainer billing. |
retainer_billing_title | string | null | null | No | Default title used for retainer schedule items. |
retainer_billing_description | string | null | null | No | Default description used for retainer schedule items. |
color | string | null | null | No | Project color in hex format. |
customer_report_url | string | null | null | No | Public customer report URL when sharing is enabled. |
tags | string[] | null | No | Tag names assigned to this project. |
labels | string[] | null | No | Deprecated alias for tags. |
custom_properties | object | null | No | Custom field values keyed by custom field name. |
leader | object | null | No | Minimal user reference used in nested resources. |
co_leader | object | null | No | Minimal user reference used in nested resources. |
customer | object | null | No | Customer representation. Returns {id, name} by default; full company payload when include_company=true is passed. |
tasks | object[] | null | No | Project tasks/services. |
contracts | object[] | null | No | Assigned user contracts. |
deal | object | null | No | — |
project_group | object | null | No | — |
billing_contact | object | null | No | Minimal user reference used in nested resources. |
contact | object | null | No | Minimal user reference used in nested resources. |
secondary_contact | object | null | No | Minimal user reference used in nested resources. |
archived_on | string | null | null | No | Timestamp when project was archived. |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
custom_properties full type
custom_properties full type
{
} | null
leader full type
leader full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
co_leader full type
co_leader full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
customer full type
customer full type
{
id?: number | null,
name?: string | null
} | {
id?: number | null,
type?: string | null,
identifier?: string | null | null,
name?: string | null,
website?: string | null | null,
email?: string | null | null,
billing_email_cc?: string | null | null,
phone?: string | null | null,
fax?: string | null | null,
address?: string | null | null,
country_code?: string | null | null,
vat_identifier?: string | null | null,
alternative_correspondence_language?: boolean | null,
english_correspondence_language?: boolean | null,
tags?: string[] | null,
labels?: string[] | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
info?: string | null | null,
footer?: string | null | null,
custom_properties?: {
} | null,
active?: boolean | null,
archived_on?: string | null | null,
currency?: string | null | null,
customer_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null,
supplier_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null,
default_invoice_due_days?: number | null | null,
invoice_format?: string | null | null,
default_payment_means?: string | null | null,
projects?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
active?: boolean | null,
billable?: boolean | null
}[] | null,
iban?: string | null | null,
bank_bic?: string | null | null,
bank_owner?: string | null | null,
debit_number?: number | null | null,
credit_number?: number | null | null,
created_at?: string | null,
updated_at?: string | null
} | null
tasks full type
tasks full type
{
id?: number | null,
name?: string | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null | null,
description?: string | null | null
}[] | null
contracts full type
contracts full type
{
id?: number | null,
user_id?: number | null,
firstname?: string | null,
lastname?: string | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null | null
}[] | null
deal full type
deal full type
{
id?: number | null,
name?: string | null
} | null | null
project_group full type
project_group full type
{
id?: number | null,
name?: string | null
} | null | null
billing_contact full type
billing_contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
contact full type
contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
secondary_contact full type
secondary_contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
update
projects.update
Update a project
Risk: write
await corsair.moco.api.projects.update({ id: 1234567, name: 'Website Relaunch 2026' });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
identifier | string | No | Project number/identifier. Required when number ranges are manual. |
name | string | No | Project name. |
fixed_price | boolean | No | Whether the project is fixed price. |
company_id | number | No | Customer company ID. |
customer_id | number | No | Deprecated alias of company_id. |
deal_id | number | No | Linked deal ID. |
project_group_id | number | No | Linked project group ID. |
leader_id | number | No | Main responsible user ID. |
co_leader_id | number | No | Secondary responsible user ID. |
contact_id | number | No | Main external contact ID. |
secondary_contact_id | number | No | Secondary external contact ID. |
billing_contact_id | number | No | Billing contact ID. |
info | string | No | Internal project notes. |
start_date | string | No | Project start date. |
finish_date | string | No | Project finish date. |
retainer | boolean | No | Whether project is billed as retainer. |
retainer_billing_date | number | No | Retainer billing day in month (1-31). |
retainer_billing_title | string | No | Default title for generated retainer items. |
retainer_billing_description | string | No | Default description for generated retainer items. |
billing_variant | project | task | user | billing_variant_rate_per_project | billing_variant_rate_per_task | billing_variant_rate_per_user | No | Pricing mode for hourly rates. Preferred values are project, task, user. billing_variant_rate_per_project, billing_variant_rate_per_task, billing_variant_rate_per_user are also accepted. |
hourly_rate | number | No | Effective hourly rate for project pricing. |
budget | number | No | Project budget in project currency. |
budget_monthly | number | No | Monthly budget for retainers. |
budget_expenses | number | No | Expense budget in project currency. |
currency | string | No | Project currency. Mandatory on create and immutable afterwards. |
billing_address | string | No | Billing address for generated documents. |
billing_notes | string | No | Notes printed or used during billing. |
setting_include_time_report | boolean | No | Include time report in billing output. |
billing_email_to | string | No | Default recipient email(s), semicolon-separated. |
billing_email_cc | string | No | Default CC email(s), semicolon-separated. |
skip_favorite | boolean | No | Do not add this project to favorites for the creator. |
tags | string[] | No | Project tags. |
labels | string[] | No | Deprecated alias for tags. |
custom_properties | object | No | Custom field values keyed by custom field name. |
custom_properties full type
custom_properties full type
{
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Internal project ID. |
identifier | string | null | null | No | Human-readable project number/identifier. |
name | string | null | No | Project name. |
active | boolean | null | No | Whether the project is active. |
billable | boolean | null | No | Whether project work is billable. |
fixed_price | boolean | null | No | Whether the project is fixed price. |
retainer | boolean | null | No | Whether the project is a retainer project. |
start_date | string | null | null | No | Project start date in ISO-8601 date format. |
finish_date | string | null | null | No | Project finish date in ISO-8601 date format. |
currency | string | null | No | Billing currency of the project. |
billing_variant | string | null | null | No | How rates are applied: - project: one project rate - task: per task rate - user: per assigned user rate |
billing_address | string | null | null | No | Billing address used for documents. |
billing_email_to | string | null | null | No | Default recipient email(s) for billing. |
billing_email_cc | string | null | null | No | Default CC recipient email(s) for billing. |
billing_notes | string | null | null | No | Internal or document billing notes. |
setting_include_time_report | boolean | null | No | If true, include time report on generated billing documents. |
budget | number | null | null | No | Budget amount in project currency. |
budget_monthly | number | null | null | No | Monthly budget for retainers. |
budget_expenses | number | null | null | No | Expense budget amount. |
hourly_rate | number | null | No | Effective hourly rate according to billing variant. |
info | string | null | null | No | Free text information field. |
retainer_billing_date | number | null | null | No | Day of month used for retainer billing. |
retainer_billing_title | string | null | null | No | Default title used for retainer schedule items. |
retainer_billing_description | string | null | null | No | Default description used for retainer schedule items. |
color | string | null | null | No | Project color in hex format. |
customer_report_url | string | null | null | No | Public customer report URL when sharing is enabled. |
tags | string[] | null | No | Tag names assigned to this project. |
labels | string[] | null | No | Deprecated alias for tags. |
custom_properties | object | null | No | Custom field values keyed by custom field name. |
leader | object | null | No | Minimal user reference used in nested resources. |
co_leader | object | null | No | Minimal user reference used in nested resources. |
customer | object | null | No | Customer representation. Returns {id, name} by default; full company payload when include_company=true is passed. |
tasks | object[] | null | No | Project tasks/services. |
contracts | object[] | null | No | Assigned user contracts. |
deal | object | null | No | — |
project_group | object | null | No | — |
billing_contact | object | null | No | Minimal user reference used in nested resources. |
contact | object | null | No | Minimal user reference used in nested resources. |
secondary_contact | object | null | No | Minimal user reference used in nested resources. |
archived_on | string | null | null | No | Timestamp when project was archived. |
created_at | string | null | No | Creation timestamp in UTC. |
updated_at | string | null | No | Last update timestamp in UTC. |
custom_properties full type
custom_properties full type
{
} | null
leader full type
leader full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
co_leader full type
co_leader full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
customer full type
customer full type
{
id?: number | null,
name?: string | null
} | {
id?: number | null,
type?: string | null,
identifier?: string | null | null,
name?: string | null,
website?: string | null | null,
email?: string | null | null,
billing_email_cc?: string | null | null,
phone?: string | null | null,
fax?: string | null | null,
address?: string | null | null,
country_code?: string | null | null,
vat_identifier?: string | null | null,
alternative_correspondence_language?: boolean | null,
english_correspondence_language?: boolean | null,
tags?: string[] | null,
labels?: string[] | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
info?: string | null | null,
footer?: string | null | null,
custom_properties?: {
} | null,
active?: boolean | null,
archived_on?: string | null | null,
currency?: string | null | null,
customer_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
} | null | null,
supplier_vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null,
default_invoice_due_days?: number | null | null,
invoice_format?: string | null | null,
default_payment_means?: string | null | null,
projects?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
active?: boolean | null,
billable?: boolean | null
}[] | null,
iban?: string | null | null,
bank_bic?: string | null | null,
bank_owner?: string | null | null,
debit_number?: number | null | null,
credit_number?: number | null | null,
created_at?: string | null,
updated_at?: string | null
} | null
tasks full type
tasks full type
{
id?: number | null,
name?: string | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null | null,
description?: string | null | null
}[] | null
contracts full type
contracts full type
{
id?: number | null,
user_id?: number | null,
firstname?: string | null,
lastname?: string | null,
billable?: boolean | null,
active?: boolean | null,
budget?: number | null | null,
hourly_rate?: number | null | null
}[] | null
deal full type
deal full type
{
id?: number | null,
name?: string | null
} | null | null
project_group full type
project_group full type
{
id?: number | null,
name?: string | null
} | null | null
billing_contact full type
billing_contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
contact full type
contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
secondary_contact full type
secondary_contact full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
Purchases
assignToProject
purchases.assignToProject
Assign purchase item to project: assigns one purchase item to a project expense
Risk: write
await corsair.moco.api.purchases.assignToProject({ id: 1234567, project_id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
item_id | number | No | Single purchase item ID. |
project_id | number | Yes | — |
expense_id | number | No | Existing expense ID to attach to. |
notify_project_leader | boolean | No | — |
billable | boolean | No | — |
budget_relevant | boolean | No | — |
surcharge | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
success | true | Yes | MOCO accepted the call; it answered with no body. |
bookkeepingExports.create
purchases.bookkeepingExports.create
Create purchase bookkeeping export
Risk: destructive · Irreversible
await corsair.moco.api.purchases.bookkeepingExports.create({});
| Name | Type | Required | Description |
|---|---|---|---|
comment | string | No | — |
trigger_submission | boolean | No | Whether to trigger direct online submission. |
archive_after_export | boolean | No | — |
purchase_ids | number[] | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
from | string | null | No | — |
to | string | null | No | — |
purchase_ids | number[] | null | No | — |
comment | string | null | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
status | string | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
bookkeepingExports.get
purchases.bookkeepingExports.get
Get purchase bookkeeping export
Risk: read
await corsair.moco.api.purchases.bookkeepingExports.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
from | string | null | No | — |
to | string | null | No | — |
purchase_ids | number[] | null | No | — |
comment | string | null | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
status | string | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
bookkeepingExports.list
purchases.bookkeepingExports.list
List purchase bookkeeping exports, one page at a time
Risk: read
await corsair.moco.api.purchases.bookkeepingExports.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
from?: string | null,
to?: string | null,
purchase_ids?: number[] | null,
comment?: string | null | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
status?: string | null,
created_at?: string | null,
updated_at?: string | null
}[]
budgets.create
purchases.budgets.create
Create purchase budget: create a new purchase budget
Risk: write
await corsair.moco.api.purchases.budgets.create({ title: 'Website Relaunch' });
| Name | Type | Required | Description |
|---|---|---|---|
title | string | Yes | — |
cost_category | string | null | No | — |
active | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
year | number | null | No | — |
title | string | null | No | — |
active | boolean | null | No | — |
cost_category | string | null | null | No | — |
target | number | null | No | — |
exhaused | number | null | No | Kept for API compatibility (original key spelling). |
planned | number | null | No | — |
remaining | number | null | No | — |
budgets.delete
purchases.budgets.delete
Delete a purchase budget
Risk: destructive · Irreversible
await corsair.moco.api.purchases.budgets.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
year?: number | null,
title?: string | null,
active?: boolean | null,
cost_category?: string | null | null,
target?: number | null,
exhaused?: number | null,
planned?: number | null,
remaining?: number | null
} | {
success: true
}
budgets.list
purchases.budgets.list
List purchase budgets
Risk: read
await corsair.moco.api.purchases.budgets.list({});
| Name | Type | Required | Description |
|---|---|---|---|
year | number | No | — |
object[]
Output full type
Output full type
{
id?: number | null,
year?: number | null,
title?: string | null,
active?: boolean | null,
cost_category?: string | null | null,
target?: number | null,
exhaused?: number | null,
planned?: number | null,
remaining?: number | null
}[]
budgets.update
purchases.budgets.update
Update a purchase budget: update the title, cost category, or active status of a purchase budget
Risk: write
await corsair.moco.api.purchases.budgets.update({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
title | string | No | — |
cost_category | string | null | No | — |
active | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
year | number | null | No | — |
title | string | null | No | — |
active | boolean | null | No | — |
cost_category | string | null | null | No | — |
target | number | null | No | — |
exhaused | number | null | No | Kept for API compatibility (original key spelling). |
planned | number | null | No | — |
remaining | number | null | No | — |
budgets.updateTarget
purchases.budgets.updateTarget
Update budget target for a year
Risk: write
await corsair.moco.api.purchases.budgets.updateTarget({ id: 1234567, target_amount: 1 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
target_amount | number | Yes | The target budget amount. |
year | number | No | The budget year. Defaults to the current year if omitted. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
year | number | null | No | — |
title | string | null | No | — |
active | boolean | null | No | — |
cost_category | string | null | null | No | — |
target | number | null | No | — |
exhaused | number | null | No | Kept for API compatibility (original key spelling). |
planned | number | null | No | — |
remaining | number | null | No | — |
categories.get
purchases.categories.get
Get purchase category
Risk: read
await corsair.moco.api.purchases.categories.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
credit_account | string | null | null | No | — |
active | boolean | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
categories.list
purchases.categories.list
List purchase categories, one page at a time
Risk: read
await corsair.moco.api.purchases.categories.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
name?: string | null,
credit_account?: string | null | null,
active?: boolean | null,
created_at?: string | null,
updated_at?: string | null
}[]
create
purchases.create
Create purchase
Risk: write
await corsair.moco.api.purchases.create({});
| Name | Type | Required | Description |
|---|---|---|---|
date | string | No | — |
due_date | string | No | — |
service_period_from | string | No | — |
service_period_to | string | No | — |
company_id | number | No | — |
purchase_draft_id | number | No | — |
inbound_email_id | number | No | — |
receipt_identifier | string | No | — |
currency | string | No | — |
payment_method | bank_transfer | direct_debit | credit_card | paypal | cash | bank_transfer_swiss_qr_esr | No | — |
info | string | No | — |
iban | string | No | — |
reference | string | No | — |
bank_account_number | string | No | — |
title | string | No | — |
user_id | number | No | — |
purchase_budget_id | number | No | — |
cash_discount_rate | number | No | — |
cash_discount_until | string | No | — |
custom_properties | object | No | — |
tags | string[] | No | — |
items | object[] | No | — |
file | object | No | — |
custom_properties full type
custom_properties full type
{
}
items full type
items full type
{
title?: string,
total?: number,
tax?: number,
vat_code_id?: number,
tax_included?: boolean,
ksk_relevant?: boolean,
category_id?: number
}[]
file full type
file full type
{
filename?: string,
base64?: string
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
identifier | string | null | null | No | — |
receipt_identifier | string | null | null | No | — |
title | string | null | null | No | — |
info | string | null | null | No | — |
iban | string | null | null | No | — |
reference | string | null | null | No | — |
date | string | null | No | — |
due_date | string | null | null | No | — |
service_period_from | string | null | null | No | — |
service_period_to | string | null | null | No | — |
status | string | null | No | either pending for inbox, approved if archived. |
partially_paid | boolean | null | No | Indicates whether the purchase is partially paid. |
payment_method | string | null | null | No | — |
net_total | number | null | No | — |
gross_total | number | null | No | — |
currency | string | null | No | — |
file_url | string | null | null | No | — |
custom_properties | object | null | No | — |
tags | string[] | null | No | — |
company | object | null | No | — |
purchase_budget | object | null | No | — |
payments | object[] | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
refund_request | object | null | No | — |
approval_status | string | null | null | No | — |
credit_card_transaction | object | null | No | — |
items | object[] | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
custom_properties full type
custom_properties full type
{
} | null
company full type
company full type
{
id?: number | null,
name?: string | null,
iban?: string | null | null
} | null | null
purchase_budget full type
purchase_budget full type
{
id?: number | null,
title?: string | null
} | null | null
payments full type
payments full type
{
id?: number | null,
date?: string | null,
total?: number | null,
currency?: string | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
}[] | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
refund_request full type
refund_request full type
{
id?: number | null,
comment?: string | null,
user_id?: number | null
} | null | null
credit_card_transaction full type
credit_card_transaction full type
{
source?: string | null,
transaction_identifier?: string | null
} | null | null
items full type
items full type
{
id?: number | null,
title?: string | null | null,
net_total?: number | null,
tax_total?: number | null,
tax?: number | null,
vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null,
tax_included?: boolean | null,
ksk_relevant?: boolean | null,
gross_total?: number | null,
category?: {
id?: number | null,
name?: string | null,
credit_account?: string | null | null
} | null | null,
supplier_credit_number?: number | null | null,
expense?: {
id?: number | null,
project?: {
id?: number | null,
company_id?: number | null
} | null
} | null | null,
receipt?: {
id?: number | null,
title?: string | null,
date?: string | null,
attachment_url?: string | null | null
} | null | null
}[] | null
delete
purchases.delete
Delete purchase: deletion is possible only for pending purchases without payments
Risk: destructive · Irreversible
await corsair.moco.api.purchases.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
identifier?: string | null | null,
receipt_identifier?: string | null | null,
title?: string | null | null,
info?: string | null | null,
iban?: string | null | null,
reference?: string | null | null,
date?: string | null,
due_date?: string | null | null,
service_period_from?: string | null | null,
service_period_to?: string | null | null,
status?: string | null,
partially_paid?: boolean | null,
payment_method?: string | null | null,
net_total?: number | null,
gross_total?: number | null,
currency?: string | null,
file_url?: string | null | null,
custom_properties?: {
} | null,
tags?: string[] | null,
company?: {
id?: number | null,
name?: string | null,
iban?: string | null | null
} | null | null,
purchase_budget?: {
id?: number | null,
title?: string | null
} | null | null,
payments?: {
id?: number | null,
date?: string | null,
total?: number | null,
currency?: string | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
}[] | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
refund_request?: {
id?: number | null,
comment?: string | null,
user_id?: number | null
} | null | null,
approval_status?: string | null | null,
credit_card_transaction?: {
source?: string | null,
transaction_identifier?: string | null
} | null | null,
items?: {
id?: number | null,
title?: string | null | null,
net_total?: number | null,
tax_total?: number | null,
tax?: number | null,
vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null,
tax_included?: boolean | null,
ksk_relevant?: boolean | null,
gross_total?: number | null,
category?: {
id?: number | null,
name?: string | null,
credit_account?: string | null | null
} | null | null,
supplier_credit_number?: number | null | null,
expense?: {
id?: number | null,
project?: {
id?: number | null,
company_id?: number | null
} | null
} | null | null,
receipt?: {
id?: number | null,
title?: string | null,
date?: string | null,
attachment_url?: string | null | null
} | null | null
}[] | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
drafts.create
purchases.drafts.create
Create purchase draft
Risk: write
await corsair.moco.api.purchases.drafts.create({ title: 'Website Relaunch' });
| Name | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Title of the purchase draft. |
file | object | No | Optional file attachment. |
file full type
file full type
{
filename: string,
base64: string
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
title | string | null | null | No | — |
email_from | string | null | null | No | — |
email_body | string | null | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
file_url | string | null | null | No | — |
net_total | number | null | null | No | — |
gross_total | number | null | null | No | — |
credit_card_transaction | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
credit_card_transaction full type
credit_card_transaction full type
{
source?: string | null,
transaction_identifier?: string | null
} | null | null
drafts.delete
purchases.drafts.delete
Delete purchase draft
Risk: destructive · Irreversible
await corsair.moco.api.purchases.drafts.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
title?: string | null | null,
email_from?: string | null | null,
email_body?: string | null | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
file_url?: string | null | null,
net_total?: number | null | null,
gross_total?: number | null | null,
credit_card_transaction?: {
source?: string | null,
transaction_identifier?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
drafts.get
purchases.drafts.get
Get purchase draft
Risk: read
await corsair.moco.api.purchases.drafts.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
title | string | null | null | No | — |
email_from | string | null | null | No | — |
email_body | string | null | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
file_url | string | null | null | No | — |
net_total | number | null | null | No | — |
gross_total | number | null | null | No | — |
credit_card_transaction | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
credit_card_transaction full type
credit_card_transaction full type
{
source?: string | null,
transaction_identifier?: string | null
} | null | null
drafts.getPdf
purchases.drafts.getPdf
Download purchase draft PDF (a PDF, saved to Files)
Risk: read
await corsair.moco.api.purchases.drafts.getPdf({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
contentBase64 | string | No | The file, base64-encoded. Missing when the file came back as text or contentOmitted is set. |
text | string | No | The file as text, in place of contentBase64, when it is a text file (CSV, JSON, Markdown, XML and the like) in UTF-8. |
contentType | string | Yes | Media type of the file, for example application/pdf. |
byteLength | number | Yes | Size of the file in bytes. |
filename | string | No | The file name, when known. |
contentOmitted | not_requested | over_limit | No | Set when the content was left out: the caller did not ask for it, or the file was over the limit. |
fileId | string | No | Where the host saved the file. Over the limit it comes in place of the content; a host that keeps every file sets it beside the content too. On Corsair it is a Files id (fil_…): pass it to another app wherever that app takes a file URL, or read a text file or PDF with files.read_text. |
drafts.list
purchases.drafts.list
List purchase drafts, one page at a time
Risk: read
await corsair.moco.api.purchases.drafts.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
title?: string | null | null,
email_from?: string | null | null,
email_body?: string | null | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
file_url?: string | null | null,
net_total?: number | null | null,
gross_total?: number | null | null,
credit_card_transaction?: {
source?: string | null,
transaction_identifier?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
get
purchases.get
Get purchase
Risk: read
await corsair.moco.api.purchases.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
identifier | string | null | null | No | — |
receipt_identifier | string | null | null | No | — |
title | string | null | null | No | — |
info | string | null | null | No | — |
iban | string | null | null | No | — |
reference | string | null | null | No | — |
date | string | null | No | — |
due_date | string | null | null | No | — |
service_period_from | string | null | null | No | — |
service_period_to | string | null | null | No | — |
status | string | null | No | either pending for inbox, approved if archived. |
partially_paid | boolean | null | No | Indicates whether the purchase is partially paid. |
payment_method | string | null | null | No | — |
net_total | number | null | No | — |
gross_total | number | null | No | — |
currency | string | null | No | — |
file_url | string | null | null | No | — |
custom_properties | object | null | No | — |
tags | string[] | null | No | — |
company | object | null | No | — |
purchase_budget | object | null | No | — |
payments | object[] | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
refund_request | object | null | No | — |
approval_status | string | null | null | No | — |
credit_card_transaction | object | null | No | — |
items | object[] | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
custom_properties full type
custom_properties full type
{
} | null
company full type
company full type
{
id?: number | null,
name?: string | null,
iban?: string | null | null
} | null | null
purchase_budget full type
purchase_budget full type
{
id?: number | null,
title?: string | null
} | null | null
payments full type
payments full type
{
id?: number | null,
date?: string | null,
total?: number | null,
currency?: string | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
}[] | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
refund_request full type
refund_request full type
{
id?: number | null,
comment?: string | null,
user_id?: number | null
} | null | null
credit_card_transaction full type
credit_card_transaction full type
{
source?: string | null,
transaction_identifier?: string | null
} | null | null
items full type
items full type
{
id?: number | null,
title?: string | null | null,
net_total?: number | null,
tax_total?: number | null,
tax?: number | null,
vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null,
tax_included?: boolean | null,
ksk_relevant?: boolean | null,
gross_total?: number | null,
category?: {
id?: number | null,
name?: string | null,
credit_account?: string | null | null
} | null | null,
supplier_credit_number?: number | null | null,
expense?: {
id?: number | null,
project?: {
id?: number | null,
company_id?: number | null
} | null
} | null | null,
receipt?: {
id?: number | null,
title?: string | null,
date?: string | null,
attachment_url?: string | null | null
} | null | null
}[] | null
list
purchases.list
List purchases, one page at a time
Risk: read
await corsair.moco.api.purchases.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
id | string | No | Legacy alias for filtering by purchase ID (single ID or comma-separated list). |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
custom_properties | Record<string, string | boolean | string[]> | No | Filter by custom field values. Unknown custom field names return an empty result set. For MultiSelect fields, pass multiple values using custom_properties[Field][]=A&custom_properties[Field][]=B. Boolean fields should be queried with true or false. |
category_id | number | No | — |
term | string | No | — |
company_id | number | No | Supplier company ID. Use 0 for purchases without supplier. |
status | pending | archived | No | — |
approval_status | none | approved | denied | pending | No | — |
approver_user_id | number | No | — |
not_booked | boolean | No | — |
tags | string | No | Comma-separated list of tag names. |
tag_ids | string | No | Comma-separated list of tag IDs. |
date | string | No | Use date_from/date_to instead. Date range, e.g. 2020-02-01:2020-02-22. |
date_from | string | No | Purchase date range start. Format: YYYY-MM-DD (e.g. 2026-01-01). See also date_to. |
date_to | string | No | Purchase date range end. Format: YYYY-MM-DD (e.g. 2026-01-31). See also date_from. |
unpaid | boolean | No | — |
partially_paid | boolean | No | — |
payment_method | bank_transfer | direct_debit | credit_card | paypal | cash | bank_transfer_swiss_qr_esr | No | — |
receipt_identifier | string | No | — |
identifier | string | No | — |
user_id | number | No | User ID (responsible for purchase) |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
identifier?: string | null | null,
receipt_identifier?: string | null | null,
title?: string | null | null,
info?: string | null | null,
iban?: string | null | null,
reference?: string | null | null,
date?: string | null,
due_date?: string | null | null,
service_period_from?: string | null | null,
service_period_to?: string | null | null,
status?: string | null,
partially_paid?: boolean | null,
payment_method?: string | null | null,
net_total?: number | null,
gross_total?: number | null,
currency?: string | null,
file_url?: string | null | null,
custom_properties?: {
} | null,
tags?: string[] | null,
company?: {
id?: number | null,
name?: string | null,
iban?: string | null | null
} | null | null,
purchase_budget?: {
id?: number | null,
title?: string | null
} | null | null,
payments?: {
id?: number | null,
date?: string | null,
total?: number | null,
currency?: string | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
}[] | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
refund_request?: {
id?: number | null,
comment?: string | null,
user_id?: number | null
} | null | null,
approval_status?: string | null | null,
credit_card_transaction?: {
source?: string | null,
transaction_identifier?: string | null
} | null | null,
items?: {
id?: number | null,
title?: string | null | null,
net_total?: number | null,
tax_total?: number | null,
tax?: number | null,
vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null,
tax_included?: boolean | null,
ksk_relevant?: boolean | null,
gross_total?: number | null,
category?: {
id?: number | null,
name?: string | null,
credit_account?: string | null | null
} | null | null,
supplier_credit_number?: number | null | null,
expense?: {
id?: number | null,
project?: {
id?: number | null,
company_id?: number | null
} | null
} | null | null,
receipt?: {
id?: number | null,
title?: string | null,
date?: string | null,
attachment_url?: string | null | null
} | null | null
}[] | null,
created_at?: string | null,
updated_at?: string | null
}[]
payments.bulkCreate
purchases.payments.bulkCreate
Create purchase payments in bulk: requires application/json request body with bulk_data list
Risk: write
await corsair.moco.api.purchases.payments.bulkCreate({
bulk_data: [{ date: '2026-04-09', total: 1, purchase_id: 1 }],
});
| Name | Type | Required | Description |
|---|---|---|---|
bulk_data | object[] | Yes | — |
bulk_data full type
bulk_data full type
{
date: string,
total: number,
purchase_id: number,
description?: string,
currency?: string,
payment_account_id?: number,
partially_paid?: boolean
}[]
object[]
Output full type
Output full type
{
id?: number | null,
date?: string | null,
purchase?: {
id?: number | null,
identifier?: string | null | null,
title?: string | null | null,
paid_on?: string | null | null,
partially_paid?: boolean | null
} | null | null,
payment_account?: {
id?: number | null,
title?: string | null,
kind?: string | null
} | null | null,
total?: number | null,
currency?: string | null,
remittance_export_id?: number | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
payments.create
purchases.payments.create
Create purchase payment
Risk: write
await corsair.moco.api.purchases.payments.create({ date: '2026-04-09', total: 1, purchase_id: 1 });
| Name | Type | Required | Description |
|---|---|---|---|
date | string | Yes | — |
total | number | Yes | — |
purchase_id | number | Yes | — |
description | string | No | — |
currency | string | No | — |
payment_account_id | number | No | — |
partially_paid | boolean | No | Indicates whether the purchase is partially paid. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
date | string | null | No | — |
purchase | object | null | No | — |
payment_account | object | null | No | — |
total | number | null | No | — |
currency | string | null | No | — |
remittance_export_id | number | null | null | No | ID of the remittance export (Überweisungsauftrag) that triggered this payment, or null if the payment was created manually. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
purchase full type
purchase full type
{
id?: number | null,
identifier?: string | null | null,
title?: string | null | null,
paid_on?: string | null | null,
partially_paid?: boolean | null
} | null | null
payment_account full type
payment_account full type
{
id?: number | null,
title?: string | null,
kind?: string | null
} | null | null
payments.delete
purchases.payments.delete
Delete purchase payment
Risk: destructive · Irreversible
await corsair.moco.api.purchases.payments.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
date?: string | null,
purchase?: {
id?: number | null,
identifier?: string | null | null,
title?: string | null | null,
paid_on?: string | null | null,
partially_paid?: boolean | null
} | null | null,
payment_account?: {
id?: number | null,
title?: string | null,
kind?: string | null
} | null | null,
total?: number | null,
currency?: string | null,
remittance_export_id?: number | null | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
payments.get
purchases.payments.get
Get purchase payment
Risk: read
await corsair.moco.api.purchases.payments.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
date | string | null | No | — |
purchase | object | null | No | — |
payment_account | object | null | No | — |
total | number | null | No | — |
currency | string | null | No | — |
remittance_export_id | number | null | null | No | ID of the remittance export (Überweisungsauftrag) that triggered this payment, or null if the payment was created manually. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
purchase full type
purchase full type
{
id?: number | null,
identifier?: string | null | null,
title?: string | null | null,
paid_on?: string | null | null,
partially_paid?: boolean | null
} | null | null
payment_account full type
payment_account full type
{
id?: number | null,
title?: string | null,
kind?: string | null
} | null | null
payments.list
purchases.payments.list
List purchase payments, one page at a time
Risk: read
await corsair.moco.api.purchases.payments.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
purchase_id | number | string | No | Single ID or comma-separated list. |
date_from | string | No | Payment date range start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
date_to | string | No | Payment date range end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
date?: string | null,
purchase?: {
id?: number | null,
identifier?: string | null | null,
title?: string | null | null,
paid_on?: string | null | null,
partially_paid?: boolean | null
} | null | null,
payment_account?: {
id?: number | null,
title?: string | null,
kind?: string | null
} | null | null,
total?: number | null,
currency?: string | null,
remittance_export_id?: number | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
payments.update
purchases.payments.update
Update purchase payment
Risk: write
await corsair.moco.api.purchases.payments.update({
id: 1234567,
date: '2026-04-09',
total: 1,
purchase_id: 1,
});
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
date | string | Yes | — |
total | number | Yes | — |
purchase_id | number | Yes | — |
description | string | No | — |
currency | string | No | — |
payment_account_id | number | No | — |
partially_paid | boolean | No | Indicates whether the purchase is partially paid. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
date | string | null | No | — |
purchase | object | null | No | — |
payment_account | object | null | No | — |
total | number | null | No | — |
currency | string | null | No | — |
remittance_export_id | number | null | null | No | ID of the remittance export (Überweisungsauftrag) that triggered this payment, or null if the payment was created manually. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
purchase full type
purchase full type
{
id?: number | null,
identifier?: string | null | null,
title?: string | null | null,
paid_on?: string | null | null,
partially_paid?: boolean | null
} | null | null
payment_account full type
payment_account full type
{
id?: number | null,
title?: string | null,
kind?: string | null
} | null | null
storeDocument
purchases.storeDocument
Store purchase document: replaces or adds document after purchase creation
Risk: destructive
await corsair.moco.api.purchases.storeDocument({
id: 1234567,
file: { base64: 'JVBERi0xLjQKJSVFT0YK', filename: 'receipt.pdf', contentType: 'application/pdf' },
});
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
file | string | object | custom | Yes | A file: a public URL to it, or {url, filename?, contentType?}, or {base64, filename?, contentType?} for a small one. |
file full type
file full type
string | {
url: string,
filename?: string,
contentType?: string
} | {
base64: string,
filename?: string,
contentType?: string
} | custom
| Name | Type | Required | Description |
|---|---|---|---|
success | true | Yes | MOCO accepted the call; it answered with no body. |
update
purchases.update
Update purchase
Risk: write
await corsair.moco.api.purchases.update({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
date | string | No | — |
due_date | string | No | — |
service_period_from | string | No | — |
service_period_to | string | No | — |
company_id | number | No | — |
purchase_draft_id | number | No | — |
inbound_email_id | number | No | — |
receipt_identifier | string | No | — |
currency | string | No | — |
payment_method | bank_transfer | direct_debit | credit_card | paypal | cash | bank_transfer_swiss_qr_esr | No | — |
info | string | No | — |
iban | string | No | — |
reference | string | No | — |
bank_account_number | string | No | — |
title | string | No | — |
user_id | number | No | — |
purchase_budget_id | number | No | — |
cash_discount_rate | number | No | — |
cash_discount_until | string | No | — |
custom_properties | object | No | — |
tags | string[] | No | — |
file | object | No | — |
custom_properties full type
custom_properties full type
{
}
file full type
file full type
{
filename?: string,
base64?: string
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
identifier | string | null | null | No | — |
receipt_identifier | string | null | null | No | — |
title | string | null | null | No | — |
info | string | null | null | No | — |
iban | string | null | null | No | — |
reference | string | null | null | No | — |
date | string | null | No | — |
due_date | string | null | null | No | — |
service_period_from | string | null | null | No | — |
service_period_to | string | null | null | No | — |
status | string | null | No | either pending for inbox, approved if archived. |
partially_paid | boolean | null | No | Indicates whether the purchase is partially paid. |
payment_method | string | null | null | No | — |
net_total | number | null | No | — |
gross_total | number | null | No | — |
currency | string | null | No | — |
file_url | string | null | null | No | — |
custom_properties | object | null | No | — |
tags | string[] | null | No | — |
company | object | null | No | — |
purchase_budget | object | null | No | — |
payments | object[] | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
refund_request | object | null | No | — |
approval_status | string | null | null | No | — |
credit_card_transaction | object | null | No | — |
items | object[] | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
custom_properties full type
custom_properties full type
{
} | null
company full type
company full type
{
id?: number | null,
name?: string | null,
iban?: string | null | null
} | null | null
purchase_budget full type
purchase_budget full type
{
id?: number | null,
title?: string | null
} | null | null
payments full type
payments full type
{
id?: number | null,
date?: string | null,
total?: number | null,
currency?: string | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
}[] | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
refund_request full type
refund_request full type
{
id?: number | null,
comment?: string | null,
user_id?: number | null
} | null | null
credit_card_transaction full type
credit_card_transaction full type
{
source?: string | null,
transaction_identifier?: string | null
} | null | null
items full type
items full type
{
id?: number | null,
title?: string | null | null,
net_total?: number | null,
tax_total?: number | null,
tax?: number | null,
vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null,
tax_included?: boolean | null,
ksk_relevant?: boolean | null,
gross_total?: number | null,
category?: {
id?: number | null,
name?: string | null,
credit_account?: string | null | null
} | null | null,
supplier_credit_number?: number | null | null,
expense?: {
id?: number | null,
project?: {
id?: number | null,
company_id?: number | null
} | null
} | null | null,
receipt?: {
id?: number | null,
title?: string | null,
date?: string | null,
attachment_url?: string | null | null
} | null | null
}[] | null
updateStatus
purchases.updateStatus
Update purchase status
Risk: write
await corsair.moco.api.purchases.updateStatus({ id: 1234567, status: 'pending' });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
status | pending | approved | archived | Yes | Supports legacy approved (mapped to internal archived) and direct archived. |
| Name | Type | Required | Description |
|---|---|---|---|
success | true | Yes | MOCO accepted the call; it answered with no body. |
Receipts
create
receipts.create
Create receipt
Risk: write
await corsair.moco.api.receipts.create({});
| Name | Type | Required | Description |
|---|---|---|---|
date | string | No | — |
title | string | No | — |
billable | boolean | No | — |
info | string | No | — |
project_id | number | No | — |
currency | string | No | — |
items | object[] | No | — |
attachment | object | No | — |
items full type
items full type
{
purchase_category_id?: number,
gross_total?: number,
vat_code_id?: number
}[]
attachment full type
attachment full type
{
filename?: string,
base64?: string
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
title | string | null | No | — |
date | string | null | No | — |
billable | boolean | null | No | — |
pending | boolean | null | No | — |
gross_total | number | null | No | — |
currency | string | null | No | — |
items | object[] | null | No | — |
project | object | null | No | — |
info | string | null | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
refund_request | object | null | No | — |
attachment_url | string | null | null | No | — |
items full type
items full type
{
gross_total?: number | null,
vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null,
purchase_category?: {
id?: number | null,
name?: string | null
} | null | null
}[] | null
project full type
project full type
{
id?: number | null,
name?: string | null,
billable?: boolean | null,
company?: {
id?: number | null,
name?: string | null
} | null
} | null | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
refund_request full type
refund_request full type
{
id?: number | null,
status?: string | null
} | null | null
delete
receipts.delete
Delete receipt
Risk: destructive · Irreversible
await corsair.moco.api.receipts.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
title?: string | null,
date?: string | null,
billable?: boolean | null,
pending?: boolean | null,
gross_total?: number | null,
currency?: string | null,
items?: {
gross_total?: number | null,
vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null,
purchase_category?: {
id?: number | null,
name?: string | null
} | null | null
}[] | null,
project?: {
id?: number | null,
name?: string | null,
billable?: boolean | null,
company?: {
id?: number | null,
name?: string | null
} | null
} | null | null,
info?: string | null | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
refund_request?: {
id?: number | null,
status?: string | null
} | null | null,
attachment_url?: string | null | null
} | {
success: true
}
get
receipts.get
Get receipt
Risk: read
await corsair.moco.api.receipts.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
title | string | null | No | — |
date | string | null | No | — |
billable | boolean | null | No | — |
pending | boolean | null | No | — |
gross_total | number | null | No | — |
currency | string | null | No | — |
items | object[] | null | No | — |
project | object | null | No | — |
info | string | null | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
refund_request | object | null | No | — |
attachment_url | string | null | null | No | — |
items full type
items full type
{
gross_total?: number | null,
vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null,
purchase_category?: {
id?: number | null,
name?: string | null
} | null | null
}[] | null
project full type
project full type
{
id?: number | null,
name?: string | null,
billable?: boolean | null,
company?: {
id?: number | null,
name?: string | null
} | null
} | null | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
refund_request full type
refund_request full type
{
id?: number | null,
status?: string | null
} | null | null
list
receipts.list
List receipts, one page at a time
Risk: read
await corsair.moco.api.receipts.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
user_id | number | No | — |
project_id | number | No | — |
from | string | No | Receipt date range start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
to | string | No | Receipt date range end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
purchase_category_id | number | No | — |
submitted | boolean | No | true for submitted/closed receipts, false for pending. |
refund_request_id | number | string | No | Single ID or comma-separated list. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
title?: string | null,
date?: string | null,
billable?: boolean | null,
pending?: boolean | null,
gross_total?: number | null,
currency?: string | null,
items?: {
gross_total?: number | null,
vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null,
purchase_category?: {
id?: number | null,
name?: string | null
} | null | null
}[] | null,
project?: {
id?: number | null,
name?: string | null,
billable?: boolean | null,
company?: {
id?: number | null,
name?: string | null
} | null
} | null | null,
info?: string | null | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
refund_request?: {
id?: number | null,
status?: string | null
} | null | null,
attachment_url?: string | null | null
}[]
update
receipts.update
Update receipt
Risk: write
await corsair.moco.api.receipts.update({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
date | string | No | — |
title | string | No | — |
billable | boolean | No | — |
info | string | No | — |
project_id | number | No | — |
currency | string | No | — |
items | object[] | No | — |
attachment | object | No | — |
items full type
items full type
{
purchase_category_id?: number,
gross_total?: number,
vat_code_id?: number
}[]
attachment full type
attachment full type
{
filename?: string,
base64?: string
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
title | string | null | No | — |
date | string | null | No | — |
billable | boolean | null | No | — |
pending | boolean | null | No | — |
gross_total | number | null | No | — |
currency | string | null | No | — |
items | object[] | null | No | — |
project | object | null | No | — |
info | string | null | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
refund_request | object | null | No | — |
attachment_url | string | null | null | No | — |
items full type
items full type
{
gross_total?: number | null,
vat?: {
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
} | null | null,
purchase_category?: {
id?: number | null,
name?: string | null
} | null | null
}[] | null
project full type
project full type
{
id?: number | null,
name?: string | null,
billable?: boolean | null,
company?: {
id?: number | null,
name?: string | null
} | null
} | null | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
refund_request full type
refund_request full type
{
id?: number | null,
status?: string | null
} | null | null
Recurring Expenses
list
recurringExpenses.list
List recurring expenses, one page at a time
Risk: read
await corsair.moco.api.recurringExpenses.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
sort_by | string | No | Field and optional direction, e.g. title desc. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
custom_properties | Record<string, string | boolean | string[]> | No | Filter by custom field values. Unknown custom field names return an empty result set. For MultiSelect fields, pass multiple values using custom_properties[Field][]=A&custom_properties[Field][]=B. Boolean fields should be queried with true or false. |
project_id | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
start_date?: string | null,
finish_date?: string | null | null,
recur_next_date?: string | null,
period?: string | null,
title?: string | null,
description?: string | null | null,
quantity?: number | null,
unit?: string | null | null,
unit_price?: number | null,
unit_cost?: number | null,
price?: number | null,
cost?: number | null,
currency?: string | null,
budget_relevant?: boolean | null,
billable?: boolean | null,
purchase_assignment_locked?: boolean | null,
service_period_direction?: string | null,
custom_properties?: {
} | null,
project?: {
id?: number | null,
identifier?: string | null | null,
name?: string | null,
billable?: boolean | null | null
} | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
revenue_category?: {
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
Reports
absences
reports.absences
Get absences report
Risk: read
await corsair.moco.api.reports.absences({});
| Name | Type | Required | Description |
|---|---|---|---|
year | number | No | — |
active | boolean | No | — |
object[]
Output full type
Output full type
{
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null,
total_vacation_days?: number | null,
used_vacation_days?: number | null,
planned_vacation_days?: number | null,
sickdays?: number | null
}[]
cashflow
reports.cashflow
Get cashflow report, one page at a time
Risk: read
await corsair.moco.api.reports.cashflow({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
from | string | No | Report range start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
to | string | No | Report range end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
term | string | No | — |
kinds | (incoming_invoice_payments | incoming_invoice_open | incoming_payment_schedules | incoming_time_and_material_retainer_budgets | incoming_expenses | incoming_unbilled_activities | incoming_planned_activities | outgoing_purchase_payments | outgoing_purchase_unpaid | outgoing_fix_costs | outgoing_purchase_order_once | outgoing_purchase_order_recurring | outgoing_purchase_order_expense)[] | No | Filter by record kinds. Pass multiple values as kinds[]=a&kinds[]=b (repeating kinds= without brackets keeps only the last value). If omitted, all kinds are included. outgoing_fix_costs includes planned fixed costs. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
record_id?: number | null,
company_id?: number | null | null,
description?: string | null,
user_id?: number | null | null,
amount_in_account_currency?: number | null,
kind?: string | null,
date?: string | null,
company?: {
id?: number | null,
name?: string | null
} | null | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
}[]
finance
reports.finance
Get finance report, one page at a time
Risk: read
await corsair.moco.api.reports.finance({
from: '2026-01-01',
to: '2026-01-31',
kinds: ['incoming_invoices'],
});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
from | string | No | Report range start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
to | string | No | Report range end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
term | string | No | — |
company_id | number | No | — |
kinds | (incoming_invoices | incoming_draft_invoices | incoming_payment_schedules | incoming_fixprice_retainer_payment_schedules | incoming_time_and_material_retainer_budgets | incoming_expenses | incoming_activities | incoming_activities_planned | incoming_recurring_expenses | outgoing_purchases | outgoing_fixed_costs | outgoing_fixed_costs_planned | outgoing_purchase_orders_once | outgoing_purchase_orders_recurring | outgoing_purchase_orders_expenses)[] | No | Filter by record kinds. Pass multiple values as kinds[]=a&kinds[]=b (repeating kinds= without brackets keeps only the last value). If omitted, all kinds are included. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
record_id?: number | null,
company_id?: number | null | null,
description?: string | null,
user_id?: number | null | null,
net_amount_in_account_currency?: number | null,
kind?: string | null,
date?: string | null,
company?: {
id?: number | null,
name?: string | null
} | null | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
}[]
plannedVsTracked
reports.plannedVsTracked
Get planned vs tracked report, one page at a time
Risk: read
await corsair.moco.api.reports.plannedVsTracked({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
from | string | No | Report range start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
to | string | No | Report range end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
user_ids | number[] | string | No | List of user IDs as repeated params or comma-separated string. |
project_id | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
user_id?: number | null,
project_id?: number | null,
tracked_hours?: number | null,
planned_hours?: number | null,
delta?: number | null,
quota?: number | null,
user?: {
id?: number | null,
firstname?: string | null,
name?: string | null,
initials?: string | null,
color?: string | null,
unit?: {
id?: number | null,
name?: string | null
} | null
} | null,
project?: {
id?: number | null,
identifier?: string | null,
name?: string | null,
company?: {
id?: number | null,
name?: string | null
} | null
} | null
}[]
utilization
reports.utilization
Get utilization report
Risk: read
await corsair.moco.api.reports.utilization({});
| Name | Type | Required | Description |
|---|---|---|---|
from | string | No | Report range start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
to | string | No | Report range end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
object[]
Output full type
Output full type
{
date?: string | null,
user_id?: number | null,
target_hours?: number | null,
billable_hours?: number | null,
unbillable_hours?: number | null,
billable_seconds?: number | null,
unbillable_seconds?: number | null
}[]
Revenue Categories
create
revenueCategories.create
Create revenue category
Risk: write
await corsair.moco.api.revenueCategories.create({ assignment_kind: 'only_tasks' });
| Name | Type | Required | Description |
|---|---|---|---|
name | string | No | — |
revenue_account | number | null | No | — |
cost_category | string | null | No | — |
assignment_kind | only_tasks | only_expenses | tasks_and_expenses | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
revenue_account | number | null | null | No | — |
cost_category | string | null | null | No | — |
assignment_kind | string | null | No | — |
delete
revenueCategories.delete
Delete revenue category
Risk: destructive · Irreversible
await corsair.moco.api.revenueCategories.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
} | {
success: true
}
get
revenueCategories.get
Get revenue category
Risk: read
await corsair.moco.api.revenueCategories.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
revenue_account | number | null | null | No | — |
cost_category | string | null | null | No | — |
assignment_kind | string | null | No | — |
list
revenueCategories.list
List revenue categories, one page at a time
Risk: read
await corsair.moco.api.revenueCategories.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
term | string | No | Filter by name or revenue account number. |
revenue_account | number | No | Filter by revenue account number. |
cost_category | string | No | Filter by cost category identifier. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
name?: string | null,
revenue_account?: number | null | null,
cost_category?: string | null | null,
assignment_kind?: string | null
}[]
update
revenueCategories.update
Update revenue category
Risk: write
await corsair.moco.api.revenueCategories.update({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
name | string | No | — |
revenue_account | number | null | No | — |
cost_category | string | null | No | — |
assignment_kind | only_tasks | only_expenses | tasks_and_expenses | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
revenue_account | number | null | null | No | — |
cost_category | string | null | null | No | — |
assignment_kind | string | null | No | — |
Schedules
create
schedules.create
Create schedule
Risk: write
await corsair.moco.api.schedules.create({});
| Name | Type | Required | Description |
|---|---|---|---|
date | string | No | — |
user_id | number | No | — |
comment | string | No | — |
am | boolean | No | — |
pm | boolean | No | — |
symbol | string | No | — |
absence_code | string | No | Absence code of the schedule: 1 (unplannable absence), 2 (public holiday), 3 (sick day), 4 (holiday), 5 (absence). |
overwrite | boolean | No | When true, clears any existing schedule entries for the same user/date before creating the new one. Only honored on create. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
date | string | null | No | — |
comment | string | null | null | No | — |
am | boolean | null | No | — |
pm | boolean | null | No | — |
symbol | string | null | null | No | — |
assignment | object | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
assignment full type
assignment full type
{
id?: number | null,
name?: string | null,
code?: string | null,
customer_name?: string | null | null,
color?: string | null,
type?: string | null
} | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
delete
schedules.delete
Delete schedule
Risk: destructive · Irreversible
await corsair.moco.api.schedules.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
date?: string | null,
comment?: string | null | null,
am?: boolean | null,
pm?: boolean | null,
symbol?: string | null | null,
assignment?: {
id?: number | null,
name?: string | null,
code?: string | null,
customer_name?: string | null | null,
color?: string | null,
type?: string | null
} | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
get
schedules.get
Get schedule
Risk: read
await corsair.moco.api.schedules.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
date | string | null | No | — |
comment | string | null | null | No | — |
am | boolean | null | No | — |
pm | boolean | null | No | — |
symbol | string | null | null | No | — |
assignment | object | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
assignment full type
assignment full type
{
id?: number | null,
name?: string | null,
code?: string | null,
customer_name?: string | null | null,
color?: string | null,
type?: string | null
} | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
list
schedules.list
List schedules: retrieve all absences (paged), one page at a time
Risk: read
await corsair.moco.api.schedules.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
from | string | No | Schedule range start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
to | string | No | Schedule range end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
user_id | number | No | — |
absence_code | string | No | Filter by absence code: 1 (unplannable absence), 2 (public holiday), 3 (sick day), 4 (holiday), 5 (absence). Comma-separated values are supported (e.g. 3,4). |
absence_request_id | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
date?: string | null,
comment?: string | null | null,
am?: boolean | null,
pm?: boolean | null,
symbol?: string | null | null,
assignment?: {
id?: number | null,
name?: string | null,
code?: string | null,
customer_name?: string | null | null,
color?: string | null,
type?: string | null
} | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
update
schedules.update
Update schedule
Risk: write
await corsair.moco.api.schedules.update({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
date | string | No | — |
user_id | number | No | — |
comment | string | No | — |
am | boolean | No | — |
pm | boolean | No | — |
symbol | string | No | — |
absence_code | string | No | Absence code of the schedule: 1 (unplannable absence), 2 (public holiday), 3 (sick day), 4 (holiday), 5 (absence). |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
date | string | null | No | — |
comment | string | null | null | No | — |
am | boolean | null | No | — |
pm | boolean | null | No | — |
symbol | string | null | null | No | — |
assignment | object | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
assignment full type
assignment full type
{
id?: number | null,
name?: string | null,
code?: string | null,
customer_name?: string | null | null,
color?: string | null,
type?: string | null
} | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
Session
verify
session.verify
Verify the API key and read the user identity it belongs to
Risk: read
await corsair.moco.api.session.verify({});
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Internal user ID. |
uuid | string | null | No | Stable user UUID. |
Taggings
add
taggings.add
Add tags to a record, keeping the ones it has
Risk: write
await corsair.moco.api.taggings.add({
taggable_type: 'Project',
taggable_id: 1234567,
tags: ['Lead'],
});
| Name | Type | Required | Description |
|---|---|---|---|
taggable_type | string | Yes | — |
taggable_id | number | Yes | — |
tags | string[] | string | No | — |
string[]
list
taggings.list
List the tags on one record
Risk: read
await corsair.moco.api.taggings.list({ taggable_type: 'Project', taggable_id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
taggable_type | string | Yes | — |
taggable_id | number | Yes | — |
string[]
remove
taggings.remove
Remove the given tags from a record
Risk: destructive · Irreversible
await corsair.moco.api.taggings.remove({ taggable_type: 'Project', taggable_id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
taggable_type | string | Yes | — |
taggable_id | number | Yes | — |
tags | string[] | string | No | — |
string[] \| object
Output full type
Output full type
string[] | {
success: true
}
replace
taggings.replace
Replace every tag on a record with the given list
Risk: destructive
await corsair.moco.api.taggings.replace({ taggable_type: 'Project', taggable_id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
taggable_type | string | Yes | — |
taggable_id | number | Yes | — |
tags | string[] | string | No | — |
string[]
Tags
create
tags.create
Create tag
Risk: write
await corsair.moco.api.tags.create({});
| Name | Type | Required | Description |
|---|---|---|---|
name | string | No | — |
color | string | No | — |
context | Company | Contact | Project | Deal | Purchase | Invoice | Offer | User | No | Project is mapped to internal Assignment. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
color | string | null | null | No | — |
context | string | null | No | Public context; internal Assignment is exposed as Project. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
delete
tags.delete
Delete tag
Risk: destructive · Irreversible
await corsair.moco.api.tags.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
merge_tag_id | number | No | Optional tag ID to merge existing taggings into. |
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
name?: string | null,
color?: string | null | null,
context?: string | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
get
tags.get
Get tag
Risk: read
await corsair.moco.api.tags.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
color | string | null | null | No | — |
context | string | null | No | Public context; internal Assignment is exposed as Project. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
list
tags.list
List tags, one page at a time
Risk: read
await corsair.moco.api.tags.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
context | Company | Contact | Project | Deal | Purchase | Invoice | Offer | User | No | Tag context. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
name?: string | null,
color?: string | null | null,
context?: string | null,
created_at?: string | null,
updated_at?: string | null
}[]
update
tags.update
Update tag
Risk: write
await corsair.moco.api.tags.update({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
name | string | No | — |
color | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
color | string | null | null | No | — |
context | string | null | No | Public context; internal Assignment is exposed as Project. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
Todos
get
todos.get
Get todo
Risk: read
await corsair.moco.api.todos.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
title | string | null | No | — |
due_date | string | null | null | No | — |
completed_at | string | null | null | No | — |
completed | boolean | null | No | — |
personal | boolean | null | No | — |
todoable_id | number | null | No | — |
todoable_type | string | null | No | — |
todoable_description | string | null | No | — |
created_by | object | null | No | Minimal user reference used in nested resources. |
assigned_to | object | null | No | Minimal user reference used in nested resources. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
created_by full type
created_by full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
assigned_to full type
assigned_to full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
list
todos.list
List todos, one page at a time
Risk: read
await corsair.moco.api.todos.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
responsible_user_id | number | No | Filter by the responsible user ID |
term | string | No | Search term for todo title |
assigned_to_user_id | number | No | Filter by the assigned user ID |
created_by_user_id | number | No | Filter by the creating user ID |
completed | boolean | No | Filter by completion status |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
title?: string | null,
due_date?: string | null | null,
completed_at?: string | null | null,
completed?: boolean | null,
personal?: boolean | null,
todoable_id?: number | null,
todoable_type?: string | null,
todoable_description?: string | null,
created_by?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
assigned_to?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
Units
create
units.create
Create unit
Risk: write
await corsair.moco.api.units.create({});
| Name | Type | Required | Description |
|---|---|---|---|
name | string | No | — |
custom_properties | object | No | — |
custom_properties full type
custom_properties full type
{
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
custom_properties | object | null | No | — |
users | object[] | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
custom_properties full type
custom_properties full type
{
} | null
users full type
users full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null,
email?: string | null
}[] | null
delete
units.delete
Delete unit
Risk: destructive · Irreversible
await corsair.moco.api.units.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
name?: string | null,
custom_properties?: {
} | null,
users?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null,
email?: string | null
}[] | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
get
units.get
Get unit
Risk: read
await corsair.moco.api.units.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
custom_properties | object | null | No | — |
users | object[] | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
custom_properties full type
custom_properties full type
{
} | null
users full type
users full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null,
email?: string | null
}[] | null
list
units.list
List units, one page at a time
Risk: read
await corsair.moco.api.units.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
custom_properties | Record<string, string | boolean | string[]> | No | Filter by custom field values. Unknown custom field names return an empty result set. For MultiSelect fields, pass multiple values using custom_properties[Field][]=A&custom_properties[Field][]=B. Boolean fields should be queried with true or false. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
name?: string | null,
custom_properties?: {
} | null,
users?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null,
email?: string | null
}[] | null,
created_at?: string | null,
updated_at?: string | null
}[]
update
units.update
Update unit
Risk: write
await corsair.moco.api.units.update({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
name | string | No | — |
custom_properties | object | No | — |
custom_properties full type
custom_properties full type
{
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
name | string | null | No | — |
custom_properties | object | null | No | — |
users | object[] | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
custom_properties full type
custom_properties full type
{
} | null
users full type
users full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null,
email?: string | null
}[] | null
Users
absenceRequests.create
users.absenceRequests.create
Create user absence request
Risk: write
await corsair.moco.api.users.absenceRequests.create({
approver_user_id: '933590696',
type: 'vacation',
entries: [{ date: '2026-04-09', am: true, pm: true }],
});
| Name | Type | Required | Description |
|---|---|---|---|
approver_user_id | string | Yes | ID of the selected approver. |
type | vacation | sickness | other | Yes | Absence request type. |
entries | object[] | Yes | Absence request day entries. |
comment | string | No | Comment or reason for the absence request. |
custom_values | object[] | No | Values for this absence request’s custom fields. |
entries full type
entries full type
{
date: string,
am: boolean,
pm: boolean
}[]
custom_values full type
custom_values full type
{
custom_property_id: string,
value: string
}[]
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
type | string | null | No | — |
status | string | null | No | — |
total_days | number | null | No | — |
days | object[] | null | No | — |
comment | string | null | null | No | — |
approved_at | string | null | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
approver | object | null | No | Minimal user reference used in nested resources. |
selected_approver | object | null | No | Minimal user reference used in nested resources. |
custom_properties | object | null | No | Custom field values keyed by custom field name. |
days full type
days full type
{
date?: string | null,
am?: boolean | null,
pm?: boolean | null
}[] | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
approver full type
approver full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
selected_approver full type
selected_approver full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
custom_properties full type
custom_properties full type
{
} | null
absenceRequests.delete
users.absenceRequests.delete
Delete user absence request
Risk: destructive · Irreversible
await corsair.moco.api.users.absenceRequests.delete({ id: 1234567, comment: 'Approved for the April offsite' });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
comment | string | Yes | Reason for deleting the absence request. |
object
Output full type
Output full type
{
id?: number | null,
type?: string | null,
status?: string | null,
total_days?: number | null,
days?: {
date?: string | null,
am?: boolean | null,
pm?: boolean | null
}[] | null,
comment?: string | null | null,
approved_at?: string | null | null,
created_at?: string | null,
updated_at?: string | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
approver?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
selected_approver?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
custom_properties?: {
} | null
} | {
success: true
}
absenceRequests.get
users.absenceRequests.get
Get user absence request
Risk: read
await corsair.moco.api.users.absenceRequests.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
type | string | null | No | — |
status | string | null | No | — |
total_days | number | null | No | — |
days | object[] | null | No | — |
comment | string | null | null | No | — |
approved_at | string | null | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
approver | object | null | No | Minimal user reference used in nested resources. |
selected_approver | object | null | No | Minimal user reference used in nested resources. |
custom_properties | object | null | No | Custom field values keyed by custom field name. |
days full type
days full type
{
date?: string | null,
am?: boolean | null,
pm?: boolean | null
}[] | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
approver full type
approver full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
selected_approver full type
selected_approver full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
custom_properties full type
custom_properties full type
{
} | null
absenceRequests.list
users.absenceRequests.list
List user absence requests, one page at a time
Risk: read
await corsair.moco.api.users.absenceRequests.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
user_id | number | No | Filter by user ID. |
selected_approver_id | number | No | Filter by selected approver user ID. |
type | vacation | sickness | other | No | Filter by absence request type. |
status | pending | approved | No | Filter by absence request status. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
type?: string | null,
status?: string | null,
total_days?: number | null,
days?: {
date?: string | null,
am?: boolean | null,
pm?: boolean | null
}[] | null,
comment?: string | null | null,
approved_at?: string | null | null,
created_at?: string | null,
updated_at?: string | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
approver?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
selected_approver?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
custom_properties?: {
} | null
}[]
create
users.create
Create a user (a billed seat); MOCO emails them a welcome message unless welcome_email is false
Risk: destructive
await corsair.moco.api.users.create({});
| Name | Type | Required | Description |
|---|---|---|---|
firstname | string | No | — |
name | string | No | — |
email | string | No | — |
active | boolean | No | — |
role_id | number | No | — |
info | string | No | — |
external | boolean | No | — |
language | de | de-AT | de-CH | en | it | fr | No | — |
mobile_phone | string | No | — |
work_phone | string | No | — |
home_address | string | No | — |
bday | string | No | — |
iban | string | No | — |
welcome_email | boolean | No | Applied on create, defaults to true. |
password | string | No | — |
unit_id | number | No | — |
tags | string[] | No | — |
custom_properties | object | No | — |
credit_number | string | No | Bookkeeping credit account number for supplier transactions (for refunds). |
avatar | object | No | — |
custom_properties full type
custom_properties full type
{
}
avatar full type
avatar full type
{
filename?: string,
base64?: string
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
firstname | string | null | No | — |
lastname | string | null | No | — |
active | boolean | null | No | — |
extern | boolean | null | No | Indicates external collaborator flag. |
email | string | null | No | — |
mobile_phone | string | null | null | No | — |
work_phone | string | null | null | No | — |
home_address | string | null | null | No | — |
info | string | null | null | No | — |
birthday | string | null | null | No | — |
iban | string | null | null | No | — |
avatar_url | string | null | null | No | — |
tags | string[] | null | No | — |
custom_properties | object | null | No | — |
credit_number | string | null | null | No | The bookkeeping credit account number for supplier transactions (for refunds). |
role | object | null | No | — |
unit | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
custom_properties full type
custom_properties full type
{
} | null
role full type
role full type
{
id?: number | null,
name?: string | null
} | null | null
unit full type
unit full type
{
id?: number | null,
name?: string | null
} | null
delete
users.delete
Delete user
Risk: destructive · Irreversible
await corsair.moco.api.users.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null,
active?: boolean | null,
extern?: boolean | null,
email?: string | null,
mobile_phone?: string | null | null,
work_phone?: string | null | null,
home_address?: string | null | null,
info?: string | null | null,
birthday?: string | null | null,
iban?: string | null | null,
avatar_url?: string | null | null,
tags?: string[] | null,
custom_properties?: {
} | null,
credit_number?: string | null | null,
role?: {
id?: number | null,
name?: string | null
} | null | null,
unit?: {
id?: number | null,
name?: string | null
} | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
employments.create
users.employments.create
Create user employment
Risk: write
await corsair.moco.api.users.employments.create({});
| Name | Type | Required | Description |
|---|---|---|---|
user_id | number | No | — |
from | string | No | — |
to | string | No | — |
pattern | object | No | — |
pattern full type
pattern full type
{
am?: number[],
pm?: number[]
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
weekly_target_hours | number | null | No | — |
pattern | object | null | No | — |
from | string | null | No | — |
to | string | null | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
pattern full type
pattern full type
{
am?: number[] | null,
pm?: number[] | null
} | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
employments.delete
users.employments.delete
Delete user employment
Risk: destructive · Irreversible
await corsair.moco.api.users.employments.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
weekly_target_hours?: number | null,
pattern?: {
am?: number[] | null,
pm?: number[] | null
} | null,
from?: string | null,
to?: string | null | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
employments.get
users.employments.get
Get user employment
Risk: read
await corsair.moco.api.users.employments.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
weekly_target_hours | number | null | No | — |
pattern | object | null | No | — |
from | string | null | No | — |
to | string | null | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
pattern full type
pattern full type
{
am?: number[] | null,
pm?: number[] | null
} | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
employments.list
users.employments.list
List user employments, one page at a time
Risk: read
await corsair.moco.api.users.employments.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
user_id | number | No | — |
from | string | No | Employment date range start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
to | string | No | Employment date range end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
weekly_target_hours?: number | null,
pattern?: {
am?: number[] | null,
pm?: number[] | null
} | null,
from?: string | null,
to?: string | null | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
employments.update
users.employments.update
Update user employment
Risk: write
await corsair.moco.api.users.employments.update({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
user_id | number | No | — |
from | string | No | — |
to | string | No | — |
pattern | object | No | — |
pattern full type
pattern full type
{
am?: number[],
pm?: number[]
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
weekly_target_hours | number | null | No | — |
pattern | object | null | No | — |
from | string | null | No | — |
to | string | null | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
pattern full type
pattern full type
{
am?: number[] | null,
pm?: number[] | null
} | null
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
get
users.get
Read one user
Risk: read
await corsair.moco.api.users.get({ id: 933590696 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
firstname | string | null | No | — |
lastname | string | null | No | — |
active | boolean | null | No | — |
extern | boolean | null | No | Indicates external collaborator flag. |
email | string | null | No | — |
mobile_phone | string | null | null | No | — |
work_phone | string | null | null | No | — |
home_address | string | null | null | No | — |
info | string | null | null | No | — |
birthday | string | null | null | No | — |
iban | string | null | null | No | — |
avatar_url | string | null | null | No | — |
tags | string[] | null | No | — |
custom_properties | object | null | No | — |
credit_number | string | null | null | No | The bookkeeping credit account number for supplier transactions (for refunds). |
role | object | null | No | — |
unit | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
custom_properties full type
custom_properties full type
{
} | null
role full type
role full type
{
id?: number | null,
name?: string | null
} | null | null
unit full type
unit full type
{
id?: number | null,
name?: string | null
} | null
holidays.create
users.holidays.create
Create user holiday
Risk: write
await corsair.moco.api.users.holidays.create({});
| Name | Type | Required | Description |
|---|---|---|---|
user_id | number | No | — |
creator_id | number | No | — |
year | number | No | — |
title | string | No | — |
hours | number | No | — |
days | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
year | number | null | No | — |
title | string | null | No | — |
days | number | null | No | — |
hours | number | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
creator | object | null | No | Minimal user reference used in nested resources. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
creator full type
creator full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
holidays.delete
users.holidays.delete
Delete user holiday
Risk: destructive · Irreversible
await corsair.moco.api.users.holidays.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
year?: number | null,
title?: string | null,
days?: number | null,
hours?: number | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
creator?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
holidays.get
users.holidays.get
Get user holiday
Risk: read
await corsair.moco.api.users.holidays.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
year | number | null | No | — |
title | string | null | No | — |
days | number | null | No | — |
hours | number | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
creator | object | null | No | Minimal user reference used in nested resources. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
creator full type
creator full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
holidays.list
users.holidays.list
List user holidays, one page at a time
Risk: read
await corsair.moco.api.users.holidays.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
user_id | number | No | — |
year | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
year?: number | null,
title?: string | null,
days?: number | null,
hours?: number | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
creator?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
holidays.update
users.holidays.update
Update user holiday
Risk: write
await corsair.moco.api.users.holidays.update({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
user_id | number | No | — |
creator_id | number | No | — |
year | number | No | — |
title | string | No | — |
hours | number | No | — |
days | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
year | number | null | No | — |
title | string | null | No | — |
days | number | null | No | — |
hours | number | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
creator | object | null | No | Minimal user reference used in nested resources. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
creator full type
creator full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
list
users.list
List account users, one page at a time
Risk: read
await corsair.moco.api.users.list({ include_archived: false });
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
sort_by | string | No | Field and optional direction, e.g. title desc. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
custom_properties | Record<string, string | boolean | string[]> | No | Filter by custom field values. Unknown custom field names return an empty result set. For MultiSelect fields, pass multiple values using custom_properties[Field][]=A&custom_properties[Field][]=B. Boolean fields should be queried with true or false. |
include_archived | boolean | No | — |
email | string | No | Filter by exact email address (e.g. max.muster@example.com). |
tags | string | No | Comma-separated user tag names. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null,
active?: boolean | null,
extern?: boolean | null,
email?: string | null,
mobile_phone?: string | null | null,
work_phone?: string | null | null,
home_address?: string | null | null,
info?: string | null | null,
birthday?: string | null | null,
iban?: string | null | null,
avatar_url?: string | null | null,
tags?: string[] | null,
custom_properties?: {
} | null,
credit_number?: string | null | null,
role?: {
id?: number | null,
name?: string | null
} | null | null,
unit?: {
id?: number | null,
name?: string | null
} | null,
created_at?: string | null,
updated_at?: string | null
}[]
performanceReport
users.performanceReport
Get user performance report
Risk: read
await corsair.moco.api.users.performanceReport({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
year | number | No | Report year. Must be between 2000 and 2100. |
| Name | Type | Required | Description |
|---|---|---|---|
annually | object | null | No | — |
monthly | object[] | null | No | — |
annually full type
annually full type
{
year?: number | null,
employment_hours?: number | null,
target_hours?: number | null,
hours_tracked_total?: number | null,
variation?: number | null,
variation_until_today?: number | null | null,
hours_billable_total?: number | null
} | null
monthly full type
monthly full type
{
year?: number | null,
month?: number | null,
target_hours?: number | null,
hours_tracked_total?: number | null,
variation?: number | null,
hours_billable_total?: number | null
}[] | null
presences.create
users.presences.create
Create user presence
Risk: write
await corsair.moco.api.users.presences.create({});
| Name | Type | Required | Description |
|---|---|---|---|
date | string | No | — |
from | string | No | — |
to | string | No | — |
is_home_office | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
date | string | null | No | — |
from | string | null | null | No | — |
to | string | null | null | No | — |
is_home_office | boolean | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
presences.delete
users.presences.delete
Delete user presence
Risk: destructive · Irreversible
await corsair.moco.api.users.presences.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
date?: string | null,
from?: string | null | null,
to?: string | null | null,
is_home_office?: boolean | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
presences.get
users.presences.get
Get user presence
Risk: read
await corsair.moco.api.users.presences.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
date | string | null | No | — |
from | string | null | null | No | — |
to | string | null | null | No | — |
is_home_office | boolean | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
presences.list
users.presences.list
List user presences, one page at a time
Risk: read
await corsair.moco.api.users.presences.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
user_id | number | No | — |
from | string | No | Presence date range start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
to | string | No | Presence date range end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
is_home_office | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
date?: string | null,
from?: string | null | null,
to?: string | null | null,
is_home_office?: boolean | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
presences.touch
users.presences.touch
Touch user presence
Risk: write
await corsair.moco.api.users.presences.touch({});
| Name | Type | Required | Description |
|---|---|---|---|
is_home_office | boolean | No | — |
override | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
date | string | null | No | — |
from | string | null | null | No | — |
to | string | null | null | No | — |
is_home_office | boolean | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
presences.update
users.presences.update
Update user presence
Risk: write
await corsair.moco.api.users.presences.update({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
date | string | No | — |
from | string | No | — |
to | string | No | — |
is_home_office | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
date | string | null | No | — |
from | string | null | null | No | — |
to | string | null | null | No | — |
is_home_office | boolean | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
roles.list
users.roles.list
List user roles
Risk: read
await corsair.moco.api.users.roles.list({});
object[]
Output full type
Output full type
{
id?: number | null,
name?: string | null,
is_default?: boolean | null,
is_admin?: boolean | null,
permission?: {
report?: string | null,
companies?: string | null,
contacts?: string | null,
people?: string | null,
purchases?: string | null,
settings?: string | null,
sales?: string | null,
projects?: string | null,
calendar?: string | null,
time_tracking?: string | null,
invoicing?: string | null
} | null,
created_at?: string | null,
updated_at?: string | null
}[]
update
users.update
Update user
Risk: write
await corsair.moco.api.users.update({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
firstname | string | No | — |
name | string | No | — |
email | string | No | — |
active | boolean | No | — |
role_id | number | No | — |
info | string | No | — |
external | boolean | No | — |
language | de | de-AT | de-CH | en | it | fr | No | — |
mobile_phone | string | No | — |
work_phone | string | No | — |
home_address | string | No | — |
bday | string | No | — |
iban | string | No | — |
welcome_email | boolean | No | Applied on create, defaults to true. |
password | string | No | — |
unit_id | number | No | — |
tags | string[] | No | — |
custom_properties | object | No | — |
credit_number | string | No | Bookkeeping credit account number for supplier transactions (for refunds). |
avatar | object | No | — |
custom_properties full type
custom_properties full type
{
}
avatar full type
avatar full type
{
filename?: string,
base64?: string
}
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
firstname | string | null | No | — |
lastname | string | null | No | — |
active | boolean | null | No | — |
extern | boolean | null | No | Indicates external collaborator flag. |
email | string | null | No | — |
mobile_phone | string | null | null | No | — |
work_phone | string | null | null | No | — |
home_address | string | null | null | No | — |
info | string | null | null | No | — |
birthday | string | null | null | No | — |
iban | string | null | null | No | — |
avatar_url | string | null | null | No | — |
tags | string[] | null | No | — |
custom_properties | object | null | No | — |
credit_number | string | null | null | No | The bookkeeping credit account number for supplier transactions (for refunds). |
role | object | null | No | — |
unit | object | null | No | — |
created_at | string | null | No | — |
updated_at | string | null | No | — |
custom_properties full type
custom_properties full type
{
} | null
role full type
role full type
{
id?: number | null,
name?: string | null
} | null | null
unit full type
unit full type
{
id?: number | null,
name?: string | null
} | null
workTimeAdjustments.create
users.workTimeAdjustments.create
Create user work time adjustment
Risk: write
await corsair.moco.api.users.workTimeAdjustments.create({});
| Name | Type | Required | Description |
|---|---|---|---|
date | string | No | — |
description | string | No | — |
hours | number | No | — |
user_id | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
date | string | null | No | — |
description | string | null | No | — |
hours | number | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
creator | object | null | No | Minimal user reference used in nested resources. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
creator full type
creator full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
workTimeAdjustments.delete
users.workTimeAdjustments.delete
Delete user work time adjustment
Risk: destructive · Irreversible
await corsair.moco.api.users.workTimeAdjustments.delete({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
object
Output full type
Output full type
{
id?: number | null,
date?: string | null,
description?: string | null,
hours?: number | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
creator?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
} | {
success: true
}
workTimeAdjustments.get
users.workTimeAdjustments.get
Get user work time adjustment
Risk: read
await corsair.moco.api.users.workTimeAdjustments.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
date | string | null | No | — |
description | string | null | No | — |
hours | number | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
creator | object | null | No | Minimal user reference used in nested resources. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
creator full type
creator full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
workTimeAdjustments.list
users.workTimeAdjustments.list
List user work time adjustments, one page at a time
Risk: read
await corsair.moco.api.users.workTimeAdjustments.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
user_id | number | No | — |
from | string | No | Adjustment date range start. Format: YYYY-MM-DD (e.g. 2026-01-01). |
to | string | No | Adjustment date range end. Format: YYYY-MM-DD (e.g. 2026-01-31). |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
date?: string | null,
description?: string | null,
hours?: number | null,
user?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
creator?: {
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null,
created_at?: string | null,
updated_at?: string | null
}[]
workTimeAdjustments.update
users.workTimeAdjustments.update
Update user work time adjustment
Risk: write
await corsair.moco.api.users.workTimeAdjustments.update({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
date | string | No | — |
description | string | No | — |
hours | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
date | string | null | No | — |
description | string | null | No | — |
hours | number | null | No | — |
user | object | null | No | Minimal user reference used in nested resources. |
creator | object | null | No | Minimal user reference used in nested resources. |
created_at | string | null | No | — |
updated_at | string | null | No | — |
user full type
user full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
creator full type
creator full type
{
id?: number | null,
firstname?: string | null,
lastname?: string | null
} | null | null
Vat Code Purchases
get
vatCodePurchases.get
Get VAT code purchase
Risk: read
await corsair.moco.api.vatCodePurchases.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
tax | number | null | No | — |
description | string | null | No | — |
reverse_charge | boolean | null | No | — |
intra_eu | boolean | null | No | — |
active | boolean | null | No | — |
code | string | null | No | — |
list
vatCodePurchases.list
List VAT code purchases, one page at a time
Risk: read
await corsair.moco.api.vatCodePurchases.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
active | boolean | No | — |
intra_eu | boolean | No | — |
reverse_charge | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
active?: boolean | null,
code?: string | null
}[]
Vat Code Sales
get
vatCodeSales.get
Get VAT code sale
Risk: read
await corsair.moco.api.vatCodeSales.get({ id: 1234567 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Resource ID. |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | — |
tax | number | null | No | — |
description | string | null | No | — |
reverse_charge | boolean | null | No | — |
intra_eu | boolean | null | No | — |
print_gross_total | boolean | null | No | — |
notice_tax_exemption | string | null | null | No | — |
notice_tax_exemption_en | string | null | null | No | — |
notice_tax_exemption_alt | string | null | null | No | — |
active | boolean | null | No | — |
code | string | null | No | — |
credit_account | string | null | null | No | — |
list
vatCodeSales.list
List VAT code sales, one page at a time
Risk: read
await corsair.moco.api.vatCodeSales.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number, starting at 1. |
per_page | number | No | Page size. |
ids | number | string | No | Comma-separated IDs. |
updated_after | string | No | ISO 8601 UTC timestamp (e.g. 2026-01-31T14:30:00Z). Returns entities created or updated after this timestamp and is intended for incremental synchronization. Combine with delete webhooks for full synchronization. |
active | boolean | No | — |
intra_eu | boolean | No | — |
reverse_charge | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | One page of results. |
next_page | number | null | Yes | The page to ask for next: set while this page came back full (per_page, default 100), null once it came back short. |
items full type
items full type
{
id?: number | null,
tax?: number | null,
description?: string | null,
reverse_charge?: boolean | null,
intra_eu?: boolean | null,
print_gross_total?: boolean | null,
notice_tax_exemption?: string | null | null,
notice_tax_exemption_en?: string | null | null,
notice_tax_exemption_alt?: string | null | null,
active?: boolean | null,
code?: string | null,
credit_account?: string | null | null
}[]