Contents
On this page
Open Google Wallet Card - Plugixa PDF Vouchers for WooCommerce
GET /plugixa-pdf-vouchers/v1/wallet/google/{id}
The Save to Google Wallet link. It redirects to Google’s save page. From then on, balance changes are pushed to the card in the background.
Public: no sign-in. The link must carry the expires and sig values the plugin signed for this voucher, so it cannot be guessed. See Signed links.
Note. Pro only: on the free plugin this route answers
404rest_no_route.
Request
GET https://your-store.example/wp-json/plugixa-pdf-vouchers/v1/wallet/google/26?expires=1795179133&sig=3526abd1...
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The voucher’s id |
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
expires |
integer |
Yes | The link’s end, Unix time. |
sig |
string |
Yes | The signature. |
Responses
302 Found, with a Location header pointing to Google Wallet.
Errors
| Status | Code | When |
|---|---|---|
403 |
plugixa_pdfv_link_expired |
Unknown voucher, or the link is expired or altered. |
503 |
plugixa_pdfv_wallet |
Google Wallet is not set up, or the card could not be prepared. |
Plus the errors every endpoint can return.
Quick Links
Share