Skerry/ Reference/ Apple Wallet and Apple Pay
Apple Wallet and Apple Pay11
Passes and orders that live in Apple Wallet: trip and boarding details, pickup codes for routine and favourite orders, receipts, a membership (passes, pass.com.praecise.skerry) and orders from shops, refills and routines with status and tracking (orders, order.com.praecise.skerry). The API makes the pass or order and answers an add_to_wallet_url for the person to open on an iPhone; the package is signed when it is downloaded, with a key that never leaves the server's TPM. Wallet keeps it current through Skerry's web service (register, unregister, changed serials, latest package, log, under /wallet/v1, authenticated by the token inside the package and not part of the partner API): changing or voiding an item raises its version and sends wallet.updated. Apple Pay domains are registered per customer with /customers/{id}/payment-method-domains; this API serves the association file Apple fetches. Details in docs/wallet.md and docs/apple-pay.md.
- The file Apple fetches to prove a domain is the merchant's for Apple Payget/.well-known/apple-developer-merchantid-domain-association
- A customer's Wallet passes (up to 100). `?customer_id=` requiredget/wallet/passes
- Make a Wallet passpost/wallet/passes
- One Wallet pass, with how many devices hold itget/wallet/passes/{id}
- Change a pass; devices holding it fetch the new version. Send only what changespatch/wallet/passes/{id}
- Void a pass: it stays in Wallet marked voiddelete/wallet/passes/{id}
- A customer's Wallet orders (up to 100). `?customer_id=` requiredget/wallet/orders
- Make a Wallet orderpost/wallet/orders
- One Wallet order, with how many devices hold itget/wallet/orders/{id}
- Change an order's status, tracking or itemspatch/wallet/orders/{id}
- Cancel an order: it stays in Wallet marked canceleddelete/wallet/orders/{id}