Contents
List Sales - Plugixa POS for WooCommerce
GET /plugixa-pos/v1/orders
Register sales, newest first, as the register’s sales history shows them.
Needs a user with the plugixa_pos_sell 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/orders?register_id=1&per_page=2
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
register_id |
integer |
No | Only this register. |
session_id |
integer |
No | Only this cash session. |
search |
string |
No | An order number or a ticket number (digits only; other text is ignored). |
page |
integer |
No | Page to return, from 1. Defaults to 1. |
per_page |
integer |
No | Rows per page, 1 to 100. Defaults to 30. |
Responses
200 OK. data is one page of sales.
{
"success": true,
"data": [
{
"id": 4463,
"number": "4463",
"ticket": 318,
"date": "2026-11-19T14:01:52+01:00",
"total": "21.60",
"refunded": "0.00",
"status": "completed",
"customer": "",
"payment": "Cash USD (30.00 USD at 0.92)"
},
{
"id": 4460,
"number": "4460",
"ticket": 317,
"date": "2026-11-18T21:00:35+01:00",
"total": "27.00",
"refunded": "0.00",
"status": "completed",
"customer": "Camille Martin",
"payment": "Cash"
}
],
"meta": {
"total": 565,
"pages": 283
}
}
| Field | Type | Meaning |
|---|---|---|
data[].id |
integer |
WooCommerce order id |
data[].number |
string |
Order number |
data[].ticket |
integer |
Ticket number |
data[].date |
string |
ISO 8601, site time zone |
data[].total |
string |
Total |
data[].refunded |
string |
Refunded so far |
data[].status |
string |
WooCommerce order status |
data[].customer |
string |
Billing name, empty for walk-in |
data[].payment |
string |
Payment method title |
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/orders?register_id=1&per_page=2" \
-u "$WP_USER:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-pos/v1/orders?register_id=1&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/orders?register_id=1&per_page=2', {
headers: {
'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
},
});
const { data } = await response.json();
Quick Links
Share