Contents
On this page

List Closings - Plugixa POS for WooCommerce

GET /plugixa-pos/v1/fiscal/closings

The register’s period closings, newest first, at most 200. Each closing seals the totals of a day, a month or a fiscal year and the running grand totals.

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/closings?register_id=1

Query parameters

Field Type Required Description
register_id integer Yes The register.

Responses

200 OK.

{
  "success": true,
  "data": [
    {
      "id": 173,
      "period": "day",
      "period_key": "2026-11-18",
      "first_seq": "380",
      "last_seq": "396",
      "totals": {
        "documents": "12",
        "net": "236.31",
        "payments": {
          "cash": "183.31",
          "adyen_terminal": "26.00",
          "deposits": "27.00"
        },
        "refunds": "26.00",
        "sales": "262.31",
        "tax": "39.39"
      },
      "grand_totals": {
        "refunds": "799.80",
        "sales": "11655.71",
        "tax": "1757.60"
      },
      "hash": "5c2d417351623ccbaeddc1eae522fb9b9d2162a7905309412f54bb7d04938ff3",
      "created_at": "2026-11-19 12:11:14"
    }
  ]
}
Field Type Meaning
data[].period string day, month or year
data[].period_key string 2026-11-18, 2026-11 or the fiscal year
data[].first_seq string First journal entry covered (as stored, a string)
data[].last_seq string Last entry covered
data[].totals object The period’s totals
data[].grand_totals object Running totals since the first sale
data[].hash string The closing’s hash

Errors

Status Code When
400 rest_missing_callback_param register_id is missing.

Plus the errors every endpoint can return.

Examples

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

Quick Links

Share