Skip to main content
GET
/
api
/
transaction-history
/
{entityType}
/
{entityId}
Get entity history
curl --request GET \
  --url https://api.ai2fin.com/api/transaction-history/{entityType}/{entityId} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "history": [
    {
      "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"
    }
  ]
}

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

Response

History retrieved

success
boolean
history
object[]