Skip to main content
GET
/
service
/
general-ledger
/
approval-audit-log
curl -X GET "https://kube.acho.io/service/general-ledger/approval-audit-log?document_type=journal_entry&document_id=JE-2024-001" \
  -H "Authorization: jwt YOUR_TOKEN"
{
  "audit_entries": [
    {
      "audit_id": "audit-001",
      "document_type": "journal_entry",
      "document_id": "JE-2024-001",
      "action": "Submit for Approval",
      "performed_by": "user-123",
      "performed_by_name": "John Smith",
      "performed_at": "2024-01-15T10:00:00Z",
      "approval_level": null,
      "comments": null,
      "previous_status": "Draft",
      "new_status": "Pending Approval"
    },
    {
      "audit_id": "audit-002",
      "document_type": "journal_entry",
      "document_id": "JE-2024-001",
      "action": "Approve",
      "performed_by": "user-456",
      "performed_by_name": "Jane Doe",
      "performed_at": "2024-01-15T14:30:00Z",
      "approval_level": 1,
      "comments": "Approved - amounts verified",
      "previous_status": "Pending Approval",
      "new_status": "Approved"
    },
    {
      "audit_id": "audit-003",
      "document_type": "journal_entry",
      "document_id": "JE-2024-001",
      "action": "Post to GL",
      "performed_by": "user-789",
      "performed_by_name": "Bob Wilson",
      "performed_at": "2024-01-16T09:00:00Z",
      "approval_level": null,
      "comments": null,
      "previous_status": "Approved",
      "new_status": "Posted"
    }
  ],
  "total": 3
}

Request

Retrieve audit log entries with various filter options.

Query Parameters

document_type
string
Filter by document type: journal_entry, bill, invoice, bill_payment, invoice_payment, credit_memo
document_id
string
Filter by specific document ID
performed_by
string
Filter by user who performed the action
action
string
Filter by action: Submit for Approval, Approve, Reject, Request Change, Place on Hold, Remove from Hold, Post to GL, Add Comment
start_date
string
Filter entries on or after date (YYYY-MM-DD)
end_date
string
Filter entries on or before date (YYYY-MM-DD)

Get Audit Log for Specific Document

curl -X GET "https://kube.acho.io/service/general-ledger/approval-audit-log?document_type=journal_entry&document_id=JE-2024-001" \
  -H "Authorization: jwt YOUR_TOKEN"
{
  "audit_entries": [
    {
      "audit_id": "audit-001",
      "document_type": "journal_entry",
      "document_id": "JE-2024-001",
      "action": "Submit for Approval",
      "performed_by": "user-123",
      "performed_by_name": "John Smith",
      "performed_at": "2024-01-15T10:00:00Z",
      "approval_level": null,
      "comments": null,
      "previous_status": "Draft",
      "new_status": "Pending Approval"
    },
    {
      "audit_id": "audit-002",
      "document_type": "journal_entry",
      "document_id": "JE-2024-001",
      "action": "Approve",
      "performed_by": "user-456",
      "performed_by_name": "Jane Doe",
      "performed_at": "2024-01-15T14:30:00Z",
      "approval_level": 1,
      "comments": "Approved - amounts verified",
      "previous_status": "Pending Approval",
      "new_status": "Approved"
    },
    {
      "audit_id": "audit-003",
      "document_type": "journal_entry",
      "document_id": "JE-2024-001",
      "action": "Post to GL",
      "performed_by": "user-789",
      "performed_by_name": "Bob Wilson",
      "performed_at": "2024-01-16T09:00:00Z",
      "approval_level": null,
      "comments": null,
      "previous_status": "Approved",
      "new_status": "Posted"
    }
  ],
  "total": 3
}
The audit log is immutable and provides a complete history of all workflow actions for compliance and audit purposes.