Contents
On this page
Resend My Vouchers - Plugixa PDF Vouchers for WooCommerce
POST /plugixa-pdf-vouchers/v1/resend-mine
The Didn’t receive your voucher? form of the Balance check. It emails again the active vouchers of that address, up to 10: as the recipient, the vouchers already delivered to it (never a scheduled gift ahead of its day); as the buyer, their copy. It never returns data.
Public: no sign-in. The route protects itself instead, as described below. Five requests an hour per visitor, one send per address per hour whoever asks, and a hidden website field that must stay empty.
Request
POST https://your-store.example/wp-json/plugixa-pdf-vouchers/v1/resend-mine
Request body
Content type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
email |
string |
Yes | The address to send to. |
website |
string |
No | Leave it out. A value marks the request as a bot. |
{
"email": "nadia.benali@example.net"
}
Responses
200 OK, whether or not the address has vouchers. No data wrapper.
{
"success": true,
"message": "If we have vouchers for this address, we have just emailed them again. Please check your spam folder too."
}
Errors
| Status | Code | When |
|---|---|---|
400 |
The website field was filled: This request could not be processed. |
|
422 |
Please enter a valid email address. | |
429 |
Too many requests from this visitor. | |
403 |
A CAPTCHA added through the plugixa_pdfv_public_request_captcha filter failed: The anti-spam check did not pass. Please try again. |
Plus the errors every endpoint can return.
Examples
curl -s -X POST "https://your-store.example/wp-json/plugixa-pdf-vouchers/v1/resend-mine" \
-H "Content-Type: application/json" \
-d '{"email":"nadia.benali@example.net"}'
<?php
$ch = curl_init('https://your-store.example/wp-json/plugixa-pdf-vouchers/v1/resend-mine');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
'email' => 'nadia.benali@example.net',
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-store.example/wp-json/plugixa-pdf-vouchers/v1/resend-mine', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({ email: 'nadia.benali@example.net' }),
});
const { data } = await response.json();
Quick Links
Share