Contents
On this page

Trace Lot - Plugixa POS for WooCommerce

GET /plugixa-pos/v1/lots/recall

Every sale that took units of this lot and is not fully returned, with the customer’s contact details.

Needs a user with the plugixa_pos_manage_settings 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/lots/recall?lot=L2611-A

Query parameters

Field Type Required Description
lot string Yes The lot number.

Responses

200 OK.

{
  "success": true,
  "data": [
    {
      "order": {
        "id": 4470,
        "number": "4470",
        "url": "https://your-site.example/wp-admin/admin.php?page=wc-orders&action=edit&id=4470",
        "date": "2026-11-19 16:40"
      },
      "product": "Ceremonial matcha 30 g",
      "qty": 1,
      "outlet_id": 1,
      "customer": {
        "name": "Camille Martin",
        "email": "camille.martin@example.com",
        "phone": "06 10 20 31 40"
      }
    }
  ],
  "meta": {
    "units": 1,
    "customers": 1
  }
}
Field Type Meaning
meta.units integer Units sold
meta.customers integer Customers with an email

Errors

Status Code When
400 rest_missing_callback_param lot is missing.

Plus the errors every endpoint can return.

Examples

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

Quick Links

Share