PocketSmith
App · 20 actions
Read PocketSmith accounts, transactions, categories, and budgets.
Actions
| Action | What it does |
|---|---|
| Get a budget summary | Get a budget summary. |
| Get a category | Get a category. |
| Get a currency | Get a currency. |
| Get a transaction | Get a transaction. |
| Get a transaction account | Get a transaction account. |
| Get an account | Get an account. |
| Get an attachment | Get an attachment. |
| Get an institution | Get an institution. |
| Get the connected user | Get the connected user. |
| List accounts | List accounts. |
| List attachments | List attachments. |
| List budgets | List budgets. |
| List categories | List categories. |
| List category rules | List category rules. |
| List currencies | List currencies. |
| List institutions | List institutions. |
| List labels | List labels. |
| List saved searches | List saved searches. |
| List transaction accounts | List transaction accounts. |
| List transactions | List transactions. |
Get a budget summary
Get a budget summary.
Inputs
- Id
idnumberRequired - The unique identifier of the user.
- Period
periodtextRequired - 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. - Interval
intervalnumberRequired - The period interval, e.g. if the interval is 2 and the period is weeks, the budget will be analysed fortnightly.
- Start date
start_datedateRequired - The date to start analysing the budget from. This will be bumped out to make full periods as necessary.
- End date
end_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
- Id
idnumberRequired - 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
- Id
idtextRequired - 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
- Id
idnumberRequired - 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
- Id
idnumberRequired - 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
- Id
idnumberRequired - 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
- Id
idnumberRequired - 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
- Id
idnumberRequired - 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
- Id
idnumberRequired - The unique identifier of the user.
Outputs
datalist- Response.
Example output
{
"data": []
}List attachments
List attachments.
Inputs
- Id
idnumberRequired - The unique identifier of the user.
Outputs
datalist- Response.
Example output
{
"data": []
}List budgets
List budgets.
Inputs
- Id
idnumberRequired - The unique identifier of the account.
Outputs
datalist- Response.
Example output
{
"data": []
}List categories
List categories.
Inputs
- Id
idnumberRequired - The unique identifier of the user.
Outputs
datalist- Response.
Example output
{
"data": []
}List category rules
List category rules.
Inputs
- Id
idnumberRequired - 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
- Id
idnumberRequired - The unique identifier of the user
Outputs
datalist- Response.
Example output
{
"data": []
}List labels
List labels.
Inputs
- Id
idnumberRequired - The unique identifier of the user.
Outputs
datalist- Response.
Example output
{
"data": []
}List saved searches
List saved searches.
Inputs
- Id
idnumberRequired - The unique identifier of the user.
Outputs
datalist- Response.
Example output
{
"data": []
}List transaction accounts
List transaction accounts.
Inputs
- Id
idnumberRequired - The unique identifier of the user.
Outputs
datalist- Response.
Example output
{
"data": []
}List transactions
List transactions.
Inputs
- Id
idnumberRequired - The unique identifier of the user.
- Start date
start_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 date
end_datedate - 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_sincedate and time - Limit to transactions updated since an ISO 8601 timestamp.
- Type
typetext - Limit to transactions of this type.One of:
debit,credit. - Search
searchtext - 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
pagenumber - Choose a particular page of the results.
Outputs
datalist- Response.
Example output
{
"data": []
}