Contents
On this page

Retry Delivery - Plugixa POS for WooCommerce

POST /plugixa-pos/v1/webhooks/deliveries/{id}/retry

Send one delivery again, in the background.

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/deliveries/31/retry

Path parameters

Name Type Description
id integer The delivery’s id

Responses

200 OK.

{
  "success": true,
  "data": {
    "queued": true
  }
}

Errors

Status Code When
409 plugixa_pos_not_found The delivery was already delivered or no longer exists (a 409 despite the code’s name).

Plus the errors every endpoint can return.

Examples

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

Quick Links

Share