Contents
On this page

List Sale Invoices - Plugixa POS for WooCommerce

GET /plugixa-pos/v1/orders/{id}/invoices

The invoice of a sale and its credit notes, if any.

Needs a user with the plugixa_pos_sell 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. The user must be allowed to use the register of the sale (register access).

Request

GET https://your-site.example/wp-json/plugixa-pos/v1/orders/4459/invoices

Path parameters

Name Type Description
id integer The order’s id

Responses

200 OK. data is a list, fields as in Issue Invoice.

{
  "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"
    }
  ]
}

Errors

Status Code When
404 plugixa_pos_not_found The sale does not exist, is not a register sale, or its register is not one the user may use.

Plus the errors every endpoint can return.

Examples

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

Quick Links

Share