Contents
On this page

Cancel Quote - Plugixa POS for WooCommerce

POST /plugixa-pos/v1/quotes/{id}/cancel

Close a quote without selling 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

POST https://your-site.example/wp-json/plugixa-pos/v1/quotes/1/cancel

Path parameters

Name Type Description
id integer The quote’s id

Responses

200 OK. data is the quote.

{
  "success": true,
  "data": {
    "id": 1,
    "number": "QT-2026-00001",
    "status": "cancelled",
    "register_id": 1,
    "customer_id": 88,
    "customer": "Camille Martin",
    "lines": [
      {
        "product_id": 3819,
        "variation_id": 0,
        "qty": 2,
        "name": "Minimal watch",
        "unit": "149.00",
        "discount": 0,
        "options": [],
        "option_rows": [],
        "note": "",
        "custom": null,
        "ref": "quote:1:0"
      }
    ],
    "total": "298.00",
    "tax": "49.67",
    "currency": "EUR",
    "valid_until": "2026-12-19",
    "note": "Corporate gift, 2 units",
    "order_id": 0,
    "created_at": "2026-11-19T14:30:00+00:00"
  }
}

Errors

Status Code When
404 plugixa_pos_not_found No quote with that id.
409 plugixa_pos_quote_closed The quote is already closed.

Plus the errors every endpoint can return.

Examples

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

Quick Links

Share