Contents
On this page

List Sales Needing Attention - Plugixa POS for WooCommerce

GET /plugixa-pos/v1/attention

Sales recorded offline and synced later that need checking, for example because the price charged differs from the current price. Up to 200, among the latest 2000 register sales.

Needs a user with the plugixa_pos_manage_sessions 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. Only sales of registers the user may use are listed, all of them for plugixa_pos_manage_settings holders.

Request

GET https://your-site.example/wp-json/plugixa-pos/v1/attention

Responses

200 OK.

{
  "success": true,
  "data": [
    {
      "id": 4466,
      "number": "4466",
      "ticket": 324,
      "date": "2026-11-19T15:55:00+01:00",
      "total": "25.00",
      "edit_url": "https://your-site.example/wp-admin/admin.php?page=wc-orders&action=edit&id=4466",
      "reasons": [
        {
          "reason": "price",
          "product_id": 3801,
          "current": "27.00",
          "charged": "25.00",
          "product": "Canvas tote - Natural"
        }
      ]
    }
  ]
}
Field Type Meaning
data[].reasons object[] What to check: reason (such as price), the product, and the values involved

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

Quick Links

Share