Contents
On this page
Forget Wallet Keys - Plugixa PDF Vouchers for WooCommerce
DELETE /plugixa-pdf-vouchers/v1/wallet/settings/{part}
Delete a wallet’s stored settings, like Forget in the settings. apple and wwdr both clear everything stored for Apple Wallet: both certificates and the pass type, team and name. google clears everything stored for Google Wallet, the issuer id included. The pass colour stays.
Needs a user with the plugixa_pdfv_manage_settings capability (signed in with an Application Password, or the login cookie with an X-WP-Nonce header). Administrators and shop managers get it when the plugin is activated; see Staff access.
Note. Pro only: on the free plugin this route answers
404rest_no_route.
Request
DELETE https://your-store.example/wp-json/plugixa-pdf-vouchers/v1/wallet/settings/google
Path parameters
| Name | Type | Description |
|---|---|---|
part |
string |
apple, wwdr or google |
Responses
200 OK. data is the saved view, as in Get Wallet Settings.
Errors
| Status | Code | When |
|---|---|---|
401 / 403 |
plugixa_pdfv_forbidden |
The caller lacks the capability. |
Plus the errors every endpoint can return.
Examples
curl -s -X DELETE "https://your-store.example/wp-json/plugixa-pdf-vouchers/v1/wallet/settings/google" \
-u "$WP_USER:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-store.example/wp-json/plugixa-pdf-vouchers/v1/wallet/settings/google');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'DELETE',
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-store.example/wp-json/plugixa-pdf-vouchers/v1/wallet/settings/google', {
method: 'DELETE',
headers: {
'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
},
});
const { data } = await response.json();
Quick Links
Share