POST
/
card
/
{card_id}
/
digital_wallet_token
/
google_pay
curl --request POST \
  --url https://api.treasuryprime.com/card/{card_id}/digital_wallet_token/google_pay \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "card_id": "card_291u96075mva",
  "device_id": "W85OGhjZTk2dsr452dgsr51j",
  "device_type": "mobile_phone",
  "provisioning_app_version": "2.13.3",
  "wallet_account_id": "ae25OGhjZTk2dsr452dgsr51"
}'
{
  "card_id": "card_291u96075mva",
  "device_type": "mobile_phone",
  "provisioning_app_version": "2.0",
  "push_tokenize_request_data": {
    "display_name": "Visa Card",
    "last_digits": "1234",
    "network": "Visa",
    "opaque_payment_card": "eyJraWQiOiIxVjMwT1ZCUTNUMjRZMVFBVFRRUza",
    "token_service_provider": "TOKEN_PROVIDER_VISA",
    "user_address": {
      "address1": "1 Market St",
      "address2": "Suite 42",
      "city": "San Francisco",
      "country": "US",
      "name": "George Washington",
      "phone": "4154845555",
      "postal_code": "94104",
      "state": "CA"
    }
  }
}

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 google-pay-token-request to create
card_id
string
required

The ID card being added to the wallet

device_id
string
required

The user’s Android device ID; the device’s unique identifier

device_type
string
required

One of mobile_phone, watch, or tablet

provisioning_app_version
string
required

Version of the application making the provisioning request

wallet_account_id
string
required

The user’s Google wallet account ID

Response

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

The ID card being added to the wallet

device_id
string

The user’s Android device ID; the device’s unique identifier

device_type
string

One of mobile_phone, watch, or tablet

provisioning_app_version
string

Version of the application making the provisioning request

wallet_account_id
string

The user’s Google wallet account ID