Contents
On this page

List Invoices - Plugixa POS for WooCommerce

GET /plugixa-pos/v1/invoices

Every invoice and credit note, newest first.

Needs a user with the plugixa_pos_view 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/invoices?per_page=2

Query parameters

Field Type Required Description
type string No invoice, credit_note, or empty for both.
search string No Words to look for in the number and the customer.
page integer No Page to return, from 1. Defaults to 1.
per_page integer No Rows per page, 1 to 200. Defaults to 50.

Responses

200 OK.

{
  "success": true,
  "data": [
    {
      "id": 2,
      "type": "invoice",
      "number": "FA-2026-00002",
      "order_id": 4459,
      "refund_id": 0,
      "parent_id": 0,
      "customer": "Atelier Lumière SARL",
      "total": "26.00",
      "tax": "4.33",
      "currency": "EUR",
      "created_at": "2026-11-18T18:36:45+00:00"
    },
    {
      "id": 1,
      "type": "invoice",
      "number": "INV-2026-00001",
      "order_id": 4455,
      "refund_id": 0,
      "parent_id": 0,
      "customer": "Brasserie de l'Étoile SARL Camille Martin",
      "total": "62.84",
      "tax": "10.48",
      "currency": "EUR",
      "created_at": "2026-11-18T18:31:43+00:00"
    }
  ],
  "meta": {
    "total": 2,
    "pages": 1
  }
}
Field Type Meaning
meta.total integer Rows matching the filters
meta.pages integer Pages at this per_page

Errors

Status Code When
400 rest_invalid_param type is not invoice or credit_note.

Plus the errors every endpoint can return.

Examples

curl -s "https://your-site.example/wp-json/plugixa-pos/v1/invoices?per_page=2" \
  -u "$WP_USER:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-pos/v1/invoices?per_page=2');
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/invoices?per_page=2', {
  headers: {
    'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
  },
});
const { data } = await response.json();

Quick Links

Share