Contents
List Sessions - Plugixa POS for WooCommerce
GET /plugixa-pos/v1/sessions
Cash sessions of all registers, newest first, as the back office lists them.
Needs a user with the plugixa_pos_view_reports 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/sessions?per_page=2
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.
{
"success": true,
"data": [
{
"id": 85,
"register_id": 1,
"status": "open",
"opened_at": "2026-11-16 08:47:00",
"closed_at": null,
"sales_count": 19,
"net_sales": "494.01",
"difference": null
},
{
"id": 84,
"register_id": 3,
"status": "closed",
"opened_at": "2026-11-14 08:34:00",
"closed_at": "2026-11-14 18:10:00",
"sales_count": 7,
"net_sales": "328.30",
"difference": "0.00"
}
],
"meta": {
"total": 85,
"pages": 43
}
}
| Field | Type | Meaning |
|---|---|---|
data[].difference |
string|null |
Counted minus expected, decimal, null while open |
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/sessions?per_page=2" \
-u "$WP_USER:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-pos/v1/sessions?per_page=2');
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/sessions?per_page=2', {
headers: {
'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
},
});
const { data } = await response.json();
Quick Links
Share