Skip to content
Docs
Operation

Get inventory audit log

GET/inventory/{id}/audit-log
Get the audit log for an inventory bucket

Path parameters

idstringRequired
Inventory ID

Query parameters

accountIdstringRequired
Account ID

Returns

Audit log retrieved successfully

Errors

400
Bad Request - Invalid input
401
Unauthorized - Authentication required
403
Forbidden - Insufficient permissions
404
Not Found - Resource not found
500
Internal Server Error

Every error names its code and links to it. All error codes

curl -X GET "https://api.ticketlayer.com/v1/inventory/inv_abc123/audit-log" \  -H "Authorization: Bearer tlak_..." \  -H "X-Ticketlayer-Org: your-org-slug"
Response 200
{
  "auditLog": [
    {
      "id": 1,
      "inventoryId": "inv_abc123",
      "action": "reserve",
      "changes": {
        "quantity": 2,
        "type": "temporary"
      },
      "actorType": "user",
      "actorId": "usr_abc123",
      "referenceType": "order",
      "referenceId": "ord_def456",
      "createdAt": "2024-12-28T10:30:00Z"
    }
  ]
}

Try it in test mode

Path parameters
Inventory ID
Query parameters
Account ID