Contents
On this page

Download Quote PDF - Plugixa POS for WooCommerce

GET /plugixa-pos/v1/quotes/{id}/pdf

The quote as an A4 PDF.

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/quotes/1/pdf

Path parameters

Name Type Description
id integer The quote’s id

Responses

200 OK. The body is the PDF.

Not JSON: Content-Type: application/pdf, shown inline, file name from the quote number (QT-2026-00001.pdf).

Errors

Status Code When
404 plugixa_pos_not_found No quote with that id.

Plus the errors every endpoint can return.

Examples

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

Quick Links

Share