Contents
On this page
Update Store - Plugixa POS for WooCommerce
PUT /plugixa-pos/v1/outlets/{id}
Change a store’s details. Fields you leave out keep their value; the address fields you send are merged into the stored address. 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/outlets/1
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The store’s id |
Request body
Content type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
name |
string |
No | 1 to 190 characters. |
phone |
string |
No | Up to 50 characters. |
email |
string |
No | A valid email. |
tax_id |
string |
No | Up to 100 characters. |
address |
object |
No | address_1, address_2, city, postcode, country, state. |
{
"phone": "01 42 72 00 00",
"tax_id": "FR 40 123 456 789"
}
Responses
200 OK. data is the store, fields as in Get Store.
{
"success": true,
"data": {
"id": 1,
"name": "Maison Plugixa Marais",
"address": {
"address_1": "12 rue des Archives",
"city": "Paris",
"postcode": "75004",
"country": "FR",
"address_2": ""
},
"phone": "01 42 72 00 00",
"email": "marais@your-site.example",
"tax_id": "FR 40 123 456 789",
"settings": [],
"status": "active",
"created_at": "2026-11-16 15:52:08",
"updated_at": "2026-11-16 15:52:08"
}
}
Errors
| Status | Code | When |
|---|---|---|
404 |
plugixa_pos_not_found |
No store with that id. |
400 |
rest_invalid_param |
A field is too long, or email is not an email. |
Plus the errors every endpoint can return.
Examples
curl -s -X PUT "https://your-site.example/wp-json/plugixa-pos/v1/outlets/1" \
-u "$WP_USER:$WP_APP_PASSWORD" \
-H "Content-Type: application/json" \
-d '{"phone":"01 42 72 00 00","tax_id":"FR 40 123 456 789"}'
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-pos/v1/outlets/1');
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([
'phone' => '01 42 72 00 00',
'tax_id' => 'FR 40 123 456 789',
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-pos/v1/outlets/1', {
method: 'PUT',
headers: {
'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ phone: '01 42 72 00 00', tax_id: 'FR 40 123 456 789' }),
});
const { data } = await response.json();
Quick Links
Share