Contents
On this page
Download Apple Wallet Pass - Plugixa PDF Vouchers for WooCommerce
GET /plugixa-pdf-vouchers/v1/wallet/apple/{id}
The Add to Apple Wallet link of the voucher email and My Account. The pass is made fresh on each download and shows the balance of that moment. See Apple Wallet and Google Wallet.
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/apple/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
200 OK. A .pkpass file (application/vnd.apple.pkpass) named voucher-<code>.pkpass.
Errors
| Status | Code | When |
|---|---|---|
403 |
plugixa_pdfv_link_expired |
Unknown voucher, or the link is expired or altered: This link has expired. Ask the shop to send the voucher again. |
503 |
plugixa_pdfv_wallet |
Apple Wallet is not set up, or the pass could not be signed. |
Plus the errors every endpoint can return.
Quick Links
Share