Contents
On this page

Test Webhook - Plugixa POS for WooCommerce

POST /plugixa-pos/v1/webhooks/{id}/test

Send a test event right away and report how the receiver answered.

Needs a user with the plugixa_pos_manage_settings 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/webhooks/1/test

Path parameters

Name Type Description
id integer The webhook’s id

Responses

200 OK, whether or not the receiver accepted it.

{
  "success": true,
  "data": {
    "ok": true,
    "response_code": 200,
    "error": "",
    "webhook": {
      "id": 1,
      "name": "Accounting sync",
      "url": "https://hooks.example.com/pos",
      "events": ["sale.completed", "sale.refunded"],
      "active": true,
      "failure_count": 0,
      "last_status": 200,
      "last_sent_at": "2026-11-19 16:45:00",
      "signing": true,
      "deliveries": {
        "pending": 0,
        "delivered": 12,
        "failed": 0
      }
    }
  }
}

Errors

Status Code When
404 plugixa_pos_not_found No webhook with that id.
500 plugixa_pos_failed The test could not be queued.

Plus the errors every endpoint can return.

Examples

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

Quick Links

Share