Audit Log Event

The structure of the event and security event model

CommercePoint-of-SaleRetailRestaurantInventoryLoyaltyPaymentsE-CommerceOmnichannelCanada

Properties

Name Type Description
action string The type of the action performed on the object.
created_at string The timestamp indicating when the event was persisted to the audit log.
data object An object in JSON format representing the new values of the attributes that were changed by the event.
entity_id string The id of the object involved in the event
id string Autogenerated object identifier.
ip_address string The ip address from which the request causing the event originated.
occurred_at string The timestamp indicating when the action causing the event occurred.
old_data object An object in JSON format representing the old values of the attributes that were changed by the event.
type string The type of the object involved in the event. This may be something like "security" for security events or the name of the table the action was performed on, like "vend_customer".
user_agent string User agent of the http client which submitted the request.
user_id string The `id` of the user executing the action registered by this event.
View JSON Schema on GitHub

JSON Schema

lightspeed-audit-log-event-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/lightspeed/main/json-schema/lightspeed-audit-log-event-schema.json",
  "title": "Audit Log Event",
  "description": "The structure of the event and security event model",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lightspeed-audit-api-openapi.yml#/components/schemas/AuditLogEvent",
  "properties": {
    "action": {
      "description": "The type of the action performed on the object.",
      "enum": [
        "insert",
        "update",
        "delete"
      ],
      "type": "string"
    },
    "created_at": {
      "description": "The timestamp indicating when the event was persisted to the audit log.",
      "format": "date-time",
      "type": "string"
    },
    "data": {
      "description": "An object in JSON format representing the new values of the attributes that were changed by the event.",
      "oneOf": [
        {
          "type": "object"
        },
        {
          "items": {
            "type": "object"
          },
          "type": "array"
        }
      ]
    },
    "entity_id": {
      "description": "The id of the object involved in the event",
      "maxLength": 36,
      "type": "string"
    },
    "id": {
      "description": "Autogenerated object identifier.",
      "type": "string"
    },
    "ip_address": {
      "description": "The ip address from which the request causing the event originated.",
      "format": "ipv4",
      "maxLength": 64,
      "type": "string"
    },
    "occurred_at": {
      "description": "The timestamp indicating when the action causing the event occurred.",
      "format": "date-time",
      "type": "string"
    },
    "old_data": {
      "description": "An object in JSON format representing the old values of the attributes that were changed by the event.",
      "type": "object"
    },
    "type": {
      "description": "The type of the object involved in the event. This may be something like \"security\" for security events or the name of the table the action was performed on, like \"vend_customer\".",
      "maxLength": 64,
      "type": "string"
    },
    "user_agent": {
      "description": "User agent of the http client which submitted the request.",
      "maxLength": 500,
      "type": "string"
    },
    "user_id": {
      "description": "The `id` of the user executing the action registered by this event.",
      "maxLength": 36,
      "type": "string"
    }
  },
  "type": "object"
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/lightspeed-audit-log-event"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.