Contents
Check Serial Number - Plugixa POS for WooCommerce
GET /plugixa-pos/v1/serials/check
Ask whether this unit can be sold here: not sold already, known if the setting requires it, in this store.
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/serials/check?product_id=3819&serial=MW-2026-00418®ister_id=1
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
product_id |
integer |
Yes | The product. |
serial |
string |
Yes | The number, up to 100 characters. |
register_id |
integer |
No | The register, for the store check. |
Responses
200 OK.
{
"success": true,
"data": {
"ok": true,
"message": null,
"known": true
}
}
| Field | Type | Meaning |
|---|---|---|
data.ok |
boolean |
It can be sold |
data.message |
string|null |
Why not, ready to show |
data.known |
boolean |
The number was received beforehand |
Errors
| Status | Code | When |
|---|---|---|
404 |
plugixa_pos_not_found |
No such product. |
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixa-pos/v1/serials/check?product_id=3819&serial=MW-2026-00418®ister_id=1" \
-u "$WP_USER:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-pos/v1/serials/check?product_id=3819&serial=MW-2026-00418®ister_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/serials/check?product_id=3819&serial=MW-2026-00418®ister_id=1', {
headers: {
'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
},
});
const { data } = await response.json();
Quick Links
Share