Create Google Pay token
Connect a Google Pay token to the specified account.
The paymentMethodData field should contain the paymentMethodData property from Google Pay's
PaymentData response,
passed through unmodified.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/cards.write scope.
curl -X POST "https://api.moov.io/accounts/{accountID}/google-pay/tokens" \
-H "Authorization: Bearer {token}" \
-H "X-Moov-Version: v2027.01.00" \
-d '{
"merchantAccountID": "c5f78a7e-2fb0-4e4a-bcf0-9e1f8b0e5c7a",
"paymentMethodData": {
"info": {
"cardNetwork": "VISA",
"cardDetails": "1234"
},
"tokenizationData": {
"type": "PAYMENT_GATEWAY",
"token": "string"
}
}
}'[
{
"paymentMethodID": "string",
"paymentMethodType": "moov-wallet",
"googlePay": {
"tokenID": "dcd471ec-7d5c-4016-865c-1e78c733bea2",
"brand": "Visa",
"cardType": "credit",
"cardDisplayName": "7419",
"fingerprint": "9948962d92a1ce40c9f918cd9ece3a22bde62fb325a2f1fe2e833969de672ba3",
"expiration": {
"month": "01",
"year": "21"
},
"dynamicLastFour": "7419",
"issuerCountry": "US",
"authMethod": "PAN_ONLY"
}
}
]Response headers
x-request-id
string
required
{
"error": "string"
}Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
{
"error": "string"
}Response headers
x-request-id
string
required
{
"error": "string",
"merchantAccountID": "string",
"paymentMethodData": "string"
}Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Headers
X-Moov-Version
string
v2026.08.00 uses v2026.07.00.
A malformed value, such as 2022, returns a 404 response.
v2027.01.00
Path parameters
Body
Links a Google Pay token to a Moov account.
The paymentMethodData field should contain the paymentMethodData property from the
PaymentData response
returned by Google Pay's client SDK. Pass it through unmodified.
merchantAccountID
string
required
gatewayMerchantId
value passed to Google Pay when constructing the PaymentDataRequest. card-gateway validates
that the decrypted gatewayMerchantId matches this value.
paymentMethodData
object
required
paymentMethodData object from Google Pay's
PaymentData response.
Show child attributes
paymentMethodData
info
object
required
Show child attributes
paymentMethodData.info
cardNetwork
string<enum>
required
AMEX,
DISCOVER,
INTERAC,
JCB,
MASTERCARD,
VISA,
OTHER
billingAddress
object
Billing address as returned by Google Pay.
Refer to Google's documentation for more information.
Show child attributes
paymentMethodData.info.billingAddress
Response
googlePay
object
Show child attributes
googlePay
brand
string<enum>
required
American Express,
Discover,
Mastercard,
Visa,
Unknown
cardDisplayName
string
required
User-friendly name of the tokenized card returned by Google Pay.
It usually contains the last four digits of the underlying card. There is no standard format.
cardType
string<enum>
required
debit,
credit,
prepaid,
unknown
dynamicLastFour
string
4 characters
required
fingerprint
string
<=100 characters
required
paymentMethodType
string<enum>
moov-wallet,
ach-debit-fund,
ach-debit-collect,
ach-credit-standard,
ach-credit-same-day,
rtp-credit,
card-payment,
push-to-card,
pull-from-card,
apple-pay,
card-present-payment,
instant-bank-credit,
push-to-apple-pay,
pull-from-apple-pay,
google-pay,
push-to-google-pay,
pull-from-google-pay,
wire-credit