All URIs are relative to https://demo.firefly-iii.org/api
Method | HTTP request | Description |
---|---|---|
delete_account | DELETE /v1/accounts/{id} | Permanently delete account. |
get_account | GET /v1/accounts/{id} | Get single account. |
list_account | GET /v1/accounts | List all accounts. |
list_attachment_by_account | GET /v1/accounts/{id}/attachments | Lists all attachments. |
list_piggy_bank_by_account | GET /v1/accounts/{id}/piggy-banks | List all piggy banks related to the account. |
list_transaction_by_account | GET /v1/accounts/{id}/transactions | List all transactions related to the account. |
store_account | POST /v1/accounts | Create new account. |
update_account | PUT /v1/accounts/{id} | Update existing account. |
delete_account(id, x_trace_id=x_trace_id)
Permanently delete account.
Will permanently delete an account. Any associated transactions and piggy banks are ALSO deleted. Cannot be recovered from.
- OAuth Authentication (firefly_iii_auth):
- Bearer Authentication (local_bearer_auth):
import firefly_iii_client
from firefly_iii_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://demo.firefly-iii.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = firefly_iii_client.Configuration(
host = "https://demo.firefly-iii.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure Bearer authorization: local_bearer_auth
configuration = firefly_iii_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with firefly_iii_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = firefly_iii_client.AccountsApi(api_client)
id = '123' # str | The ID of the account.
x_trace_id = 'x_trace_id_example' # str | Unique identifier associated with this request. (optional)
try:
# Permanently delete account.
api_instance.delete_account(id, x_trace_id=x_trace_id)
except Exception as e:
print("Exception when calling AccountsApi->delete_account: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | The ID of the account. | |
x_trace_id | str | Unique identifier associated with this request. | [optional] |
void (empty response body)
firefly_iii_auth, local_bearer_auth
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | Account deleted | - |
400 | Bad request | - |
401 | Unauthenticated | - |
404 | Page not found | - |
500 | Internal exception | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccountSingle get_account(id, x_trace_id=x_trace_id, var_date=var_date)
Get single account.
Returns a single account by its ID.
- OAuth Authentication (firefly_iii_auth):
- Bearer Authentication (local_bearer_auth):
import firefly_iii_client
from firefly_iii_client.models.account_single import AccountSingle
from firefly_iii_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://demo.firefly-iii.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = firefly_iii_client.Configuration(
host = "https://demo.firefly-iii.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure Bearer authorization: local_bearer_auth
configuration = firefly_iii_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with firefly_iii_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = firefly_iii_client.AccountsApi(api_client)
id = '123' # str | The ID of the account.
x_trace_id = 'x_trace_id_example' # str | Unique identifier associated with this request. (optional)
var_date = '2013-10-20' # date | A date formatted YYYY-MM-DD. When added to the request, Firefly III will show the account's balance on that day. (optional)
try:
# Get single account.
api_response = api_instance.get_account(id, x_trace_id=x_trace_id, var_date=var_date)
print("The response of AccountsApi->get_account:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AccountsApi->get_account: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | The ID of the account. | |
x_trace_id | str | Unique identifier associated with this request. | [optional] |
var_date | date | A date formatted YYYY-MM-DD. When added to the request, Firefly III will show the account's balance on that day. | [optional] |
firefly_iii_auth, local_bearer_auth
- Content-Type: Not defined
- Accept: application/vnd.api+json, application/json
Status code | Description | Response headers |
---|---|---|
200 | The requested account | - |
400 | Bad request | - |
401 | Unauthenticated | - |
404 | Page not found | - |
500 | Internal exception | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccountArray list_account(x_trace_id=x_trace_id, limit=limit, page=page, var_date=var_date, type=type)
List all accounts.
This endpoint returns a list of all the accounts owned by the authenticated user.
- OAuth Authentication (firefly_iii_auth):
- Bearer Authentication (local_bearer_auth):
import firefly_iii_client
from firefly_iii_client.models.account_array import AccountArray
from firefly_iii_client.models.account_type_filter import AccountTypeFilter
from firefly_iii_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://demo.firefly-iii.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = firefly_iii_client.Configuration(
host = "https://demo.firefly-iii.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure Bearer authorization: local_bearer_auth
configuration = firefly_iii_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with firefly_iii_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = firefly_iii_client.AccountsApi(api_client)
x_trace_id = 'x_trace_id_example' # str | Unique identifier associated with this request. (optional)
limit = 10 # int | Number of items per page. The default pagination is per 50 items. (optional)
page = 1 # int | Page number. The default pagination is per 50 items. (optional)
var_date = '2013-10-20' # date | A date formatted YYYY-MM-DD. When added to the request, Firefly III will show the account's balance on that day. (optional)
type = firefly_iii_client.AccountTypeFilter() # AccountTypeFilter | Optional filter on the account type(s) returned (optional)
try:
# List all accounts.
api_response = api_instance.list_account(x_trace_id=x_trace_id, limit=limit, page=page, var_date=var_date, type=type)
print("The response of AccountsApi->list_account:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AccountsApi->list_account: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
x_trace_id | str | Unique identifier associated with this request. | [optional] |
limit | int | Number of items per page. The default pagination is per 50 items. | [optional] |
page | int | Page number. The default pagination is per 50 items. | [optional] |
var_date | date | A date formatted YYYY-MM-DD. When added to the request, Firefly III will show the account's balance on that day. | [optional] |
type | AccountTypeFilter | Optional filter on the account type(s) returned | [optional] |
firefly_iii_auth, local_bearer_auth
- Content-Type: Not defined
- Accept: application/vnd.api+json, application/json
Status code | Description | Response headers |
---|---|---|
200 | A list of accounts | - |
400 | Bad request | - |
401 | Unauthenticated | - |
404 | Page not found | - |
500 | Internal exception | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AttachmentArray list_attachment_by_account(id, x_trace_id=x_trace_id, limit=limit, page=page)
Lists all attachments.
Lists all attachments.
- OAuth Authentication (firefly_iii_auth):
- Bearer Authentication (local_bearer_auth):
import firefly_iii_client
from firefly_iii_client.models.attachment_array import AttachmentArray
from firefly_iii_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://demo.firefly-iii.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = firefly_iii_client.Configuration(
host = "https://demo.firefly-iii.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure Bearer authorization: local_bearer_auth
configuration = firefly_iii_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with firefly_iii_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = firefly_iii_client.AccountsApi(api_client)
id = '123' # str | The ID of the account.
x_trace_id = 'x_trace_id_example' # str | Unique identifier associated with this request. (optional)
limit = 10 # int | Number of items per page. The default pagination is per 50 items. (optional)
page = 1 # int | Page number. The default pagination is per 50 items. (optional)
try:
# Lists all attachments.
api_response = api_instance.list_attachment_by_account(id, x_trace_id=x_trace_id, limit=limit, page=page)
print("The response of AccountsApi->list_attachment_by_account:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AccountsApi->list_attachment_by_account: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | The ID of the account. | |
x_trace_id | str | Unique identifier associated with this request. | [optional] |
limit | int | Number of items per page. The default pagination is per 50 items. | [optional] |
page | int | Page number. The default pagination is per 50 items. | [optional] |
firefly_iii_auth, local_bearer_auth
- Content-Type: Not defined
- Accept: application/vnd.api+json, application/json
Status code | Description | Response headers |
---|---|---|
200 | A list of attachments | - |
400 | Bad request | - |
401 | Unauthenticated | - |
404 | Page not found | - |
500 | Internal exception | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PiggyBankArray list_piggy_bank_by_account(id, x_trace_id=x_trace_id, limit=limit, page=page)
List all piggy banks related to the account.
This endpoint returns a list of all the piggy banks connected to the account.
- OAuth Authentication (firefly_iii_auth):
- Bearer Authentication (local_bearer_auth):
import firefly_iii_client
from firefly_iii_client.models.piggy_bank_array import PiggyBankArray
from firefly_iii_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://demo.firefly-iii.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = firefly_iii_client.Configuration(
host = "https://demo.firefly-iii.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure Bearer authorization: local_bearer_auth
configuration = firefly_iii_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with firefly_iii_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = firefly_iii_client.AccountsApi(api_client)
id = '123' # str | The ID of the account.
x_trace_id = 'x_trace_id_example' # str | Unique identifier associated with this request. (optional)
limit = 10 # int | Number of items per page. The default pagination is per 50 items. (optional)
page = 1 # int | Page number. The default pagination is per 50 items. (optional)
try:
# List all piggy banks related to the account.
api_response = api_instance.list_piggy_bank_by_account(id, x_trace_id=x_trace_id, limit=limit, page=page)
print("The response of AccountsApi->list_piggy_bank_by_account:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AccountsApi->list_piggy_bank_by_account: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | The ID of the account. | |
x_trace_id | str | Unique identifier associated with this request. | [optional] |
limit | int | Number of items per page. The default pagination is per 50 items. | [optional] |
page | int | Page number. The default pagination is per 50 items. | [optional] |
firefly_iii_auth, local_bearer_auth
- Content-Type: Not defined
- Accept: application/vnd.api+json, application/json
Status code | Description | Response headers |
---|---|---|
200 | A list of piggy banks | - |
400 | Bad request | - |
401 | Unauthenticated | - |
404 | Page not found | - |
500 | Internal exception | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TransactionArray list_transaction_by_account(id, x_trace_id=x_trace_id, limit=limit, page=page, start=start, end=end, type=type)
List all transactions related to the account.
This endpoint returns a list of all the transactions connected to the account.
- OAuth Authentication (firefly_iii_auth):
- Bearer Authentication (local_bearer_auth):
import firefly_iii_client
from firefly_iii_client.models.transaction_array import TransactionArray
from firefly_iii_client.models.transaction_type_filter import TransactionTypeFilter
from firefly_iii_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://demo.firefly-iii.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = firefly_iii_client.Configuration(
host = "https://demo.firefly-iii.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure Bearer authorization: local_bearer_auth
configuration = firefly_iii_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with firefly_iii_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = firefly_iii_client.AccountsApi(api_client)
id = '123' # str | The ID of the account.
x_trace_id = 'x_trace_id_example' # str | Unique identifier associated with this request. (optional)
limit = 10 # int | Number of items per page. The default pagination is per 50 items. (optional)
page = 1 # int | Page number. The default pagination is per 50 items. (optional)
start = 'Mon Sep 17 00:00:00 UTC 2018' # date | A date formatted YYYY-MM-DD. (optional)
end = 'Mon Sep 17 00:00:00 UTC 2018' # date | A date formatted YYYY-MM-DD. (optional)
type = firefly_iii_client.TransactionTypeFilter() # TransactionTypeFilter | Optional filter on the transaction type(s) returned. (optional)
try:
# List all transactions related to the account.
api_response = api_instance.list_transaction_by_account(id, x_trace_id=x_trace_id, limit=limit, page=page, start=start, end=end, type=type)
print("The response of AccountsApi->list_transaction_by_account:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AccountsApi->list_transaction_by_account: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | The ID of the account. | |
x_trace_id | str | Unique identifier associated with this request. | [optional] |
limit | int | Number of items per page. The default pagination is per 50 items. | [optional] |
page | int | Page number. The default pagination is per 50 items. | [optional] |
start | date | A date formatted YYYY-MM-DD. | [optional] |
end | date | A date formatted YYYY-MM-DD. | [optional] |
type | TransactionTypeFilter | Optional filter on the transaction type(s) returned. | [optional] |
firefly_iii_auth, local_bearer_auth
- Content-Type: Not defined
- Accept: application/vnd.api+json, application/json
Status code | Description | Response headers |
---|---|---|
200 | A list of transactions | - |
400 | Bad request | - |
401 | Unauthenticated | - |
404 | Page not found | - |
500 | Internal exception | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccountSingle store_account(account_store, x_trace_id=x_trace_id)
Create new account.
Creates a new account. The data required can be submitted as a JSON body or as a list of parameters (in key=value pairs, like a webform).
- OAuth Authentication (firefly_iii_auth):
- Bearer Authentication (local_bearer_auth):
import firefly_iii_client
from firefly_iii_client.models.account_single import AccountSingle
from firefly_iii_client.models.account_store import AccountStore
from firefly_iii_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://demo.firefly-iii.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = firefly_iii_client.Configuration(
host = "https://demo.firefly-iii.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure Bearer authorization: local_bearer_auth
configuration = firefly_iii_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with firefly_iii_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = firefly_iii_client.AccountsApi(api_client)
account_store = firefly_iii_client.AccountStore() # AccountStore | JSON array with the necessary account information or key=value pairs. See the model for the exact specifications.
x_trace_id = 'x_trace_id_example' # str | Unique identifier associated with this request. (optional)
try:
# Create new account.
api_response = api_instance.store_account(account_store, x_trace_id=x_trace_id)
print("The response of AccountsApi->store_account:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AccountsApi->store_account: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
account_store | AccountStore | JSON array with the necessary account information or key=value pairs. See the model for the exact specifications. | |
x_trace_id | str | Unique identifier associated with this request. | [optional] |
firefly_iii_auth, local_bearer_auth
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/vnd.api+json, application/json
Status code | Description | Response headers |
---|---|---|
200 | New account stored, result in response. | - |
400 | Bad request | - |
401 | Unauthenticated | - |
404 | Page not found | - |
422 | Validation error. The body will have the exact details. | - |
500 | Internal exception | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccountSingle update_account(id, account_update, x_trace_id=x_trace_id)
Update existing account.
Used to update a single account. All fields that are not submitted will be cleared (set to NULL). The model will tell you which fields are mandatory.
- OAuth Authentication (firefly_iii_auth):
- Bearer Authentication (local_bearer_auth):
import firefly_iii_client
from firefly_iii_client.models.account_single import AccountSingle
from firefly_iii_client.models.account_update import AccountUpdate
from firefly_iii_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://demo.firefly-iii.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = firefly_iii_client.Configuration(
host = "https://demo.firefly-iii.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure Bearer authorization: local_bearer_auth
configuration = firefly_iii_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with firefly_iii_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = firefly_iii_client.AccountsApi(api_client)
id = '123' # str | The ID of the account.
account_update = firefly_iii_client.AccountUpdate() # AccountUpdate | JSON array or formdata with updated account information. See the model for the exact specifications.
x_trace_id = 'x_trace_id_example' # str | Unique identifier associated with this request. (optional)
try:
# Update existing account.
api_response = api_instance.update_account(id, account_update, x_trace_id=x_trace_id)
print("The response of AccountsApi->update_account:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AccountsApi->update_account: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | The ID of the account. | |
account_update | AccountUpdate | JSON array or formdata with updated account information. See the model for the exact specifications. | |
x_trace_id | str | Unique identifier associated with this request. | [optional] |
firefly_iii_auth, local_bearer_auth
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/vnd.api+json, application/json
Status code | Description | Response headers |
---|---|---|
200 | Updated account stored, result in response | - |
400 | Bad request | - |
401 | Unauthenticated | - |
404 | Page not found | - |
422 | Validation error. The body will have the exact details. | - |
500 | Internal exception | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]