# Rydoo

> Work with expenses, users, departments, projects and card transactions in Rydoo.

App · 26 actions. Web page: https://docs.lodol.com/docs/integrations/rydoo

## Actions

### Create a category

Add an expense category.

**Inputs**

- Name (`name`, text, required): Name of the category.
- Accounting number (`accounting_number`, text): The ledger account expenses in it are booked to.
- Branch (`branch_id`, text): The branch (legal entity) it belongs to.
- Parent category (`parent_category_id`, text): The category this one sits under.
- Active (`is_active`, true/false): Whether the category can be used.
- Comment required (`comment_required`, true/false): Whether an expense in this category needs a comment.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": {
      "accountingNumber": "example",
      "branch": {
        "id": "example",
        "name": "example",
        "refId": "example"
      },
      "id": "example",
      "isActive": true,
      "isCommentFieldRequired": true,
      "name": "example",
      "parentCategory": {
        "id": "example",
        "name": "example",
        "refId": "example"
      },
      "secondaryAccountingNumber": "example"
    },
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### Create a group

Add a group (department) to your Rydoo company.

**Inputs**

- Name (`name`, text, required): Name of the group (department).
- Reference (`ref_id`, text): Your reference for the group, such as its code in your ERP.
- Branch (`branch_id`, text): The branch (legal entity) the group belongs to.
- Parent group (`parent_group_id`, text): The group this one sits under.
- Active (`is_active`, true/false): Whether the group can be used.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": {
      "branch": {
        "id": "example",
        "name": "example",
        "refId": "example"
      },
      "id": "example",
      "isActive": true,
      "name": "example",
      "parentGroup": {
        "id": "example",
        "name": "example",
        "refId": "example"
      },
      "refId": "example"
    },
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### Create a project

Add a project expenses can be booked on.

**Inputs**

- Name (`name`, text, required): Name of the project.
- Reference (`ref_id`, text): Your reference for the project, such as its code in your ERP.
- Branch (`branch_id`, text): The branch (legal entity) the project belongs to.
- Active (`is_active`, true/false): Whether expenses can be booked on the project.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": {
      "branch": {
        "id": "example",
        "name": "example",
        "refId": "example"
      },
      "id": "example",
      "isActive": true,
      "isDefaultForGroups": [
        {
          "id": "example",
          "name": "example",
          "refId": "example"
        }
      ],
      "limitedToGroups": [
        {
          "id": "example",
          "name": "example",
          "refId": "example"
        }
      ],
      "name": "example",
      "refId": "example"
    },
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### Create a user

Add a user to your Rydoo company. An enabled user gets an email to verify their account.

**Inputs**

- Email (`email`, text, required): The user's email address. It must be unique in your company.
- First name (`first_name`, text, required): The user's first name.
- Last name (`last_name`, text, required): The user's last name.
- Reference (`ref_id`, text): Your reference for the user, often their employee or vendor number in your ERP.
- Enabled (`enabled`, true/false): Whether the user is active. An enabled user gets an email to verify their account.
- Sign-in (`authentication`, text): How the user signs in. Leave empty to follow your company's settings. One of: `Password`, `Sso`.
- Country (`country`, text): The user's country, as a three-letter code such as `BEL` or `FRA`.
- Language (`language`, text): The language the user sees Rydoo in. One of: `en-US`, `nl-BE`, `fr-FR`, `de-DE`, `es-ES`, `it-IT`, `pt-BR`, `da-DK`, `hu-HU`, `cs-CZ`, and 6 more.
- Bank account (`account_number`, text): The bank account (IBAN) the user's expenses are reimbursed to.
- Group (`group_id`, text): The group (department) the user starts in.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": {
      "accountNumber": "example",
      "authentication": "example",
      "commuterTraffic": {},
      "country": "example",
      "customFields": [
        {
          "key": "example",
          "value": "example",
          "valueCode": "example"
        }
      ],
      "email": "example",
      "enabled": true,
      "firstName": "example",
      "id": "example",
      "languageCountryCode": "example",
      "lastName": "example",
      "modules": [
        "example"
      ],
      "refId": "example",
      "roles": [
        "example"
      ]
    },
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### Delete a category

Delete an expense category.

**Inputs**

- Category (`category_id`, text, required): The expense category.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### Delete a group

Delete a group (department) from your Rydoo company.

**Inputs**

- Group (`group_id`, text, required): The group (department).

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### Get a group

Get a group (department) with its branch and parent group.

**Inputs**

- Group (`group_id`, text, required): The group (department).

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": {
      "branch": {
        "id": "example",
        "name": "example",
        "refId": "example"
      },
      "id": "example",
      "isActive": true,
      "name": "example",
      "parentGroup": {
        "id": "example",
        "name": "example",
        "refId": "example"
      },
      "refId": "example"
    },
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### Get a project

Get a project with its branch and the groups it is limited to.

**Inputs**

- Project (`project_id`, text, required): The project.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": {
      "branch": {
        "id": "example",
        "name": "example",
        "refId": "example"
      },
      "id": "example",
      "isActive": true,
      "isDefaultForGroups": [
        {
          "id": "example",
          "name": "example",
          "refId": "example"
        }
      ],
      "limitedToGroups": [
        {
          "id": "example",
          "name": "example",
          "refId": "example"
        }
      ],
      "name": "example",
      "refId": "example"
    },
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### Get a user

Get a user's details, roles and custom fields.

**Inputs**

- User (`rydoo_user_id`, text, required): The user.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": {
      "accountNumber": "example",
      "authentication": "example",
      "commuterTraffic": {},
      "country": "example",
      "customFields": [
        {
          "key": "example",
          "value": "example",
          "valueCode": "example"
        }
      ],
      "email": "example",
      "enabled": true,
      "firstName": "example",
      "id": "example",
      "languageCountryCode": "example",
      "lastName": "example",
      "modules": [
        "example"
      ],
      "refId": "example",
      "roles": [
        "example"
      ]
    },
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### Get an expense

Get an expense with its user, amount, category, project, VAT and status.

**Inputs**

- Expense ID (`expense_id`, text, required): The expense, by its Rydoo ID.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "amount": 1,
    "branch": {},
    "category": {},
    "comment": "example",
    "currencyCode": "example",
    "expenseDate": "example",
    "expenseStatus": "example",
    "expenseType": "example",
    "group": {},
    "id": "example",
    "parentExpenseGuid": "example",
    "project": {},
    "regular": {},
    "user": {
      "email": "example",
      "externalId": "example",
      "firstName": "example",
      "id": "example",
      "lastName": "example"
    },
    "xpdReference": "example"
  }
}
```

### List a user's groups

List the groups (departments) a user belongs to, with the dates they apply.

**Inputs**

- User (`rydoo_user_id`, text, required): The user.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "endDate": "example",
        "group": {
          "branch": {
            "id": "example",
            "name": "example",
            "refId": "example"
          },
          "id": "example",
          "name": "example",
          "refId": "example"
        },
        "startDate": "example"
      }
    ],
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### List branches

List the branches (legal entities) of your Rydoo company, with their currency and country.

**Inputs**

- Search (`search`, text): Only branches whose name or ID contains this text.
- Active (`is_active`, true/false): Only active (true) or only inactive (false) records.
- Results (`limit`, number): How many results to return. Leave empty for 100. From 1 to 1000.
- Skip (`offset`, number): How many results to skip, for the next page. At least 0.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "country": "example",
        "currency": "example",
        "eInvoicingEnabled": true,
        "enterpriseNumber": "example",
        "id": "example",
        "name": "example"
      }
    ],
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### List card transactions

List company card transactions, optionally by status or date.

**Inputs**

- Status (`status`, text): Only transactions with this status. One of: `Completed`, `Pending`, `Failed`, `Reversed`, `Refunded`.
- From (`from_date`, date and time): Only transactions on or after this time.
- To (`to_date`, date and time): Only transactions on or before this time.
- Results (`limit`, number): How many results to return. Leave empty for 100. From 1 to 1000.
- Skip (`offset`, number): How many results to skip, for the next page. At least 0.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "billedAmount": 1,
        "billedCurrency": "example",
        "id": "example",
        "matchedExpenses": [
          {
            "expenseGuid": "example",
            "status": "example",
            "xpdId": "example"
          }
        ],
        "matchingStatus": "example",
        "merchant": "example",
        "merchantCategory": {
          "code": "example",
          "description": "example"
        },
        "originalAmount": 1,
        "originalCurrency": "example",
        "paymentMethod": {},
        "processorTransactionId": "example",
        "status": "example",
        "transactionDate": "example",
        "user": {
          "email": "example"
        }
      }
    ],
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### List categories

List the expense categories of your Rydoo company.

**Inputs**

- Search (`search`, text): Only records whose name contains this text.
- Branch (`branch_id`, text): Only records of this branch (legal entity).
- Active (`is_active`, true/false): Only active (true) or only inactive (false) records.
- Results (`limit`, number): How many results to return. Leave empty for 100. From 1 to 1000.
- Skip (`offset`, number): How many results to skip, for the next page. At least 0.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "accountingNumber": "example",
        "branchName": "example",
        "hasChildren": true,
        "id": "example",
        "isActive": true,
        "name": "example"
      }
    ],
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### List expenses

List expenses, optionally by status, type, user, group, project or date.

**Inputs**

- Status (`status`, text): Only expenses with this status. One of: `Submitted`, `Approved`, `Rejected`, `Controlled`, `Reported`, `Reimbursed`, `Recalled`, `Unreported`, `Unapproved`, `Uncontrolled`, and 9 more.
- Type (`expense_type`, text): Only expenses of this type. One of: `Expense`, `MileageExpense`, `TimeExpense`, `Advance`, `PurchaseOrder`, `PerDiem`, `CounterExpense`.
- User (`rydoo_user_id`, text): Only this user's expenses.
- Group (`group_id`, text): Only expenses of this group.
- Project (`project_id`, text): Only expenses on this project.
- From (`start_date`, date and time): Only expenses dated on or after this time.
- To (`end_date`, date and time): Only expenses dated on or before this time.
- Added after (`added_after`, date and time): Only expenses added after this time.
- Approved after (`approved_after`, date and time): Only expenses approved after this time.
- Leave out reported (`exclude_reported`, true/false): Leave out expenses already reported (booked).
- Results (`limit`, number): How many results to return. Leave empty for 100. From 1 to 1000.
- Skip (`offset`, number): How many results to skip, for the next page. At least 0.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "date": "example",
        "expenseType": "example",
        "hasPotentialDuplicate": true,
        "hasRuleViolations": true,
        "id": "example",
        "matchStatus": "example",
        "merchantName": "example",
        "originalAmount": 1,
        "originalCurrency": "example",
        "parentExpenseGuid": "example",
        "status": "example",
        "userFullName": "example"
      }
    ],
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### List exported expenses

List the expenses exported for booking in a time range, to pick up in your ERP.

**Inputs**

- Exported from (`exported_from`, date and time): Only expenses exported on or after this time.
- Exported to (`exported_to`, date and time): Only expenses exported on or before this time.
- Branch (`branch_id`, text): Only expenses of this branch.
- User (`rydoo_user_id`, text): Only this user's expenses.
- Results (`limit`, number): How many expenses to return. At least 1.
- After expense ID (`starting_after`, text): For the next page, the ID of the last expense on the previous one.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "expenseId": "example",
        "exportedAt": "example",
        "refId": "example"
      }
    ],
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### List groups

List the groups (departments) in your Rydoo company.

**Inputs**

- Search (`search`, text): Only records whose name contains this text.
- Branch (`branch_id`, text): Only records of this branch (legal entity).
- Active (`is_active`, true/false): Only active (true) or only inactive (false) records.
- Results (`limit`, number): How many results to return. Leave empty for 100. From 1 to 1000.
- Skip (`offset`, number): How many results to skip, for the next page. At least 0.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "branchId": "example",
        "branchName": "example",
        "hasChildren": true,
        "id": "example",
        "isActive": true,
        "name": "example",
        "refId": "example"
      }
    ],
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### List projects

List the projects expenses can be booked on.

**Inputs**

- Search (`search`, text): Only projects whose name or reference contains this text.
- Reference (`ref_id`, text): Only the project with exactly this reference.
- Active (`is_active`, true/false): Only active (true) or only inactive (false) records.
- Results (`limit`, number): How many results to return. Leave empty for 100. From 1 to 1000.
- Skip (`offset`, number): How many results to skip, for the next page. At least 0.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "branchName": "example",
        "id": "example",
        "isActive": true,
        "name": "example",
        "refId": "example"
      }
    ],
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### List trips

List trips, optionally by user, status or dates.

**Inputs**

- User (`rydoo_user_id`, text): Only this user's trips.
- Status (`status`, text): Only trips with this status. One of: `Created`, `ToSubmit`, `Submitted`, `Approved`, `Rejected`, `Completed`, `Controlled`, `Recalled`.
- Search (`search`, text): Only trips whose name, reference or destination contains this text.
- From (`from_date`, date and time): Only trips ending on or after this time.
- To (`to_date`, date and time): Only trips starting on or before this time.
- Results (`limit`, number): How many results to return. Leave empty for 100. From 1 to 1000.
- Skip (`offset`, number): How many results to skip, for the next page. At least 0.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "endDate": "example",
        "id": "example",
        "isActive": true,
        "name": "example",
        "refId": "example",
        "startDate": "example",
        "status": "example",
        "userId": "example"
      }
    ],
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### List users

Find users in your Rydoo company by name, email or reference.

**Inputs**

- Search (`search`, text): Only users whose name or email contains this text.
- Email (`email`, text): Only the user with this email.
- Reference (`external_id`, text): Only the user with this reference.
- Results (`limit`, number): How many results to return. Leave empty for 100. From 1 to 1000.
- Skip (`offset`, number): How many results to skip, for the next page. At least 0.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "company": "example",
        "firstName": "example",
        "id": "example",
        "lastLoginDate": "example",
        "lastName": "example",
        "roles": "example",
        "status": "example",
        "userName": "example",
        "verificationRequired": true
      }
    ],
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### Mark an expense reported

Mark an expense as reported (booked in your ERP).

**Inputs**

- Expense ID (`expense_id`, text, required): The expense, by its Rydoo ID.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {}
}
```

### Mark expenses reimbursed

Mark reported expenses as reimbursed once you have paid them, with an optional payment reference.

**Inputs**

- Expense IDs (`expense_ids`, list, required): The expenses that were paid, by their Rydoo IDs.
- Payment reference (`payment_reference`, text): The payment's reference, such as the bank transfer ID.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "errorCode": 1,
        "expenseId": "example",
        "expenseStatus": "example",
        "message": "example",
        "xpdReference": "example"
      }
    ],
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### Reject expenses

Reject one or more expenses with a reason and a message to the submitter.

**Inputs**

- Expense IDs (`expense_ids`, list, required): The expenses to reject, by their Rydoo IDs.
- Reason (`reason_id`, text, required): Why they are rejected, from your company's reject reasons.
- Message (`message`, text): A message to the person who submitted them.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": {
      "results": [
        {
          "errorCode": 1,
          "expenseId": "example"
        }
      ]
    },
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### Update a group

Change a group (department). Fields left empty keep their current value.

**Inputs**

- Group (`group_id`, text, required): The group (department).
- Name (`name`, text): Name of the group (department).
- Reference (`ref_id`, text): Your reference for the group, such as its code in your ERP.
- Branch (`branch_id`, text): The branch (legal entity) the group belongs to.
- Parent group (`parent_group_id`, text): The group this one sits under.
- Active (`is_active`, true/false): Whether the group can be used.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": {
      "branch": {
        "id": "example",
        "name": "example",
        "refId": "example"
      },
      "id": "example",
      "isActive": true,
      "name": "example",
      "parentGroup": {
        "id": "example",
        "name": "example",
        "refId": "example"
      },
      "refId": "example"
    },
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### Update a project

Change a project, or switch it off. Fields left empty keep their current value.

**Inputs**

- Project (`project_id`, text, required): The project.
- Name (`name`, text): Name of the project.
- Reference (`ref_id`, text): Your reference for the project, such as its code in your ERP.
- Branch (`branch_id`, text): The branch (legal entity) the project belongs to.
- Active (`is_active`, true/false): Whether expenses can be booked on the project.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": {
      "branch": {
        "id": "example",
        "name": "example",
        "refId": "example"
      },
      "id": "example",
      "isActive": true,
      "isDefaultForGroups": [
        {
          "id": "example",
          "name": "example",
          "refId": "example"
        }
      ],
      "limitedToGroups": [
        {
          "id": "example",
          "name": "example",
          "refId": "example"
        }
      ],
      "name": "example",
      "refId": "example"
    },
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```

### Update a user

Change a user's details. Fields left empty keep their current value.

**Inputs**

- User (`rydoo_user_id`, text, required): The user.
- Email (`email`, text): The user's email address. It must be unique in your company.
- First name (`first_name`, text): The user's first name.
- Last name (`last_name`, text): The user's last name.
- Reference (`ref_id`, text): Your reference for the user, often their employee or vendor number in your ERP.
- Enabled (`enabled`, true/false): Whether the user is active. An enabled user gets an email to verify their account.
- Sign-in (`authentication`, text): How the user signs in. Leave empty to follow your company's settings. One of: `Password`, `Sso`.
- Country (`country`, text): The user's country, as a three-letter code such as `BEL` or `FRA`.
- Language (`language`, text): The language the user sees Rydoo in. One of: `en-US`, `nl-BE`, `fr-FR`, `de-DE`, `es-ES`, `it-IT`, `pt-BR`, `da-DK`, `hu-HU`, `cs-CZ`, and 6 more.
- Bank account (`account_number`, text): The bank account (IBAN) the user's expenses are reimbursed to.

**Outputs**

- `data` (object): The response from Rydoo.

**Example output**

```json
{
  "data": {
    "data": {
      "accountNumber": "example",
      "authentication": "example",
      "commuterTraffic": {},
      "country": "example",
      "customFields": [
        {
          "key": "example",
          "value": "example",
          "valueCode": "example"
        }
      ],
      "email": "example",
      "enabled": true,
      "firstName": "example",
      "id": "example",
      "languageCountryCode": "example",
      "lastName": "example",
      "modules": [
        "example"
      ],
      "refId": "example",
      "roles": [
        "example"
      ]
    },
    "links": {
      "count": "example",
      "next": "example"
    },
    "messages": [
      {
        "code": 1,
        "message": "example"
      }
    ]
  }
}
```
