Contents
On this page

List Receipt Templates - Plugixa POS for WooCommerce

GET /plugixa-pos/v1/receipt-templates

Every template and the stores using it.

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

GET https://your-site.example/wp-json/plugixa-pos/v1/receipt-templates

Responses

200 OK.

{
  "success": true,
  "data": [
    {
      "id": 1,
      "name": "Marais receipt",
      "paper": 80,
      "blocks": [
        {
          "id": "logo-1",
          "type": "logo",
          "url": "https://your-site.example/wp-content/uploads/2026/11/maison-plugixa-logo.png",
          "width": 50
        },
        {
          "id": "store-2",
          "type": "store"
        },
        {
          "id": "meta-3",
          "type": "meta"
        },
        {
          "id": "lines-4",
          "type": "lines"
        },
        {
          "id": "totals-5",
          "type": "totals"
        },
        {
          "id": "payments-6",
          "type": "payments"
        },
        {
          "id": "text-7",
          "type": "text",
          "text": "Follow us @maisonplugixa",
          "align": "center",
          "bold": true,
          "size": "normal"
        },
        {
          "id": "barcode-8",
          "type": "barcode",
          "source": "ticket",
          "kind": "code128"
        },
        {
          "id": "fiscal-9",
          "type": "fiscal"
        }
      ],
      "updated_at": "2026-11-19 15:45:00",
      "outlets": [1]
    }
  ]
}
Field Type Meaning
data[].outlets integer[] Stores using it

Errors

This endpoint has no errors of its own.

Plus the errors every endpoint can return.

Examples

curl -s "https://your-site.example/wp-json/plugixa-pos/v1/receipt-templates" \
  -u "$WP_USER:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-pos/v1/receipt-templates');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_USERPWD        => getenv('WP_USER') . ':' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-pos/v1/receipt-templates', {
  headers: {
    'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
  },
});
const { data } = await response.json();

Quick Links

Share