Skip to main content
POST
Ask from your server when your user taps “Add to Apple Wallet” or “Add to Google Pay” in your app, and pass the answer to your app. The answer holds the card encrypted for the wallet, never the card number, and works for one add only. Add a card to Apple Pay or Google Pay walks through both phones.
This answers wallet_provisioning_not_enabled for every card today, because phone wallets are not switched on for Agentcard cards yet. See Add a card to Apple Pay or Google Pay for what your users can do in the meantime.
string
required
A multi-use card your company issued, open, in the mode of your access token.
string
required
apple_pay or google_pay.
string
required
An id your app keeps for the phone the card goes to.
string[]
Apple Pay only, required. The certificates Apple handed your app, each in base64.
string
Apple Pay only, required. The nonce Apple handed your app, in base64.
string
Apple Pay only, required. The nonce signature Apple handed your app, in base64.
string
Apple Pay. Base64, for PKAddPaymentPassRequest.activationData.
string
Apple Pay. Base64, for PKAddPaymentPassRequest.encryptedPassData.
string
Apple Pay. Base64, for PKAddPaymentPassRequest.ephemeralPublicKey.
string
Google Pay. Base64, for PushTokenizeRequest.setOpaquePaymentCard.
string
Google Pay. visa.
string
Google Pay. visa.
string
Google Pay. The card’s last four digits, for setLastDigits.
The answer carries Cache-Control: no-store. Apple’s nonce expires within a few minutes, so ask as soon as your app sends it. Agentcard refuses a card that cannot go in a wallet before anything reaches the phone. A single-use card answers 409: