POST
/
card
/
{card_id}
/
digital_wallet_token
/
apple_pay
curl --request POST \
  --url https://api.treasuryprime.com/card/{card_id}/digital_wallet_token/apple_pay \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "card_id": "card_291u96075mva",
  "certificates": [
    "MIIEPDCCA+KgAwIBAgICEAAwCQYHKoZIzj...",
    "MIIDZjCCAw2gAwIBAgIJAJx22AGaEPSgMA..."
  ],
  "device_type": "mobile_phone",
  "nonce": "vXWJaBidcTLaJJCF",
  "nonce_signature": "jD4Aphu+93N2wbBn",
  "provisioning_app_version": "2.13.3"
}'
{
  "activation_data": "TUJQQUMtMS1GSy03NDgwNTIuMS0tVERF",
  "card_id": "card_291u96075mva",
  "encrypted_pass_data": "w9NGKYa3OkPGeQ+FmAKGga",
  "ephemeral_public_key": "BMop3NufgKwy/r0GX1muvomvw"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

card_id
string
required

The ID card being added to the wallet

Body

application/json
The apple-pay-token-request to create
card_id
string
required

The ID card being added to the wallet

certificates
string[]
required

Leaf and sub-CA certificates provided by Apple

device_type
string
required

One of mobile_phone, watch, or tablet

nonce
string
required

One-time-use nonce provided by Apple for security purposes

nonce_signature
string
required

Apple-provided signature to the nonce

provisioning_app_version
string
required

Version of the application making the provisioning request

Response

200 - application/json
The apple-pay-token-request created
card_id
string

The ID card being added to the wallet

certificates
string[]

Leaf and sub-CA certificates provided by Apple

device_type
string

One of mobile_phone, watch, or tablet

nonce
string

One-time-use nonce provided by Apple for security purposes

nonce_signature
string

Apple-provided signature to the nonce

provisioning_app_version
string

Version of the application making the provisioning request