# Soldo

> Manage Soldo users, groups and wallets, move money between wallets, read cards, transactions and expense reports, tag transactions, and follow new transactions, cards and users.

App · 24 actions. Web page: https://docs.lodol.com/docs/integrations/soldo

## Actions

### Add to group

Add a user, wallet or card to a group.

**Inputs**

- Group (`group_id`, text, required): The group.
- Type (`resource_type`, text, required): What to add or remove: a user, a wallet or a card. One of: `USER`, `WALLET`, `CARD`.
- ID (`resource_id`, text, required): The user's, wallet's or card's ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "done": true
  }
}
```

### Create group

Create a group, such as a team or project.

**Inputs**

- Name (`name`, text, required): The group's name.
- Reference ID (`custom_reference_id`, text): The group's ID in your own system.
- Note (`note`, text): A note about the group.
- Type (`type`, text): The kind of group. One of: `TEAM`, `PROJECT`, `DEPARTMENT`, `DIVISION`, `SQUAD`, `UNIT`, `PRODUCTION`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "cards": [
      "example"
    ],
    "creation_time": "example",
    "custom_reference_id": "example",
    "id": "example",
    "last_update": "example",
    "members": [
      "example"
    ],
    "name": "example",
    "note": "example",
    "type": "example",
    "wallets": [
      "example"
    ]
  }
}
```

### Create user

Add a user (employee) to Soldo. With app or web access on, Soldo sends them their sign-in details.

**Inputs**

- First name (`name`, text, required): Their first name.
- Surname (`surname`, text, required): Their surname.
- Mobile country code (`mobile_prefix`, text, required): Their mobile number's country code, such as +44.
- Mobile number (`mobile`, text, required): Their mobile number.
- Email (`email`, text): Their email address.
- Job title (`job_title`, text): Their job title.
- Reference ID (`custom_reference_id`, text): Their ID in your own system, such as your HR system.
- Mobile app access (`mobile_access`, true/false): Let them use the Soldo mobile app.
- Web access (`web_access`, true/false): Let them sign in to the Soldo web console.
- Status (`status`, text): Active or inactive. Leave empty for active. One of: `ACTIVE`, `INACTIVE`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "creation_time": "example",
    "custom_reference_id": "example",
    "department": "example",
    "email": "example",
    "groups": [
      "example"
    ],
    "id": "example",
    "job_title": "example",
    "last_update": "example",
    "middlename": "example",
    "mobile": "example",
    "mobile_access": true,
    "mobile_prefix": "example",
    "name": "example",
    "reports_to": "example",
    "status": "example",
    "surname": "example",
    "visible": true,
    "web_access": true,
    "work_status": "example"
  }
}
```

### Delete group

Delete a group. Its users, wallets and cards stay.

**Inputs**

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

**Outputs**

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

**Example output**

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

### Delete user

Delete a user from Soldo.

**Inputs**

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

**Outputs**

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

**Example output**

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

### Get card

Get a card's status, cardholder, wallet and expiry date.

**Inputs**

- Card (`card_id`, text, required): The card.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "active": true,
    "card_holder": "example",
    "creation_time": "example",
    "currency_code": "example",
    "custom_reference_id": "example",
    "expiration_date": "example",
    "groups": [
      "example"
    ],
    "id": "example",
    "label": "example",
    "last_update": "example",
    "masked_pan": "example",
    "name": "example",
    "owner_public_id": "example",
    "owner_type": "example",
    "status": "example",
    "type": "example",
    "wallet_id": "example"
  }
}
```

### Get company

Get the Soldo company's name, VAT number, time zone and shipping address.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "company_account_id": "example",
    "creation_time": "example",
    "financial_entity": "example",
    "last_update": "example",
    "market": "example",
    "name": "example",
    "time_zone": "example",
    "vat_number": "example"
  }
}
```

### Get transaction

Get a transaction's amount, merchant, card, status, notes and tags.

**Inputs**

- Transaction ID (`transaction_id`, text, required): The transaction's ID, from List transactions or a trigger.
- Show details (`show_details`, true/false): Also return extra details Soldo holds for the transaction.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "amount": 1,
    "amount_currency": "example",
    "card_id": "example",
    "category": "example",
    "custom_reference_id": "example",
    "date": "example",
    "expense_report_id": "example",
    "expense_status": "example",
    "expense_type": "example",
    "fee_amount": 1,
    "fee_currency": "example",
    "id": "example",
    "masked_pan": "example",
    "merchant": {
      "name": "example",
      "raw_name": "example"
    },
    "merchant_category": {
      "code": "example",
      "description": "example"
    },
    "notes": "example",
    "owner_id": "example",
    "owner_type": "example",
    "settlement_date": "example",
    "status": "example",
    "tags": [
      {
        "dictionary": "example",
        "dictionary_id": "example",
        "tag": "example",
        "tag_id": "example"
      }
    ],
    "transaction_sign": "example",
    "trx_owner_id": "example",
    "tx_amount": 1,
    "tx_amount_currency": "example",
    "update_time": "example",
    "wallet_id": "example",
    "wallet_name": "example"
  }
}
```

### Get user

Get a user's details, status, groups and access.

**Inputs**

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

**Outputs**

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

**Example output**

```json
{
  "data": {
    "creation_time": "example",
    "custom_reference_id": "example",
    "department": "example",
    "email": "example",
    "groups": [
      "example"
    ],
    "id": "example",
    "job_title": "example",
    "last_update": "example",
    "middlename": "example",
    "mobile": "example",
    "mobile_access": true,
    "mobile_prefix": "example",
    "name": "example",
    "reports_to": "example",
    "status": "example",
    "surname": "example",
    "visible": true,
    "web_access": true,
    "work_status": "example"
  }
}
```

### Get wallet

Get a wallet's balance, currency and details.

**Inputs**

- Wallet (`wallet_id`, text, required): The wallet.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "available_amount": 1,
    "blocked_amount": 1,
    "creation_time": "example",
    "currency_code": "example",
    "custom_reference_id": "example",
    "description": "example",
    "groups": [
      "example"
    ],
    "id": "example",
    "label": "example",
    "last_update": "example",
    "name": "example",
    "primary_user_public_id": "example",
    "primary_user_type": "example",
    "visible": true
  }
}
```

### List cards

List cards with their status, cardholder and wallet, optionally by status, name or group.

**Inputs**

- Status (`status`, text): Only cards with this status. One of: `Normal`, `Lost card` (Lost), `Stolen card` (Stolen), `Expired card` (Expired), `Card Destroyed` (Destroyed).
- Name (`name`, text): Only cards with this name.
- Group (`group_id`, text): Only cards in this group.
- Page (`page`, number): The page to return, counting from 0. Leave empty for the first. At least 0.
- Page size (`page_size`, number): How many to return per page, up to 50. Leave empty for 50. From 1 to 50.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "page_size": 1,
    "pages": 1,
    "results": [
      {
        "active": true,
        "card_holder": "example",
        "creation_time": "example",
        "currency_code": "example",
        "custom_reference_id": "example",
        "expiration_date": "example",
        "groups": [
          "example"
        ],
        "id": "example",
        "label": "example",
        "last_update": "example",
        "masked_pan": "example",
        "name": "example",
        "owner_public_id": "example",
        "owner_type": "example",
        "status": "example",
        "type": "example",
        "wallet_id": "example"
      }
    ],
    "results_size": 1,
    "total": 1
  }
}
```

### List expense categories

List the account's expense categories with their codes.

**Inputs**

- Search (`text`, text): Only categories whose name or code contains this.
- Enabled (`enabled`, true/false): Only enabled (on) or disabled (off) categories.
- Page (`page`, number): The page to return, counting from 0. Leave empty for the first. At least 0.
- Page size (`page_size`, number): How many to return per page, up to 50. Leave empty for 50. From 1 to 50.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "page_size": 1,
    "pages": 1,
    "results": [
      {
        "code": "example",
        "creation_time": "example",
        "description": "example",
        "enabled": true,
        "expense_type": "example",
        "id": "example",
        "name": "example"
      }
    ],
    "results_size": 1,
    "total": 1
  }
}
```

### List expense reports

List expense reports with their amounts to reimburse, optionally by status, type or user.

**Inputs**

- Status (`status`, text): Only reports with this status. One of: `TO_BE_PROCESSED` (To be processed), `PROCESSED`, `CANCELLED`.
- Type (`type`, text): Employee or company reports. One of: `EMPLOYEE`, `COMPANY`.
- User (`employee_id`, text): Only reports of this user's expenses.
- Page (`page`, number): The page to return, counting from 0. Leave empty for the first. At least 0.
- Page size (`page_size`, number): How many to return per page, up to 50. Leave empty for 50. From 1 to 50.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "page_size": 1,
    "pages": 1,
    "results": [
      {
        "deduct_amount": 1,
        "exported_date": "example",
        "file_url": "example",
        "id": "example",
        "number": "example",
        "process_amount": 1,
        "processed_by": "example",
        "processed_date": "example",
        "protocol": "example",
        "reimburse_amount": 1,
        "status": "example",
        "trx_date_from": "example",
        "trx_date_to": "example",
        "trx_owner_id": "example",
        "type": "example"
      }
    ],
    "results_size": 1,
    "total": 1
  }
}
```

### List groups

List groups (teams, projects, departments) with their members, wallets and cards.

**Inputs**

- Type (`type`, text): Only groups of this kind. One of: `TEAM`, `PROJECT`, `DEPARTMENT`, `DIVISION`, `SQUAD`, `UNIT`, `PRODUCTION`.
- Search (`text`, text): Only groups whose name or note contains this.
- Page (`page`, number): The page to return, counting from 0. Leave empty for the first. At least 0.
- Page size (`page_size`, number): How many to return per page, up to 50. Leave empty for 50. From 1 to 50.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "page_size": 1,
    "pages": 1,
    "results": [
      {
        "cards": [
          "example"
        ],
        "creation_time": "example",
        "custom_reference_id": "example",
        "id": "example",
        "last_update": "example",
        "members": [
          "example"
        ],
        "name": "example",
        "note": "example",
        "type": "example",
        "wallets": [
          "example"
        ]
      }
    ],
    "results_size": 1,
    "total": 1
  }
}
```

### List transactions

List transactions between two days, optionally one wallet's, card's or user's, by category, status, expense status or text.

**Inputs**

- From (`from_date`, date, required): Transactions on or after this day.
- To (`to_date`, date): Transactions before this day. Leave empty for up to now.
- Date (`date_type`, text): Which date From and To compare with. Leave empty for when it was made. One of: `TRANSACTION` (When it was made), `SETTLEMENT` (When it settled), `UPDATE` (When it last changed). Default: `TRANSACTION`.
- Of a (`owner_type`, text): Whose transactions: a wallet's, a card's or a user's. Fill in their ID too. One of: `wallet`, `card`, `employee`.
- Their ID (`owner_id`, text): The wallet's, card's or user's ID.
- Group (`group_id`, text): Only transactions in this group.
- Category (`category`, text): Only transactions of this kind. One of: `Payment` (Card payment), `Withdrawal` (Cash withdrawal), `Refund`, `Load` (Money added), `Transfer`, `Fee`, `Wiretransfer` (Bank transfer).
- Status (`status`, text): Only transactions with this status. One of: `Authorised`, `Settled`, `Cancelled`, `Declined`.
- Tag (`tag_id`, text): Only transactions with this tag.
- Search (`text`, text): Only transactions whose merchant, notes, tags, card or amount contain this.
- Expense type (`expense_type`, text): Only expenses of this type. One of: `COMPANY`, `PERSONAL`, `TRAVEL_AND_ENTERTAINMENT` (Travel and entertainment).
- Expense status (`expense_status`, text): Only expenses with this review status. One of: `TO_REVIEW` (To review), `APPROVED`, `PARTIALLY_APPROVED` (Partly approved), `DENIED`.
- Order (`order`, text): Newest or oldest first. One of: `DESC` (Newest first), `ASC` (Oldest first).
- Page (`page`, number): The page to return, counting from 0. Leave empty for the first. At least 0.
- Page size (`page_size`, number): How many to return per page, up to 50. Leave empty for 50. From 1 to 50.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "page_size": 1,
    "pages": 1,
    "results": [
      {
        "amount": 1,
        "amount_currency": "example",
        "card_id": "example",
        "category": "example",
        "custom_reference_id": "example",
        "date": "example",
        "expense_report_id": "example",
        "expense_status": "example",
        "expense_type": "example",
        "fee_amount": 1,
        "fee_currency": "example",
        "id": "example",
        "masked_pan": "example",
        "merchant": {
          "name": "example",
          "raw_name": "example"
        },
        "merchant_category": {
          "code": "example",
          "description": "example"
        },
        "notes": "example",
        "owner_id": "example",
        "owner_type": "example",
        "settlement_date": "example",
        "status": "example",
        "tags": [
          {
            "dictionary": "example",
            "dictionary_id": "example",
            "tag": "example",
            "tag_id": "example"
          }
        ],
        "transaction_sign": "example",
        "trx_owner_id": "example",
        "tx_amount": 1,
        "tx_amount_currency": "example",
        "update_time": "example",
        "wallet_id": "example",
        "wallet_name": "example"
      }
    ],
    "results_size": 1,
    "total": 1
  }
}
```

### List users

List the company's users (employees), optionally by name, email, status or group.

**Inputs**

- First name (`name`, text): Only users with this first name.
- Surname (`surname`, text): Only users with this surname.
- Email (`email`, text): Only the user with this email address.
- Status (`status`, text): Only users with this status. One of: `ACTIVE`, `INACTIVE`, `BLOCKED`, `SUSPENDED`, `PENDING`, `ARCHIVED`.
- Group (`group_id`, text): Only members of this group.
- Page (`page`, number): The page to return, counting from 0. Leave empty for the first. At least 0.
- Page size (`page_size`, number): How many to return per page, up to 50. Leave empty for 50. From 1 to 50.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "page_size": 1,
    "pages": 1,
    "results": [
      {
        "creation_time": "example",
        "custom_reference_id": "example",
        "department": "example",
        "email": "example",
        "groups": [
          "example"
        ],
        "id": "example",
        "job_title": "example",
        "last_update": "example",
        "middlename": "example",
        "mobile": "example",
        "mobile_access": true,
        "mobile_prefix": "example",
        "name": "example",
        "reports_to": "example",
        "status": "example",
        "surname": "example",
        "visible": true,
        "web_access": true,
        "work_status": "example"
      }
    ],
    "results_size": 1,
    "total": 1
  }
}
```

### List wallets

List wallets with their balance, optionally by type, name or group.

**Inputs**

- Type (`type`, text): Only wallets of this type. One of: `main`, `company`, `employee`, `dedicated`.
- Name (`name`, text): Only wallets whose name contains this.
- Group (`group_id`, text): Only wallets in this group.
- Page (`page`, number): The page to return, counting from 0. Leave empty for the first. At least 0.
- Page size (`page_size`, number): How many to return per page, up to 50. Leave empty for 50. From 1 to 50.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "page_size": 1,
    "pages": 1,
    "results": [
      {
        "available_amount": 1,
        "blocked_amount": 1,
        "creation_time": "example",
        "currency_code": "example",
        "custom_reference_id": "example",
        "description": "example",
        "groups": [
          "example"
        ],
        "id": "example",
        "label": "example",
        "last_update": "example",
        "name": "example",
        "primary_user_public_id": "example",
        "primary_user_type": "example",
        "visible": true
      }
    ],
    "results_size": 1,
    "total": 1
  }
}
```

### Remove from group

Take a user, wallet or card out of a group.

**Inputs**

- Group (`group_id`, text, required): The group.
- Type (`resource_type`, text, required): What to add or remove: a user, a wallet or a card. One of: `USER`, `WALLET`, `CARD`.
- ID (`resource_id`, text, required): The user's, wallet's or card's ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "done": true
  }
}
```

### Tag transaction

Add a tag from one of the account's lists to a transaction.

**Inputs**

- Transaction ID (`transaction_id`, text, required): The transaction's ID, from List transactions or a trigger.
- Tag (`tag_id`, text, required): The tag, from one of the account's lists.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "done": true
  }
}
```

### Transfer between wallets

Move money from one of the company's wallets to another in the same currency.

**Inputs**

- From wallet (`from_wallet_id`, text, required): The wallet the money comes out of.
- To wallet (`to_wallet_id`, text, required): The wallet the money goes into.
- Amount (`amount`, number, required): How much to move, more than zero, with at most two decimals. At least 0.01.
- Currency (`currency`, text, required): The wallets' currency. One of: `EUR`, `GBP`, `USD`.
- Notes (`notes`, text): Why the money is moving. Saved on both transactions.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "amount": 1,
    "currency": "example",
    "datetime": "example",
    "from_wallet": {
      "available_amount": 1,
      "blocked_amount": 1,
      "creation_time": "example",
      "currency_code": "example",
      "custom_reference_id": "example",
      "description": "example",
      "groups": [
        "example"
      ],
      "id": "example",
      "label": "example",
      "last_update": "example",
      "name": "example",
      "primary_user_public_id": "example",
      "primary_user_type": "example",
      "visible": true
    },
    "to_wallet": {
      "available_amount": 1,
      "blocked_amount": 1,
      "creation_time": "example",
      "currency_code": "example",
      "custom_reference_id": "example",
      "description": "example",
      "groups": [
        "example"
      ],
      "id": "example",
      "label": "example",
      "last_update": "example",
      "name": "example",
      "primary_user_public_id": "example",
      "primary_user_type": "example",
      "visible": true
    }
  }
}
```

### Untag transaction

Remove a tag from a transaction.

**Inputs**

- Transaction ID (`transaction_id`, text, required): The transaction's ID, from List transactions or a trigger.
- Tag (`tag_id`, text, required): The tag, from one of the account's lists.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "done": true
  }
}
```

### Update group

Rename a group or change its note, type or reference ID.

**Inputs**

- Group (`group_id`, text, required): The group.
- Name (`name`, text): The group's name.
- Reference ID (`custom_reference_id`, text): The group's ID in your own system.
- Note (`note`, text): A note about the group.
- Type (`type`, text): The kind of group. One of: `TEAM`, `PROJECT`, `DEPARTMENT`, `DIVISION`, `SQUAD`, `UNIT`, `PRODUCTION`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "cards": [
      "example"
    ],
    "creation_time": "example",
    "custom_reference_id": "example",
    "id": "example",
    "last_update": "example",
    "members": [
      "example"
    ],
    "name": "example",
    "note": "example",
    "type": "example",
    "wallets": [
      "example"
    ]
  }
}
```

### Update transaction

Add notes to a company card transaction, or say which of the card's users made it.

**Inputs**

- Transaction ID (`transaction_id`, text, required): The transaction's ID, from List transactions or a trigger.
- Notes (`notes`, text): Notes for the transaction.
- Made by (`made_by`, text): The user who made it: one of the company card's assigned users.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "amount": 1,
    "amount_currency": "example",
    "card_id": "example",
    "category": "example",
    "custom_reference_id": "example",
    "date": "example",
    "expense_report_id": "example",
    "expense_status": "example",
    "expense_type": "example",
    "fee_amount": 1,
    "fee_currency": "example",
    "id": "example",
    "masked_pan": "example",
    "merchant": {
      "name": "example",
      "raw_name": "example"
    },
    "merchant_category": {
      "code": "example",
      "description": "example"
    },
    "notes": "example",
    "owner_id": "example",
    "owner_type": "example",
    "settlement_date": "example",
    "status": "example",
    "tags": [
      {
        "dictionary": "example",
        "dictionary_id": "example",
        "tag": "example",
        "tag_id": "example"
      }
    ],
    "transaction_sign": "example",
    "trx_owner_id": "example",
    "tx_amount": 1,
    "tx_amount_currency": "example",
    "update_time": "example",
    "wallet_id": "example",
    "wallet_name": "example"
  }
}
```

### Update user

Change a user's job title, email, mobile number, reference ID or access. Only the fields filled in change.

**Inputs**

- User (`employee_id`, text, required): The user.
- Job title (`job_title`, text): Their job title.
- Email (`email`, text): Their email address.
- Mobile country code (`mobile_prefix`, text): Their mobile number's country code, such as +44.
- Mobile number (`mobile_number`, text): Their mobile number.
- Reference ID (`custom_reference_id`, text): Their ID in your own system.
- Mobile app access (`mobile_access`, true/false): Let them use the Soldo mobile app.
- Web access (`web_access`, true/false): Let them sign in to the Soldo web console.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "creation_time": "example",
    "custom_reference_id": "example",
    "department": "example",
    "email": "example",
    "groups": [
      "example"
    ],
    "id": "example",
    "job_title": "example",
    "last_update": "example",
    "middlename": "example",
    "mobile": "example",
    "mobile_access": true,
    "mobile_prefix": "example",
    "name": "example",
    "reports_to": "example",
    "status": "example",
    "surname": "example",
    "visible": true,
    "web_access": true,
    "work_status": "example"
  }
}
```
