PocketSmith

App · 20 actions

Read PocketSmith accounts, transactions, categories, and budgets.

Actions

ActionWhat it does
Get a budget summaryGet a budget summary.
Get a categoryGet a category.
Get a currencyGet a currency.
Get a transactionGet a transaction.
Get a transaction accountGet a transaction account.
Get an accountGet an account.
Get an attachmentGet an attachment.
Get an institutionGet an institution.
Get the connected userGet the connected user.
List accountsList accounts.
List attachmentsList attachments.
List budgetsList budgets.
List categoriesList categories.
List category rulesList category rules.
List currenciesList currencies.
List institutionsList institutions.
List labelsList labels.
List saved searchesList saved searches.
List transaction accountsList transaction accounts.
List transactionsList transactions.

Get a budget summary

Get a budget summary.

Inputs

IdidnumberRequired
The unique identifier of the user.
PeriodperiodtextRequired
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 uOne of: weeks, months, years, event.
IntervalintervalnumberRequired
The period interval, e.g. if the interval is 2 and the period is weeks, the budget will be analysed fortnightly.
Start datestart_datedateRequired
The date to start analysing the budget from. This will be bumped out to make full periods as necessary.
End dateend_datedateRequired
The date to stop analysing the budget from. This will be bumped out to make full periods as necessary.

Outputs

datalist
Response.
Example output
{
  "data": []
}

Get a category

Get a category.

Inputs

IdidnumberRequired
The unique identifier of the category.

Outputs

dataobject
Response.
Example output
{
  "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

IdidtextRequired
The unique identifier of the currency.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "id": "example",
    "minor_unit": 1,
    "name": "example",
    "separators": {
      "major": "example",
      "minor": "example"
    },
    "symbol": "example"
  }
}

Get a transaction

Get a transaction.

Inputs

IdidnumberRequired
The unique identifier of the transaction.

Outputs

dataobject
Response.
Example output
{
  "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

IdidnumberRequired
The unique identifier of the transaction account.

Outputs

dataobject
Response.
Example output
{
  "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

IdidnumberRequired
The unique identifier of the account.

Outputs

dataobject
Response.
Example output
{
  "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

IdidnumberRequired
The unique identifier of the attachment.

Outputs

dataobject
Response.
Example output
{
  "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

IdidnumberRequired
The unique identifier of the institution.

Outputs

dataobject
Response.
Example output
{
  "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

dataobject
Response.
Example output
{
  "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

IdidnumberRequired
The unique identifier of the user.

Outputs

datalist
Response.
Example output
{
  "data": []
}

List attachments

List attachments.

Inputs

IdidnumberRequired
The unique identifier of the user.

Outputs

datalist
Response.
Example output
{
  "data": []
}

List budgets

List budgets.

Inputs

IdidnumberRequired
The unique identifier of the account.

Outputs

datalist
Response.
Example output
{
  "data": []
}

List categories

List categories.

Inputs

IdidnumberRequired
The unique identifier of the user.

Outputs

datalist
Response.
Example output
{
  "data": []
}

List category rules

List category rules.

Inputs

IdidnumberRequired
The unique identifier of the user.

Outputs

datalist
Response.
Example output
{
  "data": []
}

List currencies

List currencies.

Inputs

None.

Outputs

datalist
Response.
Example output
{
  "data": []
}

List institutions

List institutions.

Inputs

IdidnumberRequired
The unique identifier of the user

Outputs

datalist
Response.
Example output
{
  "data": []
}

List labels

List labels.

Inputs

IdidnumberRequired
The unique identifier of the user.

Outputs

datalist
Response.
Example output
{
  "data": []
}

List saved searches

List saved searches.

Inputs

IdidnumberRequired
The unique identifier of the user.

Outputs

datalist
Response.
Example output
{
  "data": []
}

List transaction accounts

List transaction accounts.

Inputs

IdidnumberRequired
The unique identifier of the user.

Outputs

datalist
Response.
Example output
{
  "data": []
}

List transactions

List transactions.

Inputs

IdidnumberRequired
The unique identifier of the user.
Start datestart_datedate
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 dateend_datedate
Limit to transactions on or before this date. Required if start_date is provided. If not provided, defaults to today's date.
Updated sinceupdated_sincedate and time
Limit to transactions updated since an ISO 8601 timestamp.
Typetypetext
Limit to transactions of this type.One of: debit, credit.
Searchsearchtext
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.
Pagepagenumber
Choose a particular page of the results.

Outputs

datalist
Response.
Example output
{
  "data": []
}

On this page