Contents
Save Business Identity - Plugixa POS for WooCommerce
PUT /plugixa-pos/v1/fiscal/france/identity
Save your company details. The change is written to the audit log. 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/fiscal/france/identity
Request body
Content type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
company |
string |
No | Company name. |
legal_form |
string |
No | Legal form, such as SAS. |
siren |
string |
No | SIREN or SIRET. |
address |
string |
No | Street address. |
city |
string |
No | Postcode and city. |
{
"company": "Maison Plugixa",
"legal_form": "SAS",
"siren": "123456789",
"address": "12 rue des Archives",
"city": "75004 Paris"
}
Responses
200 OK.
{
"success": true,
"data": {
"identity": {
"company": "Maison Plugixa",
"legal_form": "SAS",
"siren": "123456789",
"address": "12 rue des Archives",
"city": "75004 Paris"
},
"identity_ok": true
}
}
Errors
This endpoint has no errors of its own.
Plus the errors every endpoint can return.
Examples
curl -s -X PUT "https://your-site.example/wp-json/plugixa-pos/v1/fiscal/france/identity" \
-u "$WP_USER:$WP_APP_PASSWORD" \
-H "Content-Type: application/json" \
-d '{"company":"Maison Plugixa","legal_form":"SAS","siren":"123456789","address":"12 rue des Archives","city":"75004 Paris"}'
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-pos/v1/fiscal/france/identity');
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([
'company' => 'Maison Plugixa',
'legal_form' => 'SAS',
'siren' => '123456789',
'address' => '12 rue des Archives',
'city' => '75004 Paris',
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-pos/v1/fiscal/france/identity', {
method: 'PUT',
headers: {
'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ company: 'Maison Plugixa', legal_form: 'SAS', siren: '123456789', address: '12 rue des Archives', city: '75004 Paris' }),
});
const { data } = await response.json();
Quick Links
Share