Contents
On this page

Update Register - Plugixa POS for WooCommerce

PUT /plugixa-pos/v1/registers/{id}

Rename a register or archive it. An archived register cannot sell or be used. 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/registers/2

Path parameters

Name Type Description
id integer The register’s id

Request body

Content type: application/json

Field Type Required Description
name string No 1 to 190 characters.
status string No active or archived.
{
  "name": "Gift and wrap corner"
}

Responses

200 OK. data is the register.

{
  "success": true,
  "data": {
    "id": 2,
    "outlet_id": 1,
    "code": "R2",
    "name": "Gift and wrap corner",
    "settings": [],
    "status": "active",
    "created_at": "2026-10-08 08:00:00",
    "updated_at": "2026-11-19 15:31:02"
  }
}

Errors

Status Code When
404 plugixa_pos_not_found No register with that id.
400 rest_invalid_param status is not active or archived.

Plus the errors every endpoint can return.

Examples

curl -s -X PUT "https://your-site.example/wp-json/plugixa-pos/v1/registers/2" \
  -u "$WP_USER:$WP_APP_PASSWORD" \
  -H "Content-Type: application/json" \
  -d '{"name":"Gift and wrap corner"}'
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-pos/v1/registers/2');
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([
        'name' => 'Gift and wrap corner',
    ]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-pos/v1/registers/2', {
  method: 'PUT',
  headers: {
    'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ name: 'Gift and wrap corner' }),
});
const { data } = await response.json();

Quick Links

Share