# PocketSmith

> Read PocketSmith accounts, transactions, categories, and budgets.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/pocketsmith

## Actions

### Get a budget summary

Get a budget summary.

**Inputs**

- Id (`id`, number, required): The unique identifier of the user.
- Period (`period`, text, required): The period to analyse in, one of `weeks`, `months` or `years`. Also supported is `event`, although event period analysis is only possible when the budget events gathered align, so in this case where all categories are analysed together, it's highly u. One of: `weeks`, `months`, `years`, `event`.
- Interval (`interval`, number, required): The period interval, e.g. if the interval is 2 and the period is weeks, the budget will be analysed fortnightly.
- Start date (`start_date`, date, required): The date to start analysing the budget from. This will be bumped out to make full periods as necessary.
- End date (`end_date`, date, required): The date to stop analysing the budget from. This will be bumped out to make full periods as necessary.

**Outputs**

- `data` (list): Response.

**Example output**

```json
{
  "data": []
}
```

### Get a category

Get a category.

**Inputs**

- Id (`id`, number, required): The unique identifier of the category.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "children": [],
    "colour": "example",
    "created_at": "example",
    "id": 1,
    "is_bill": false,
    "is_transfer": false,
    "parent_id": 1,
    "refund_behaviour": "debits_are_deductions",
    "roll_up": false,
    "title": "example",
    "updated_at": "example"
  }
}
```

### Get a currency

Get a currency.

**Inputs**

- Id (`id`, text, required): The unique identifier of the currency.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "id": "example",
    "minor_unit": 1,
    "name": "example",
    "separators": {
      "major": "example",
      "minor": "example"
    },
    "symbol": "example"
  }
}
```

### Get a transaction

Get a transaction.

**Inputs**

- Id (`id`, number, required): The unique identifier of the transaction.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "amount": 1.0,
    "amount_in_base_currency": 1.0,
    "category": {
      "children": [],
      "colour": "example",
      "created_at": "example",
      "id": 1,
      "is_bill": false,
      "is_transfer": false,
      "parent_id": 1,
      "refund_behaviour": "debits_are_deductions",
      "roll_up": false,
      "title": "example",
      "updated_at": "example"
    },
    "cheque_number": "example",
    "closing_balance": 1.0,
    "created_at": "example",
    "date": "example",
    "id": 1,
    "is_transfer": false,
    "labels": [],
    "memo": "example",
    "needs_review": false,
    "note": "example",
    "original_payee": "example",
    "payee": "example",
    "status": "pending",
    "transaction_account": {
      "created_at": "example",
      "currency_code": "example",
      "current_balance": 1.0,
      "current_balance_date": "example",
      "current_balance_exchange_rate": 1.0,
      "current_balance_in_base_currency": 1.0,
      "id": 1,
      "institution": {
        "created_at": "example",
        "currency_code": "example",
        "id": 1,
        "title": "example",
        "updated_at": "example"
      },
      "name": "example",
      "number": "example",
      "safe_balance": 1.0,
      "safe_balance_in_base_currency": 1.0,
      "starting_balance": 1.0,
      "starting_balance_date": "example",
      "type": "bank",
      "updated_at": "example"
    },
    "type": "debit",
    "updated_at": "example",
    "upload_source": "example"
  }
}
```

### Get a transaction account

Get a transaction account.

**Inputs**

- Id (`id`, number, required): The unique identifier of the transaction account.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "currency_code": "example",
    "current_balance": 1.0,
    "current_balance_date": "example",
    "current_balance_exchange_rate": 1.0,
    "current_balance_in_base_currency": 1.0,
    "id": 1,
    "institution": {
      "created_at": "example",
      "currency_code": "example",
      "id": 1,
      "title": "example",
      "updated_at": "example"
    },
    "name": "example",
    "number": "example",
    "safe_balance": 1.0,
    "safe_balance_in_base_currency": 1.0,
    "starting_balance": 1.0,
    "starting_balance_date": "example",
    "type": "bank",
    "updated_at": "example"
  }
}
```

### Get an account

Get an account.

**Inputs**

- Id (`id`, number, required): The unique identifier of the account.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "currency_code": "example",
    "current_balance": 1.0,
    "current_balance_date": "example",
    "current_balance_exchange_rate": 1.0,
    "current_balance_in_base_currency": 1.0,
    "id": 1,
    "is_net_worth": false,
    "primary_scenario": {
      "achieve_date": "example",
      "closing_balance": 1.0,
      "closing_balance_date": "example",
      "created_at": "example",
      "current_balance": 1.0,
      "current_balance_date": "example",
      "current_balance_exchange_rate": 1.0,
      "current_balance_in_base_currency": 1.0,
      "description": "example",
      "id": 1,
      "interest_rate": 1.0,
      "interest_rate_repeat_id": 1,
      "maximum-value": 1.0,
      "minimum-value": 1.0,
      "safe_balance": 1.0,
      "safe_balance_in_base_currency": 1.0,
      "starting_balance": 1.0,
      "starting_balance_date": "example",
      "title": "example",
      "type": "no-interest",
      "updated_at": "example"
    },
    "primary_transaction_account": {
      "created_at": "example",
      "currency_code": "example",
      "current_balance": 1.0,
      "current_balance_date": "example",
      "current_balance_exchange_rate": 1.0,
      "current_balance_in_base_currency": 1.0,
      "id": 1,
      "institution": {
        "created_at": "example",
        "currency_code": "example",
        "id": 1,
        "title": "example",
        "updated_at": "example"
      },
      "name": "example",
      "number": "example",
      "safe_balance": 1.0,
      "safe_balance_in_base_currency": 1.0,
      "starting_balance": 1.0,
      "starting_balance_date": "example",
      "type": "bank",
      "updated_at": "example"
    },
    "safe_balance": 1.0,
    "safe_balance_in_base_currency": 1.0,
    "scenarios": [],
    "title": "example",
    "transaction_accounts": [],
    "type": "bank",
    "updated_at": "example"
  }
}
```

### Get an attachment

Get an attachment.

**Inputs**

- Id (`id`, number, required): The unique identifier of the attachment.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "content_type": "example",
    "content_type_meta": {
      "description": "example",
      "extension": "example",
      "title": "example"
    },
    "created_at": "example",
    "file_name": "example",
    "id": 1,
    "original_url": "example",
    "title": "example",
    "type": "example",
    "updated_at": "example",
    "variants": {
      "large_url": "example",
      "thumb_url": "example"
    }
  }
}
```

### Get an institution

Get an institution.

**Inputs**

- Id (`id`, number, required): The unique identifier of the institution.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "currency_code": "example",
    "id": 1,
    "title": "example",
    "updated_at": "example"
  }
}
```

### Get the connected user

Get the connected user.

**Inputs**: None.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "always_show_base_currency": false,
    "available_accounts": 1,
    "available_budgets": 1,
    "avatar_url": "example",
    "base_currency_code": "example",
    "beta_user": false,
    "created_at": "example",
    "email": "example",
    "forecast_defer_recalculate": false,
    "forecast_end_date": "example",
    "forecast_last_accessed_at": "example",
    "forecast_last_updated_at": "example",
    "forecast_needs_recalculate": false,
    "forecast_start_date": "example",
    "id": 1,
    "is_reviewing_transactions": false,
    "last_activity_at": "example",
    "last_logged_in_at": "example",
    "login": "example",
    "name": "example",
    "time_zone": "example",
    "updated_at": "example",
    "using_multiple_currencies": false,
    "week_start_day": 1
  }
}
```

### List accounts

List accounts.

**Inputs**

- Id (`id`, number, required): The unique identifier of the user.

**Outputs**

- `data` (list): Response.

**Example output**

```json
{
  "data": []
}
```

### List attachments

List attachments.

**Inputs**

- Id (`id`, number, required): The unique identifier of the user.

**Outputs**

- `data` (list): Response.

**Example output**

```json
{
  "data": []
}
```

### List budgets

List budgets.

**Inputs**

- Id (`id`, number, required): The unique identifier of the account.

**Outputs**

- `data` (list): Response.

**Example output**

```json
{
  "data": []
}
```

### List categories

List categories.

**Inputs**

- Id (`id`, number, required): The unique identifier of the user.

**Outputs**

- `data` (list): Response.

**Example output**

```json
{
  "data": []
}
```

### List category rules

List category rules.

**Inputs**

- Id (`id`, number, required): The unique identifier of the user.

**Outputs**

- `data` (list): Response.

**Example output**

```json
{
  "data": []
}
```

### List currencies

List currencies.

**Inputs**: None.

**Outputs**

- `data` (list): Response.

**Example output**

```json
{
  "data": []
}
```

### List institutions

List institutions.

**Inputs**

- Id (`id`, number, required): The unique identifier of the user

**Outputs**

- `data` (list): Response.

**Example output**

```json
{
  "data": []
}
```

### List labels

List labels.

**Inputs**

- Id (`id`, number, required): The unique identifier of the user.

**Outputs**

- `data` (list): Response.

**Example output**

```json
{
  "data": []
}
```

### List saved searches

List saved searches.

**Inputs**

- Id (`id`, number, required): The unique identifier of the user.

**Outputs**

- `data` (list): Response.

**Example output**

```json
{
  "data": []
}
```

### List transaction accounts

List transaction accounts.

**Inputs**

- Id (`id`, number, required): The unique identifier of the user.

**Outputs**

- `data` (list): Response.

**Example output**

```json
{
  "data": []
}
```

### List transactions

List transactions.

**Inputs**

- Id (`id`, number, required): The unique identifier of the user.
- Start date (`start_date`, date): Limit to transactions on or after this date. Required if end_date is provided. If not provided, defaults to the furtherest date allowed by the user's subscription.
- End date (`end_date`, date): Limit to transactions on or before this date. Required if start_date is provided. If not provided, defaults to today's date.
- Updated since (`updated_since`, date and time): Limit to transactions updated since an ISO 8601 timestamp.
- Type (`type`, text): Limit to transactions of this type. One of: `debit`, `credit`.
- Search (`search`, text): Limit to transactions matching a keyword search string. The provided string is matched against the transaction amount, account name, payee, category title, note, labels, and the date in ISO 8601 format.
- Page (`page`, number): Choose a particular page of the results.

**Outputs**

- `data` (list): Response.

**Example output**

```json
{
  "data": []
}
```
