Contents
On this page

List Activity - Plugixa PDF Vouchers for WooCommerce

GET /plugixa-pdf-vouchers/v1/audit

Who changed what, newest first, as in the Activity log. Kept for 365 days.

Needs a user with the plugixa_pdfv_manage_settings capability (signed in with an Application Password, or the login cookie with an X-WP-Nonce header). Administrators and shop managers get it when the plugin is activated; see Staff access.

Note. Pro only: on the free plugin this route answers 404 rest_no_route.

Request

GET https://your-store.example/wp-json/plugixa-pdf-vouchers/v1/audit?action=vouchers.redeem&per_page=1

Query parameters

Field Type Required Description
user_id integer No Only this user’s actions.
action string No Only this action, for example vouchers.redeem. meta.actions lists those in the log.
search string No Words in the user name, the route or the details, up to 100 characters.
page integer No From 1. Defaults to 1.
per_page integer No 1 to 100. Defaults to 25.

Responses

200 OK.

{
  "success": true,
  "data": [
    {
      "id": 52,
      "user_id": 7,
      "user_name": "Emma Laurent",
      "action": "vouchers.redeem",
      "method": "POST",
      "route": "/vouchers/26/redeem",
      "object_id": 26,
      "summary": {
        "amount": 12.5,
        "location": "Maison Willow, tea room"
      },
      "created_at": "2026-11-20 10:31:05"
    }
  ],
  "meta": {
    "total": 14,
    "actions": ["bulk.generate", "settings.update", "templates.update", "vouchers.create", "vouchers.redeem"]
  }
}
Field Type Meaning
data[].user_name string The WordPress display name at the time
data[].action string What was done, resource.action
data[].method string The HTTP method
data[].route string The route called
data[].object_id integer The record, 0 when none
data[].summary object What was sent. Secrets are blanked and an imported CSV is recorded as its number of lines
data[].created_at string UTC
meta.total integer Rows matching
meta.actions string[] Every action in the log

No IP address is stored.

Errors

Status Code When
401 / 403 plugixa_pdfv_forbidden The caller lacks the capability.
400 rest_invalid_param per_page above 100, or action not in the allowed form.

Plus the errors every endpoint can return.

Examples

curl -s "https://your-store.example/wp-json/plugixa-pdf-vouchers/v1/audit?action=vouchers.redeem&per_page=1" \
  -u "$WP_USER:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-store.example/wp-json/plugixa-pdf-vouchers/v1/audit?action=vouchers.redeem&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-store.example/wp-json/plugixa-pdf-vouchers/v1/audit?action=vouchers.redeem&per_page=1', {
  headers: {
    'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
  },
});
const { data } = await response.json();

Quick Links

Share