Contents
On this page

Read Audit Log - Plugixa POS for WooCommerce

GET /plugixa-pos/v1/audit-log

The technical log: settings changes, verifications, overrides and other sensitive actions, newest first, hash-chained like the journal.

Needs a user with the plugixa_pos_fiscal_audit capability (signed in with an Application Password, or the login cookie with an X-WP-Nonce header). Administrators hold it; other roles only when you grant it.

Request

GET https://your-site.example/wp-json/plugixa-pos/v1/audit-log?per_page=1

Query parameters

Field Type Required Description
page integer No Page to return, from 1. Defaults to 1.
per_page integer No Rows per page, 1 to 200. Defaults to 50.

Responses

200 OK. Rows are returned as stored, so numbers are strings.

{
  "success": true,
  "data": [
    {
      "id": "90",
      "user_id": "1",
      "event": "gift_card_expiry_changed",
      "object_type": "gift_card",
      "object_id": "18",
      "data": {
        "from": "2026-11-18",
        "to": null
      },
      "ip": "::1",
      "created_at": "2026-11-19 13:26:47",
      "seq": "90",
      "prev_hash": "b94ff30a33e65361b0fc81cb28fd09c1e122e1677fb74fdfdffb0566f436c625",
      "hash": "736ba9075563a504f8c0f04d5b90d6ed656640c827d9860b6b72a759ef5b45a1",
      "signature": "4232bfeb57db94fe.MEUCIQCcb9CVgRvYWrbXPOzXYZpcO56NxT6WTVwVZDggkGpxUgIgVFuRdXkk07ltlNBn0isjy5HBMbg0biviOCslUOBYxs0="
    }
  ],
  "meta": {
    "total": 90,
    "pages": 90
  }
}
Field Type Meaning
data[].event string What happened
data[].object_type string What it happened to
data[].data object Details
data[].signature string With Pro French fiscal compliance: the key id and the signature
meta.total integer Rows matching the filters
meta.pages integer Pages at this per_page

Errors

This endpoint has no errors of its own.

Plus the errors every endpoint can return.

Examples

curl -s "https://your-site.example/wp-json/plugixa-pos/v1/audit-log?per_page=1" \
  -u "$WP_USER:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-pos/v1/audit-log?per_page=1');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_USERPWD        => getenv('WP_USER') . ':' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-pos/v1/audit-log?per_page=1', {
  headers: {
    'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
  },
});
const { data } = await response.json();

Quick Links

Share