Skip to main content
GET
/
api
/
transaction-history
/
{entityType}
/
{entityId}
/
{fieldName}
Get field history
curl --request GET \
  --url https://api.ai2fin.com/api/transaction-history/{entityType}/{entityId}/{fieldName} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "fieldName": "<string>",
  "changes": [
    {
      "id": "<string>",
      "userId": "<string>",
      "entityType": "transaction",
      "entityId": "<string>",
      "fieldName": "<string>",
      "oldValue": "<string>",
      "newValue": "<string>",
      "changeReason": "<string>",
      "changedBy": "user",
      "changeSource": "<string>",
      "createdAt": "2023-11-07T05:31:56Z"
    }
  ],
  "count": 123
}

Authorizations

Authorization
string
header
required

JWT token obtained from /api/auth/login endpoint

Path Parameters

entityType
enum<string>
required
Available options:
transaction,
expense,
bill,
billPattern
entityId
string
required
fieldName
string
required

Response

200 - application/json

Field history retrieved

success
boolean
fieldName
string
changes
object[]
count
integer