Skip to main content
POST

Authorizations

Authorization
string
header
required

API token authentication using format <api token id>:<api client secret>

Path Parameters

id
string
required

System-generated unique card identifier

Body

application/json

Fields shared by every add-to-wallet request. The wallet SDK hands your app a set of values when the cardholder taps "Add to Wallet"; pass them here unchanged in the request shape for that wallet.

wallet
enum<string>
required

Discriminator value identifying an Apple Pay request.

Available options:
APPLE_PAY
Example:

"APPLE_PAY"

certificate
string
required

The leaf certificate from the certificates array Apple passes to your PKAddPaymentPassViewControllerDelegate, base64-encoded in PEM form.

Example:

"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUM="

nonce
string
required

The nonce Apple passes to your delegate, base64-encoded.

Example:

"MTIzNDU2Nzg="

nonceSignature
string
required

The nonceSignature Apple passes to your delegate, base64-encoded.

Example:

"c2lnbmF0dXJl"

Response

Provisioning payload minted.

Fields shared by every add-to-wallet response. The payload is encrypted to the wallet provider's keys: neither your app nor your servers can read the card data inside it. Hand it to the wallet SDK; it is valid for a single provisioning attempt.

wallet
enum<string>
required

Discriminator value identifying an Apple Pay response.

Available options:
APPLE_PAY
Example:

"APPLE_PAY"

applePay
object
required

The encrypted pass data for Apple Wallet. Pass the three fields straight into the PKAddPaymentPassRequest your delegate's completion handler expects.