14 KiB
{{classname}}
All URIs are relative to https://demo.firefly-iii.org/api
Method | HTTP request | Description |
---|---|---|
DeleteBill | Delete /v1/bills/{id} | Delete a bill. |
GetBill | Get /v1/bills/{id} | Get a single bill. |
ListAttachmentByBill | Get /v1/bills/{id}/attachments | List all attachments uploaded to the bill. |
ListBill | Get /v1/bills | List all bills. |
ListRuleByBill | Get /v1/bills/{id}/rules | List all rules associated with the bill. |
ListTransactionByBill | Get /v1/bills/{id}/transactions | List all transactions associated with the bill. |
StoreBill | Post /v1/bills | Store a new bill |
UpdateBill | Put /v1/bills/{id} | Update existing bill. |
DeleteBill
DeleteBill(ctx, id, optional) Delete a bill.
Delete a bill. This will not delete any associated rules. Will not remove associated transactions. WILL remove all associated attachments.
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The ID of the bill. | |
optional | *BillsApiDeleteBillOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a BillsApiDeleteBillOpts 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]
GetBill
BillSingle GetBill(ctx, id, optional) Get a single bill.
Get a single bill.
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The ID of the bill. | |
optional | *BillsApiGetBillOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a BillsApiGetBillOpts struct
Name | Type | Description | Notes |
---|
xTraceId | optional.Interface of string| Unique identifier associated with this request. | start | optional.String| A date formatted YYYY-MM-DD. If it is are added to the request, Firefly III will calculate the appropriate payment and paid dates. | end | optional.String| A date formatted YYYY-MM-DD. If it is added to the request, Firefly III will calculate the appropriate payment and paid dates. |
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]
ListAttachmentByBill
AttachmentArray ListAttachmentByBill(ctx, id, optional) List all attachments uploaded to the bill.
This endpoint will list all attachments linked to the bill.
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The ID of the bill. | |
optional | *BillsApiListAttachmentByBillOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a BillsApiListAttachmentByBillOpts 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]
ListBill
BillArray ListBill(ctx, optional) List all bills.
This endpoint will list all the user's bills.
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *BillsApiListBillOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a BillsApiListBillOpts 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. If it is are added to the request, Firefly III will calculate the appropriate payment and paid dates. | |
end | optional.String | A date formatted YYYY-MM-DD. If it is added to the request, Firefly III will calculate the appropriate payment and paid dates. |
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]
ListRuleByBill
RuleArray ListRuleByBill(ctx, id, optional) List all rules associated with the bill.
This endpoint will list all rules that have an action to set the bill to this bill.
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The ID of the bill. | |
optional | *BillsApiListRuleByBillOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a BillsApiListRuleByBillOpts 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: Not defined
- Accept: application/json, application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListTransactionByBill
TransactionArray ListTransactionByBill(ctx, id, optional) List all transactions associated with the bill.
This endpoint will list all transactions linked to this bill.
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The ID of the bill. | |
optional | *BillsApiListTransactionByBillOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a BillsApiListTransactionByBillOpts struct
Name | Type | Description | Notes |
---|
xTraceId | optional.Interface of string| Unique identifier associated with this request. | 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]
StoreBill
BillSingle StoreBill(ctx, body, currencyId, currencyCode, name, amountMin, amountMax, date, endDate, extensionDate, repeatFreq, skip, active, notes, objectGroupId, objectGroupTitle, optional) Store a new bill
Creates a new bill. The data required can be submitted as a JSON body or as a list of parameters.
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
body | BillStore | JSON array or key=value pairs with the necessary bill information. See the model for the exact specifications. | |
currencyId | string | ||
currencyCode | string | ||
name | string | ||
amountMin | string | ||
amountMax | string | ||
date | time.Time | ||
endDate | time.Time | ||
extensionDate | time.Time | ||
repeatFreq | BillRepeatFrequency | ||
skip | int32 | ||
active | bool | ||
notes | string | ||
objectGroupId | string | ||
objectGroupTitle | string | ||
optional | *BillsApiStoreBillOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a BillsApiStoreBillOpts 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]
UpdateBill
BillSingle UpdateBill(ctx, body, currencyId, currencyCode, name, amountMin, amountMax, date, endDate, extensionDate, repeatFreq, skip, active, notes, objectGroupId, objectGroupTitle, id, optional) Update existing bill.
Update existing bill.
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
body | BillUpdate | JSON array or key=value pairs with updated bill information. See the model for the exact specifications. | |
currencyId | string | ||
currencyCode | string | ||
name | string | ||
amountMin | string | ||
amountMax | string | ||
date | time.Time | ||
endDate | time.Time | ||
extensionDate | time.Time | ||
repeatFreq | BillRepeatFrequency | ||
skip | int32 | ||
active | bool | ||
notes | string | ||
objectGroupId | string | ||
objectGroupTitle | string | ||
id | string | The ID of the bill. | |
optional | *BillsApiUpdateBillOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a BillsApiUpdateBillOpts 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]