Contents
On this page
Update Serial Number - Plugixa POS for WooCommerce
PUT /plugixa-pos/v1/serials/{id}
Mark a unit available or returned, or change its note. POST and PATCH work the same way.
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
PUT https://your-site.example/wp-json/plugixa-pos/v1/serials/9
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The serial number’s id |
Request body
Content type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
status |
string |
No | available or returned. |
note |
string |
No | Up to 255 characters. |
{
"note": "Display model"
}
Responses
200 OK. data is the serial number.
{
"success": true,
"data": {
"id": 9,
"serial": "MW-2026-00419",
"status": "available",
"product": {
"id": 3819,
"name": "Minimal watch",
"sku": "ACC-WATCH"
},
"outlet_id": 1,
"order": null,
"customer": null,
"sold_at": null,
"note": "Display model",
"updated_at": "2026-11-14 12:45:03"
}
}
Errors
| Status | Code | When |
|---|---|---|
404 |
plugixa_pos_not_found |
No serial number with that id. |
409 |
plugixa_pos_serial_sold |
Changing the status of a sold unit: use a return or a refund. |
Plus the errors every endpoint can return.
Examples
curl -s -X PUT "https://your-site.example/wp-json/plugixa-pos/v1/serials/9" \
-u "$WP_USER:$WP_APP_PASSWORD" \
-H "Content-Type: application/json" \
-d '{"note":"Display model"}'
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-pos/v1/serials/9');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERPWD => getenv('WP_USER') . ':' . getenv('WP_APP_PASSWORD'),
CURLOPT_HTTPHEADER => ['Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
'note' => 'Display model',
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-pos/v1/serials/9', {
method: 'PUT',
headers: {
'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ note: 'Display model' }),
});
const { data } = await response.json();
Quick Links
Share