Contents
On this page

Look Up Barcode - Plugixa POS for WooCommerce

GET /plugixa-pos/v1/lookup

Find the product or variation that has this barcode or SKU, as the register does when something is scanned.

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. When you pass a register_id, the user must also be allowed to use that register (register access).

Request

GET https://your-site.example/wp-json/plugixa-pos/v1/lookup?code=3760123450478&register_id=1

Query parameters

Field Type Required Description
code string Yes The scanned barcode or the SKU.
register_id integer No Price and stock as this register’s store sees them (Pro multi-store).

Responses

200 OK. data is the product, in the shape of List Products.

{
  "success": true,
  "data": {
    "id": 3801,
    "name": "Canvas tote - Natural",
    "sku": "ACC-TOTE-NAT",
    "barcode": "3760123450478",
    "price": "25",
    "regular_price": "25",
    "sale_price": "",
    "tax_status": "taxable",
    "tax_class": "",
    "manage_stock": true,
    "stock_quantity": 21,
    "stock_status": "instock",
    "backorders": "no",
    "image": "https://your-site.example/wp-content/uploads/2026/11/acc-tote-7-300x300.jpg",
    "description": "",
    "parent_id": 3800,
    "attributes": {
      "pa_color": "natural"
    }
  }
}

Errors

Status Code When
404 plugixa_pos_not_found No product has this barcode or SKU.
403 plugixa_pos_register_forbidden The register is missing or archived, or the user may not use it.

Plus the errors every endpoint can return.

Examples

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

Quick Links

Share