accounts

List all piggy banks related to the account.

This endpoint returns a list of all the piggy banks connected to the account.

get/v1/accounts/{id}/piggy-banks

Request

  • Base URL
    https://demo.firefly-iii.org/api
  • URL
    https://demo.firefly-iii.org/api/v1/accounts/{id}/piggy-banks
  • Auth
    • OAuth 2
      Authorization code: https://demo.firefly-iii.org/oauth/authorize
      Token URL: https://demo.firefly-iii.org/oauth/token
    • or HTTP bearer

Path parameters

idstring required
Example:123

The ID of the account.

Query parameters

limitinteger
Example:10

Number of items per page. The default pagination is per 50 items.

pageinteger
Example:1

Page number. The default pagination is per 50 items.

Headers

X-Trace-Idstring uuid
Example:40c71bbb-c676-4f24-83cf-cc725d7d7a00

Unique identifier associated with this request.

Response

A list of piggy banks

Example response

{
  "data": [
    {
      "type": "piggy_banks",
      "id": "2",
      "attributes": {
        "created_at": "2026-02-01T00:00:00+00:00",
        "updated_at": "2026-02-01T00:00:00+00:00",
        "name": "New digital camera",
        "percentage": 12,
        "start_date": "2026-02-01T00:00:00+00:00",
        "target_date": "2026-02-01T00:00:00+00:00",
        "order": 5,
        "active": true,
        "notes": "Some notes",
        "object_group_id": "5",
        "object_group_order": 5,
        "object_group_title": "Example Group",
        "accounts": [
          {
            "account_id": "3",
            "name": "Checking account",
            "current_amount": "123.45",
            "pc_current_amount": "123.45"
          }
        ],
        "object_has_currency_setting": true,
        "currency_id": "5",
        "currency_name": "Euro",
        "currency_code": "EUR",
        "currency_symbol": "$",
        "currency_decimal_places": 2,
        "primary_currency_id": "5",
        "primary_currency_name": "Euro",
        "primary_currency_code": "EUR",
        "primary_currency_symbol": "$",
        "primary_currency_decimal_places": 2,
        "target_amount": "123.45",
        "pc_target_amount": "123.45",
        "current_amount": "123.45",
        "pc_current_amount": "123.45",
        "left_to_save": "700.00",
        "pc_left_to_save": "700.00",
        "save_per_month": "12.45",
        "pc_save_per_month": "12.45"
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/OBJECTS/1"
        },
        "self": "https://demo.firefly-iii.org/api/v1/OBJECTS/1"
      }
    }
  ],
  "meta": {
    "pagination": {
      "total": 3,
      "count": 20,
      "per_page": 100,
      "current_page": 1,
      "total_pages": 1
    }
  },
  "links": {
    "self": "https://demo.firefly-iii.org/api/v1/OBJECT?&page=4",
    "first": "https://demo.firefly-iii.org/api/v1/OBJECT?&page=1",
    "next": "https://demo.firefly-iii.org/api/v1/OBJECT?&page=3",
    "prev": "https://demo.firefly-iii.org/api/v1/OBJECT?&page=2",
    "last": "https://demo.firefly-iii.org/api/v1/OBJECT?&page=12"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.