16 KiB
{{classname}}
All URIs are relative to https://demo.firefly-iii.org/api
Method | HTTP request | Description |
---|---|---|
DeleteAccount | Delete /v1/accounts/{id} | Permanently delete account. |
GetAccount | Get /v1/accounts/{id} | Get single account. |
ListAccount | Get /v1/accounts | List all accounts. |
ListAttachmentByAccount | Get /v1/accounts/{id}/attachments | Lists all attachments. |
ListPiggyBankByAccount | Get /v1/accounts/{id}/piggy-banks | List all piggy banks related to the account. |
ListTransactionByAccount | Get /v1/accounts/{id}/transactions | List all transactions related to the account. |
StoreAccount | Post /v1/accounts | Create new account. |
UpdateAccount | Put /v1/accounts/{id} | Update existing account. |
DeleteAccount
DeleteAccount(ctx, id, optional) Permanently delete account.
Will permanently delete an account. Any associated transactions and piggy banks are ALSO deleted. Cannot be recovered from.
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The ID of the account. | |
optional | *AccountsApiDeleteAccountOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a AccountsApiDeleteAccountOpts struct
Name | Type | Description | Notes |
---|
xTraceId | optional.Interface of string| Unique identifier associated with this request. |
Return type
(empty response body)
Authorization
firefly_iii_auth, local_bearer_auth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetAccount
AccountSingle GetAccount(ctx, id, optional) Get single account.
Returns a single account by its ID.
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The ID of the account. | |
optional | *AccountsApiGetAccountOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a AccountsApiGetAccountOpts struct
Name | Type | Description | Notes |
---|
xTraceId | optional.Interface of string| Unique identifier associated with this request. | date | optional.String| A date formatted YYYY-MM-DD. When added to the request, Firefly III will show the account's balance on that day. |
Return type
Authorization
firefly_iii_auth, local_bearer_auth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListAccount
AccountArray ListAccount(ctx, optional) List all accounts.
This endpoint returns a list of all the accounts owned by the authenticated user.
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *AccountsApiListAccountOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a AccountsApiListAccountOpts struct
Name | Type | Description | Notes |
---|---|---|---|
xTraceId | optional.Interface of string | Unique identifier associated with this request. | |
limit | optional.Int32 | Number of items per page. The default pagination is per 50 items. | |
page | optional.Int32 | Page number. The default pagination is per 50 items. | |
date | optional.String | A date formatted YYYY-MM-DD. When added to the request, Firefly III will show the account's balance on that day. | |
type_ | optional.Interface of AccountTypeFilter | Optional filter on the account type(s) returned |
Return type
Authorization
firefly_iii_auth, local_bearer_auth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListAttachmentByAccount
AttachmentArray ListAttachmentByAccount(ctx, id, optional) Lists all attachments.
Lists all attachments.
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The ID of the account. | |
optional | *AccountsApiListAttachmentByAccountOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a AccountsApiListAttachmentByAccountOpts struct
Name | Type | Description | Notes |
---|
xTraceId | optional.Interface of string| Unique identifier associated with this request. | limit | optional.Int32| Number of items per page. The default pagination is per 50 items. | page | optional.Int32| Page number. The default pagination is per 50 items. |
Return type
Authorization
firefly_iii_auth, local_bearer_auth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListPiggyBankByAccount
PiggyBankArray ListPiggyBankByAccount(ctx, id, optional) List all piggy banks related to the account.
This endpoint returns a list of all the piggy banks connected to the account.
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The ID of the account. | |
optional | *AccountsApiListPiggyBankByAccountOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a AccountsApiListPiggyBankByAccountOpts struct
Name | Type | Description | Notes |
---|
xTraceId | optional.Interface of string| Unique identifier associated with this request. | limit | optional.Int32| Number of items per page. The default pagination is per 50 items. | page | optional.Int32| Page number. The default pagination is per 50 items. |
Return type
Authorization
firefly_iii_auth, local_bearer_auth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListTransactionByAccount
TransactionArray ListTransactionByAccount(ctx, id, optional) List all transactions related to the account.
This endpoint returns a list of all the transactions connected to the account.
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The ID of the account. | |
optional | *AccountsApiListTransactionByAccountOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a AccountsApiListTransactionByAccountOpts struct
Name | Type | Description | Notes |
---|
xTraceId | optional.Interface of string| Unique identifier associated with this request. | limit | optional.Int32| Number of items per page. The default pagination is per 50 items. | page | optional.Int32| Page number. The default pagination is per 50 items. | start | optional.String| A date formatted YYYY-MM-DD. | end | optional.String| A date formatted YYYY-MM-DD. | type_ | optional.Interface of TransactionTypeFilter| Optional filter on the transaction type(s) returned. |
Return type
Authorization
firefly_iii_auth, local_bearer_auth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StoreAccount
AccountSingle StoreAccount(ctx, body, name, type_, iban, bic, accountNumber, openingBalance, openingBalanceDate, virtualBalance, currencyId, currencyCode, active, order, includeNetWorth, accountRole, creditCardType, monthlyPaymentDate, liabilityType, liabilityDirection, interest, interestPeriod, notes, latitude, longitude, zoomLevel, optional) 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).
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
body | AccountStore | JSON array with the necessary account information or key=value pairs. See the model for the exact specifications. | |
name | string | ||
type_ | ShortAccountTypeProperty | ||
iban | string | ||
bic | string | ||
accountNumber | string | ||
openingBalance | string | ||
openingBalanceDate | time.Time | ||
virtualBalance | string | ||
currencyId | string | ||
currencyCode | string | ||
active | bool | ||
order | int32 | ||
includeNetWorth | bool | ||
accountRole | AccountRoleProperty | ||
creditCardType | CreditCardTypeProperty | ||
monthlyPaymentDate | time.Time | ||
liabilityType | LiabilityTypeProperty | ||
liabilityDirection | LiabilityDirectionProperty | ||
interest | string | ||
interestPeriod | InterestPeriodProperty | ||
notes | string | ||
latitude | float64 | ||
longitude | float64 | ||
zoomLevel | int32 | ||
optional | *AccountsApiStoreAccountOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a AccountsApiStoreAccountOpts struct
Name | Type | Description | Notes |
---|
xTraceId | optional.Interface of string| Unique identifier associated with this request. |
Return type
Authorization
firefly_iii_auth, local_bearer_auth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateAccount
AccountSingle UpdateAccount(ctx, body, name, iban, bic, accountNumber, openingBalance, openingBalanceDate, virtualBalance, currencyId, currencyCode, active, order, includeNetWorth, accountRole, creditCardType, monthlyPaymentDate, liabilityType, interest, interestPeriod, notes, latitude, longitude, zoomLevel, id, optional) 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.
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
body | AccountUpdate | JSON array or formdata with updated account information. See the model for the exact specifications. | |
name | string | ||
iban | string | ||
bic | string | ||
accountNumber | string | ||
openingBalance | string | ||
openingBalanceDate | time.Time | ||
virtualBalance | string | ||
currencyId | string | ||
currencyCode | string | ||
active | bool | ||
order | int32 | ||
includeNetWorth | bool | ||
accountRole | AccountRoleProperty | ||
creditCardType | CreditCardTypeProperty | ||
monthlyPaymentDate | time.Time | ||
liabilityType | LiabilityTypeProperty | ||
interest | string | ||
interestPeriod | InterestPeriodProperty | ||
notes | string | ||
latitude | float64 | ||
longitude | float64 | ||
zoomLevel | int32 | ||
id | string | The ID of the account. | |
optional | *AccountsApiUpdateAccountOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a AccountsApiUpdateAccountOpts struct
Name | Type | Description | Notes |
---|
xTraceId | optional.Interface of string| Unique identifier associated with this request. |
Return type
Authorization
firefly_iii_auth, local_bearer_auth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]