Skip to main content
POST
Tokenize Google Pay

Authorizations

Authorization
string
header
required

JWT bearer token obtained via the OAuth2 client-credentials grant from the platform Authentication API. The token's scopes gate the endpoints it may call, and its audience names the Guardian instance. This is the standard way to authenticate to Guardian.

Headers

X-Idempotency-Key
string

Makes the write safe to retry. A repeat with the same key, by the same credential, with the same request within 24 hours returns the original outcome with Idempotent-Replayed: true instead of executing again. 1 to 255 visible ASCII characters, sent once. Must not contain card data. See Idempotency.

Required string length: 1 - 255
Pattern: ^[!-~]+$
Example:

"google-pay-7f3c2a9e-0001"

Body

application/json
payment_method_token
object
required

Google's PaymentMethodToken envelope, passed through verbatim as returned by the Google Pay API — including its original camelCase keys.

Response

Success response. A payload already tokenized on this instance, with or without an idempotency key, returns the original wallet token. On an instance where idempotency isn't switched on, such a repeat returns 409 GOOGLE_PAY_DUPLICATE_PAYLOAD instead.

id
string<uuid>
required
kind
enum<string>
required

The specific credential kind.

Available options:
google_pay_pan_only,
google_pay_cryptogram_3ds,
apple_pay_dpan
Example:

"google_pay_pan_only"

ingestion_path
string
required

The wallet the token was ingested from.

Example:

"google_pay"

scheme
enum<string>
required
Available options:
visa,
mastercard,
american express,
discover,
diners club,
jcb,
unionpay
card
object
required
created_at
string<date-time>
required
Example:

"2026-06-29T12:00:00Z"

auth_method
enum<string>

The authentication method of the wallet credential. An Apple Pay token is always CRYPTOGRAM_3DS. Determines which placeholders are available when forwarding and whether the token can be promoted.

Available options:
PAN_ONLY,
CRYPTOGRAM_3DS
requires_3ds
boolean

Whether the payment still requires 3-D Secure authentication on your side.

promoted_to
string | null

The ID of the network token this wallet token was promoted to. null until the token is promoted.

Example:

null

deleted_at
string | null

Set when the token has been deleted and its card data scrubbed.

Example:

null