Invoice Audit Trail API
Invoice APIs
Invoice Audit Trail API
Retrieve audit trail information for a specific invoice by its identifier
Invoice Audit Trail API
Documentation Index
Fetch the complete documentation index at: https://docs.pazy.io/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
All requests require an API key in the request headers. Headers:Request
Content-Type:application/json
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The unique identifier of the invoice to retrieve |
Code Examples
Success Response
HTTP Status:200 OK
Response Fields:
| Field | Type | Description |
|---|---|---|
ok | boolean | Indicates whether the request was successful |
data | object | Contains the invoice audit trail response data |
data.auditTrail | array | List of audit trail associated with the invoice |
data.auditTrail[].dateCreated | string | The date when the audit trail entry was created (ISO 8601 format) |
data.auditTrail[].actionType | string | The type of the audit. It is one of five values: TRANSITION, REPAIR, DRAFTED, SYNCED, EDIT, PAYMENT, ATTACHMENT, OVERRIDES, MIGRATED, REFUND, ACKNOWLEDGEMENT, PAYMENT_SYNCED, FLAG_RESOLVED |
data.auditTrail[].user | object | Information about the user who made the comment |
data.auditTrail[].user.id | string | Unique identifier for the user |
data.auditTrail[].user.name | string | Name of the user |
data.auditTrail[].details | object | Details about the audit trail entry |
data.auditTrail[].details.change | object | Give the state of old and new state |
data.auditTrail[].details.change.old | object | Give the old state |
data.auditTrail[].details.change.new | object | Give the new state |
data.auditTrail[].details.actionBy | string | Give who performed the action: USER, PLATFORM |
data.context | object | Additional context for the audit trail |
data.context.count | number | The total number of audit trail |
Response Example
Error Responses
Missing Invoice ID
HTTP Status:400 Bad Request
Invoice Not Found
HTTP Status:404 Not Found
Access Denied
HTTP Status:403 Forbidden
Authentication Errors
HTTP Status:401 Unauthorized
Permission Errors
HTTP Status:403 Forbidden
Best Practices
Access Control
- Only invoices you created or where you are the vendor owner are accessible (unless you have admin or auditor role)
- Use the invoice
idreturned from the invoice creation endpoint to retrieve audit trail