Contents
Get Receipt - Plugixa POS for WooCommerce
GET /plugixa-pos/v1/orders/{id}/receipt
The receipt data of a register sale, to print it again or show it.
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.
Request
GET https://your-site.example/wp-json/plugixa-pos/v1/orders/4464/receipt
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The order’s id |
Responses
200 OK. data is the receipt.
{
"success": true,
"data": {
"order_id": 4464,
"order_number": "4464",
"ticket": 319,
"date": "November 19, 2026 3:12 pm",
"store": {
"name": "Maison Plugixa Marais",
"address": {
"address_1": "12 rue des Archives",
"city": "Paris",
"postcode": "75004",
"country": "FR",
"address_2": ""
},
"phone": "",
"tax_id": "FR 40 123 456 789"
},
"register": "R1",
"cashier": "Emma Laurent",
"customer": "Camille Martin",
"currency": "EUR",
"lines": [
{
"name": "Canvas tote - Natural",
"options": [],
"qty": 1,
"subtotal": "25.00",
"total": "25.00"
},
{
"name": "Greeting card",
"options": [],
"qty": 1,
"subtotal": "4.00",
"total": "4.00"
}
],
"discount": "0.00",
"coupons": [],
"taxes": [
{
"label": "TVA",
"rate": "20%",
"amount": "4.83"
}
],
"tax_total": "4.83",
"total": "29.00",
"payments": [
{
"method": "cash",
"label": "Cash",
"amount": "30.00"
}
],
"tendered": "30.00",
"change": "1.00",
"fiscal": {
"hash_short": "EC60-5CEF",
"software": "Plugixa POS 1.0.0"
},
"header": "Maison Plugixa\n12 rue des Archives, 75004 Paris",
"footer": "Exchanges within 30 days with this receipt.\nThank you and see you soon!",
"refunded": "0.00",
"status": "completed"
}
}
| Field | Type | Meaning |
|---|---|---|
data.order_id |
integer |
The WooCommerce order id |
data.order_number |
string |
The order number |
data.ticket |
integer |
The register’s ticket number |
data.date |
string |
Sale date in the site’s date and time format |
data.store |
object |
Store name, address, phone, tax_id |
data.register |
string |
Register code |
data.cashier |
string |
Who sold |
data.customer |
string |
Customer name, empty for a walk-in sale |
data.lines |
object[] |
name, options, qty, subtotal and total per line |
data.discount |
string |
Discount on the sale |
data.coupons |
object[] |
Coupons used |
data.taxes |
object[] |
label, rate, amount per tax rate |
data.tax_total |
string |
Tax |
data.total |
string |
Total |
data.payments |
object[] |
method, label, amount per payment |
data.tendered |
string |
Money handed over |
data.change |
string |
Change given |
data.fiscal |
object |
hash_short (short form of the fiscal journal hash) and software |
data.header |
string |
Receipt header from the settings |
data.footer |
string |
Receipt footer from the settings |
data.refunded |
string |
Amount refunded so far |
data.status |
string |
WooCommerce order status |
Errors
| Status | Code | When |
|---|---|---|
404 |
plugixa_pos_not_found |
The order does not exist or was not made at a register (This is not a register order.). |
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixa-pos/v1/orders/4464/receipt" \
-u "$WP_USER:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-pos/v1/orders/4464/receipt');
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/4464/receipt', {
headers: {
'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
},
});
const { data } = await response.json();
Quick Links
Share