Contents
On this page

Create Store - Plugixa POS for WooCommerce

POST /plugixa-pos/v1/outlets

Add a store. It starts active and without registers: add them with Create Register.

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

POST https://your-site.example/wp-json/plugixa-pos/v1/outlets

Request body

Content type: application/json

Field Type Required Description
name string Yes 1 to 190 characters.
address object No address_1, address_2, city, postcode, country, state.
{
  "name": "Maison Plugixa Bordeaux",
  "address": {
    "address_1": "3 rue Sainte-Catherine",
    "city": "Bordeaux",
    "postcode": "33000",
    "country": "FR"
  }
}

Responses

201 Created. data is the store, as in Get Store.

{
  "success": true,
  "data": {
    "id": 3,
    "name": "Maison Plugixa Bordeaux",
    "address": {
      "address_1": "3 rue Sainte-Catherine",
      "city": "Bordeaux",
      "postcode": "33000",
      "country": "FR"
    },
    "phone": "",
    "email": "",
    "tax_id": "",
    "settings": [],
    "status": "active",
    "created_at": "2026-11-19 15:50:00",
    "updated_at": "2026-11-19 15:50:00"
  }
}

Errors

Status Code When
400 rest_missing_callback_param name is missing.

Plus the errors every endpoint can return.

Examples

curl -s -X POST "https://your-site.example/wp-json/plugixa-pos/v1/outlets" \
  -u "$WP_USER:$WP_APP_PASSWORD" \
  -H "Content-Type: application/json" \
  -d '{"name":"Maison Plugixa Bordeaux","address":{"address_1":"3 rue Sainte-Catherine","city":"Bordeaux","postcode":"33000","country":"FR"}}'
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-pos/v1/outlets');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST  => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_USERPWD        => getenv('WP_USER') . ':' . getenv('WP_APP_PASSWORD'),
    CURLOPT_HTTPHEADER     => ['Content-Type: application/json'],
    CURLOPT_POSTFIELDS     => json_encode([
        'name'    => 'Maison Plugixa Bordeaux',
        'address' => [
            'address_1' => '3 rue Sainte-Catherine',
            'city'      => 'Bordeaux',
            'postcode'  => '33000',
            'country'   => 'FR',
        ],
    ]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-pos/v1/outlets', {
  method: 'POST',
  headers: {
    'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ name: 'Maison Plugixa Bordeaux', address: { address_1: '3 rue Sainte-Catherine', city: 'Bordeaux', postcode: '33000', country: 'FR' } }),
});
const { data } = await response.json();

Quick Links

Share