Entries

Entries Documentation

Entry [LIST]

Entry [LIST]

Request

Endpoint

GET /api/v2/account_lists/d4830e23-9f45-42f1-86f2-309e95a77eb0/entries
Content-Type: application/vnd.api+json

Body

Parameters

Sorts

entry_date

Type Unknown

Description Sort by entry_date date

Required No

Filters

category_id

Type ID string

Description Filter where entry category_id is in the collection; accepts ids separated by comma

Required No

entry_date

Type date

Description Filter where entry_date is within provided date range

Required No

financial_account_id

Type ID string

Description Filter where entry financial_account_id is in the collection; accepts ids separated by comma

Required No

wildcard_search

Type string

Description Filter where string is in description, code, category name, or category code

Required No

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
200 OK

Body

{
  "data": [
    {
      "id": "c6891e75-02de-4f67-9dac-c7d24947c1b5",
      "type": "financial_account_entry_credits",
      "attributes": {
        "amount": "9.99",
        "code": null,
        "created_at": "2021-11-23T14:38:31Z",
        "currency": "NZD",
        "description": "Exclusive analyzing alliance",
        "entry_date": "2021-11-23",
        "remote_id": "3",
        "type": "FinancialAccount::Entry::Credit",
        "updated_at": "2021-11-23T14:38:31Z",
        "updated_in_db_at": "2021-11-23T14:38:31Z"
      },
      "relationships": {
        "financial_account": {
          "data": {
            "id": "3ae04eae-2a92-4c9b-a26d-bc0458a71b9d",
            "type": "financial_accounts"
          }
        },
        "category": {
          "data": {
            "id": "b30937de-2206-47fb-b6fb-dd6890c05de1",
            "type": "financial_account_entry_categories"
          }
        }
      }
    },
    {
      "id": "1f4c0bb9-510c-4963-946c-b59a1e5aa596",
      "type": "financial_account_entry_credits",
      "attributes": {
        "amount": "9.99",
        "code": null,
        "created_at": "2021-11-23T14:38:31Z",
        "currency": "NZD",
        "description": "Optimized optimizing hierarchy",
        "entry_date": "2021-11-23",
        "remote_id": "4",
        "type": "FinancialAccount::Entry::Credit",
        "updated_at": "2021-11-23T14:38:31Z",
        "updated_in_db_at": "2021-11-23T14:38:31Z"
      },
      "relationships": {
        "financial_account": {
          "data": {
            "id": "3ae04eae-2a92-4c9b-a26d-bc0458a71b9d",
            "type": "financial_accounts"
          }
        },
        "category": {
          "data": {
            "id": "b30937de-2206-47fb-b6fb-dd6890c05de1",
            "type": "financial_account_entry_categories"
          }
        }
      }
    }
  ],
  "meta": {
    "pagination": {
      "page": 1,
      "per_page": 25,
      "total_count": 2,
      "total_pages": 1
    },
    "sort": null,
    "filter": {
    },
    "credits": "19.98",
    "debits": "0.0",
    "difference": "19.98",
    "currency": "USD",
    "closing_balance": 0,
    "opening_balance": 0
  }
}

Fields

data

Type [Financial Account Entry]

Description An array of Entries

Entry [GET]

Entry [GET]

Request

Endpoint

GET /api/v2/account_lists/19bc0a72-7134-477d-8ffd-07ff9bd6a58d/entries/def3d1d2-785f-481c-98d5-3a4c2c1fa271
Content-Type: application/vnd.api+json

Body

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
200 OK

Body

{
  "data": {
    "id": "def3d1d2-785f-481c-98d5-3a4c2c1fa271",
    "type": "financial_account_entry_credits",
    "attributes": {
      "amount": "9.99",
      "code": null,
      "created_at": "2021-11-23T14:38:31Z",
      "currency": "NZD",
      "description": "Enterprise-wide empowering matrices",
      "entry_date": "2021-11-23",
      "remote_id": "1",
      "type": "FinancialAccount::Entry::Credit",
      "updated_at": "2021-11-23T14:38:31Z",
      "updated_in_db_at": "2021-11-23T14:38:31Z"
    },
    "relationships": {
      "financial_account": {
        "data": {
          "id": "52700696-078e-4806-a0c5-db8f9783856c",
          "type": "financial_accounts"
        }
      },
      "category": {
        "data": {
          "id": "004c19c9-c16a-4d3e-bf7a-96635d1ed83f",
          "type": "financial_account_entry_categories"
        }
      }
    }
  }
}

Fields

Attributes

amount

Type number

Description The original amount

code

Type string

Description The entry code

created_at

Type date

Description The timestamp of when this resource was created

currency

Type string

Description The currency of the original amount

description

Type string

Description Additional notes in relation to this entry

entry_date

Type date

Description The date the entry was received

remote_id

Type ID string

Description The remote system id given by the origin system

type

Type string

Description Either FinancialAccount::Entry::Credit or FinancialAccount::Entry::Debit

updated_at

Type date

Description The timestamp of when this resource was last updated

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Relationships

category.data

Type Financial Account Entry Category

Description The category this entry fits into

financial_account.data

Type Financial Account

Description The financial account the entry belongs to

Last updated