Contents
On this page

List Fiscal Archives - Plugixa POS for WooCommerce

GET /plugixa-pos/v1/fiscal/archives

Every archive made, newest first.

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/fiscal/archives

Responses

200 OK.

{
  "success": true,
  "data": [
    {
      "id": 3,
      "register_id": 1,
      "period": "month",
      "period_key": "2026-10",
      "file": "R1-month-2026-10-eTKgcJaj.zip",
      "size": 111024,
      "sha256": "352bc110403d218b1da1e1d07c6bba82688da700cc50d5d837b127a0df97b917",
      "manifest_sha256": "7b1aeea96a8ba63a9186e417614c929326f22ae10a01b8c31b2ccddbd51f0bd1",
      "journal_rows": 272,
      "created_at": "2026-11-18 12:42:45",
      "download_url": "https://your-site.example/wp-admin/admin-post.php?action=plugixa_pos_fiscal_archive&id=3&_wpnonce=adc2794d57"
    }
  ]
}
Field Type Meaning
data[].sha256 string Hash of the ZIP file
data[].manifest_sha256 string Hash of the manifest inside it
data[].journal_rows integer Journal entries in it
data[].download_url string Downloads the ZIP from wp-admin; the link carries a nonce for the signed-in user

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/fiscal/archives" \
  -u "$WP_USER:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-pos/v1/fiscal/archives');
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/fiscal/archives', {
  headers: {
    'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
  },
});
const { data } = await response.json();

Quick Links

Share