---
updatedAt: 2026-04-23T13:43:44.000Z
agentTools:
  projectIndex: https://docs.br-dge.io/llms.txt
---

# Get Google Pay token metadata

Retrieve details for Google Pay card.


# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "BR-DGE Payment Instrument REST API",
    "description": "REST API that deals with everything related to payment instrument tokenization\n",
    "version": "v1.0.0",
    "contact": {
      "name": "Customer Support",
      "url": "https://comcarde.atlassian.net/servicedesk/customer/portals"
    },
    "license": {
      "name": "MIT",
      "url": "https://docs.br-dge.io/docs/openapi-license"
    }
  },
  "servers": [
    {
      "url": "https://sandbox.comcarde.com/v1",
      "description": "Sandbox subdomain for testing your integration works as expected, using mock payment instruments only.\n"
    },
    {
      "url": "https://secure.comcarde.com/v1",
      "description": "Use this subdomain for processing live payments in the EU region."
    },
    {
      "url": "https://secure-amer-01.api.br-dge.io/v1",
      "description": "Use this subdomain for processing live payments in the NA region."
    }
  ],
  "tags": [
    {
      "name": "Payment Instrument Tokenization",
      "description": "Payment instrument tokenization is the practice of securely storing card details, and providing a unique token that can be used in place of the raw payment instrument.\n"
    }
  ],
  "externalDocs": {
    "url": "https://docs.br-dge.io"
  },
  "paths": {
    "/payment-instruments/google-pay/query": {
      "post": {
        "tags": [
          "Payment Instrument Tokenization"
        ],
        "summary": "Get Google Pay token metadata",
        "description": "Retrieve details for Google Pay card.\n",
        "operationId": "queryGooglePayDetailsPOST",
        "security": [
          {
            "ServerApiKey": []
          }
        ],
        "requestBody": {
          "description": "Google Pay token",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GooglePayTokenRequest"
              },
              "examples": {
                "google-pay-token-nonce": {
                  "summary": "PSP bound nonce provided by Web SDK",
                  "value": {
                    "token": "XX#868e8b42-d8bc-470c-9b84-49bf6d4e9a23"
                  }
                },
                "google-pay-token-json": {
                  "summary": "Token provided by Google Pay API",
                  "value": {
                    "token": "{\"apiVersion\":2,\"apiVersionMinor\":0,\"paymentMethodData\":{\"description\": ..."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful retrieval of Google Pay details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GooglePayDetails"
                },
                "examples": {
                  "full Google Pay card metadata": {
                    "description": "Google Pay full card metadata and decrypted payload",
                    "value": {
                      "decryptedPayload": {
                        "gatewayMerchantId": "some-merchant-id",
                        "messageExpiration": "1650574736277",
                        "messageId": "AH2Ejtc88ZHJ-2aYBQWzHwvp6l0JsCHgxVt8s91A-ZUikaXNbcjsFm6gg9ExeVR-jzIyT-mJvA_ntvfRsDDOH2jnKMjdTtXIJvPt0NBUU45R7-gnjxkx-sI0ldcWvbDHsV0735yFDbWk",
                        "paymentMethod": "CARD",
                        "paymentMethodDetails": {
                          "pan": "####-####-####-4444",
                          "expirationMonth": 5,
                          "expirationYear": 2025,
                          "authMethod": "PAN_ONLY",
                          "eciIndicator": "07",
                          "assuranceDetails": {
                            "accountVerified": true,
                            "cardholderAuthenticated": true
                          }
                        }
                      },
                      "metadata": {
                        "metadataType": "cardMetaData",
                        "cardBrand": "VISA",
                        "issuer": "ACMEBANK",
                        "type": "DEBIT",
                        "category": "CLASSIC",
                        "countryIsoA2": "GB",
                        "commercial": true,
                        "bin": "45678765"
                      },
                      "expiryDate": "05-25",
                      "fingerprint": "63c8563d876b993878e1b5506b5fc5826e9e46266daaadac018a71ed307748c6",
                      "fingerprintExtended": "63c8563d876b993878e1b5506b5fc5826e9e46266daaadac018a71ed307748c60525"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request - the request was in an invalid format or contained invalid information.\n\nIf have any questions about why you are receiving these responses, please raise a ticket with support on the BR-DGE Support Portal at <https://docs.br-dge.io/docs/support#contact-support> with the `id` from the response so we can track down the individual requests on our end.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "Bad request with wrong format error": {
                    "value": {
                      "code": "4000",
                      "message": "Invalid request",
                      "id": "5bbd919b637167ac",
                      "additionalErrorDetails": "Provided Google Pay token is in unknown format. Supported formats: PSP bound nonce, raw JSON."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedRequest"
          },
          "500": {
            "$ref": "#/components/responses/UnknownServerError"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "GooglePayTokenRequest": {
        "type": "object",
        "properties": {
          "token": {
            "$ref": "#/components/schemas/GooglePayToken"
          }
        }
      },
      "GooglePayToken": {
        "description": "## If you integrate directly with the Google Pay&trade; API\nFollow the procedure in the Google Pay documentation to integrate your [web](https://developers.google.com/pay/api/web/guides/setup) or [Android](https://developers.google.com/pay/api/android/guides/setup) application.\nIn the step where you choose a payment tokenization method, choose `Gateway`, then set `comcarde` as your `gateway`. If you have not been provided with a `gatewayMerchantId` parameter, please raise a ticket with support on the BR-DGE Support Portal at <https://docs.br-dge.io/docs/support#contact-support>.\n## If you use a BR-DGE SDK\nThe BR-DGE SDK can optionally be used to automate client side interactions with the Google Pay&trade; API. The SDK will output a nonce that you can directly use.\nFor more information please refer to the [Google Pay Feature](https://docs.br-dge.io/docs/features-google-pay) page.\n",
        "type": "string",
        "example": "{\"apiVersion\":2,\"apiVersionMinor\":0, \"paymentMethodData\":{\"description\": \"Test Card: Visa •••• 1111\", \"info\":{\"assuranceDetails\":{\"accountVerified\":true, \"cardHolderAuthenticated\":false},\"cardDetails\":\"1111\", \"cardNetwork\":\"VISA\"},\"tokenizationData\":{\"token\": \"{\"signature\":\"MEUCIBSc1HRfQds/JkpNXakkaJf2geKR9HZE4Rhof/ qnNRymAiEArDzEmaOC+lTqzHmvA+Z1sFfRMROdtr0pTAGVFWUjLV4u003d\", \"intermediateSigningKey\":{\"signedKey\":\"{\"keyValue\": \"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE60Dnzr+/JD +xJOOIFBMRyVoqPCbQcBjj/TwGJu9ct/srT8tZDDWJzNZo2vDE50YLE38oHBJWLjAws hqDzKfQKQu003du003d\",\"keyExpiration \":\"1710831722061\"}\",\"signatures\":[\"M EUCIQDqib3bqGDAzyQRRtc7xci1EzhNqxAj1oEIrCfSiUd7WAIgc09CIVz7zKa9StsZ Bw95vvoRORsbF1qCKtPk5ltQihEu003d\"]},\"protocolVersion\": \"ECv2\",\"signedMessage\":\"{\"encryptedMessage \":\"My/Y7NLgWNCMiQzd/muw8XyCMDhMS38j9FjTyKPsmKNWM5UHl+PkT urYyVv6kSJGAkWF6HCBIx3J1Ch6kJtx4w8/pmP7ujxCwEiDiynsffAIeubQpkv69gIp +H/SZs7DiqOvdhXhHF5vpkYvU3NmVMjvNZeU3rgclwldC1IAJzGyxdafLYu7WKtajEv bBfIq/Rp+XXGkTw4pkGt7MYVNcWqUY4qO1mRmIyyj+UrR5wru9rXlxZu9xA0ofdBc4a 8tkOp6wUgD+5+VMZ3GbUrQZbV+hnwFqMl60U1+u2nSr9PInbusVT73tqr2Y37EmViCC I1s0Evoj8nakWgblLQ9L0HMS2G9XdIvktuLS2oDDxZziv1IquBShyYeik0Hhceq5HK9 d16MTIpLm1kP188YL1TtHoVCRNJX0T5lTfsTATN9PsMp9fl+SRBzjr2ZrfFtyjJB652 wi6FMJquIcVIoc1t6HAJ6ZQQyaR8gWaV+/BmkIm6EPmOUczF5sYTNGXilnKf91PwaoN zhBnatlx468fqkvyKGN5pjfsK2BCUGJJw9UwiYPWNrD24fzJ/Fwlxh0uToo5CiT8KmA qoKSxzJ9Fh/XtVsbbH0+yfUBNUfLsWs3Rsu003d\",\"eph emeralPublicKey\":\"BLyIO17wMMcKccD9XJMlUQ8vHnI3IfoE6Ss bQuVxerTtolZ7ICGRhW0lbxF3q7blzvgSDIYLk9cab27mCKT0sy0u003d \",\"tag\":\"CIKT0sRruAuW7nJ3THAgZuWHpE0PJBc4 eLmfHRWZgpsu003d\"}\"}\", \"type\":\"PAYMENT_GATEWAY\"},\"type\":\"CARD\"}}"
      },
      "GooglePayDetails": {
        "description": "Additional information about Google Pay Payment Instruments.",
        "allOf": [
          {
            "$ref": "#/components/schemas/DetailsOfAssociatedCardPaymentInstrument"
          },
          {
            "type": "object",
            "description": "Decrypted Google Pay information and card metadata\n",
            "properties": {
              "decryptedPayload": {
                "$ref": "#/components/schemas/GooglePayDecryptedPayload"
              }
            }
          }
        ]
      },
      "GooglePayDecryptedPayload": {
        "type": "object",
        "description": "[Google Pay decrypted payload] excluding sensitive fields, such as cryptogram\n\n[Google Pay decrypted payload]: https://developers.google.com/pay/api/android/guides/resources/payment-data-cryptography#encrypted-message\n",
        "properties": {
          "gatewayMerchantId": {
            "type": "string",
            "example": "some-merchant-id",
            "description": "Google Pay gateway merchant ID."
          },
          "messageExpiration": {
            "type": "string",
            "example": "1650574736277",
            "description": "Date and time at which the message expires as UTC milliseconds since epoch.\n"
          },
          "messageId": {
            "type": "string",
            "example": "AH2Ejtc88ZHJ-2aYBQWzHwvp6l0JsCHgxVt8s91A-ZUikaXNbcjsFm6gg9ExeVR-jzIyT-mJvA_ntvfRsDDOH2jnKMjdTtXIJvPt0NBUU45R7-gnjxkx-sI0ldcWvbDHsV0735yFDbWk",
            "description": "A unique ID that identifies the message in case it needs to be revoked or located at a later time.\n"
          },
          "paymentMethod": {
            "type": "string",
            "example": "CARD",
            "enum": [
              "CARD"
            ],
            "description": "The type of the payment credential. Currently, only CARD is supported.\n"
          },
          "paymentMethodDetails": {
            "$ref": "#/components/schemas/GooglePayDecryptedPaymentMethodDetails"
          }
        }
      },
      "GooglePayDecryptedPaymentMethodDetails": {
        "type": "object",
        "description": "The Google Pay payment credential, excluding cryptogram.",
        "properties": {
          "pan": {
            "type": "string",
            "example": "####-####-####-4444",
            "description": "The personal account number of the card that the Google Pay token relates to.\nThe value of this field depends on the value of `authMethod`.\n  - If authMethod is PAN_ONLY:\n    - This is an obfuscated PAN, where only the last 4 digits are present.\n  - If authMethod is CRYPTOGRAM_3DS:\n    - This is the full DPAN value generated by Google Pay.\n"
          },
          "expirationMonth": {
            "type": "integer",
            "example": 5,
            "description": "The expiration month of the card, where 1 represents January, 2 represents February, and so on."
          },
          "expirationYear": {
            "type": "integer",
            "example": 2025,
            "description": "The four-digit expiration year of the card, such as 2020."
          },
          "authMethod": {
            "type": "string",
            "example": "PAN_ONLY",
            "description": "The authentication method of the card transaction.",
            "enum": [
              "PAN_ONLY",
              "CRYPTOGRAM_3DS"
            ]
          },
          "eciIndicator": {
            "type": "string",
            "example": "07",
            "description": "This string isn’t always present. It returns only for authenticated device tokens transactions on Android (CRYPTOGRAM_3DS). This value must be passed down the payment processing flow.\n\nPossible values: \"\"(empty), 02, 06, 05, 07\n"
          },
          "assuranceDetails": {
            "$ref": "#/components/schemas/GooglePayDecryptedAssuranceDetails"
          }
        }
      },
      "GooglePayDecryptedAssuranceDetails": {
        "type": "object",
        "description": "This object provides information about the validation performed on the returned payment data.",
        "properties": {
          "accountVerified": {
            "type": "boolean",
            "description": "If true, indicates that Cardholder possession validation has been performed on returned payment credential.\n"
          },
          "cardholderAuthenticated": {
            "type": "boolean",
            "description": "If true, indicates that identification and verifications (ID&V) was performed on the returned payment credential.\n\nIf false, the same risk-based authentication can be performed as you would for card transactions. This risk-based authentication can include, but is not limited to, 3D-Secure authentication if applicable.\n"
          }
        }
      },
      "DetailsOfAssociatedCardPaymentInstrument": {
        "type": "object",
        "description": "Reusable details which can be returned on various card payment instrument backed payment instrument types. All details which are returned here are considered obfuscated.\n",
        "properties": {
          "metadata": {
            "$ref": "#/components/schemas/CardMetadata"
          },
          "expiryDate": {
            "$ref": "#/components/schemas/CardExpiryDate"
          },
          "fingerprint": {
            "$ref": "#/components/schemas/Fingerprint"
          },
          "fingerprintExtended": {
            "$ref": "#/components/schemas/FingerprintExtended"
          }
        }
      },
      "FingerprintExtended": {
        "type": "string",
        "description": "A fingerprint with card expiry date appended in MMYY format.\n"
      },
      "ErrorResponse": {
        "title": "ErrorResponse",
        "type": "object",
        "properties": {
          "additionalErrorDetails": {
            "type": "string",
            "description": "Additional information that may sometimes be returned about the reason an error occurred."
          },
          "code": {
            "$ref": "#/components/schemas/Code"
          },
          "id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "message": {
            "$ref": "#/components/schemas/Message"
          },
          "validationErrors": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "An object that contains validation errors"
          }
        }
      },
      "CardMetadata": {
        "type": "object",
        "description": "If a card payment instrument is used then BR-DGE may be able to provide metadata about the card\n\n**Please note: All text will be UPPERCASE and all fields can be null**\n",
        "properties": {
          "metadataType": {
            "type": "string",
            "description": "Discriminator field. Discriminator field. Please see the discriminator mapping for the PaymentInstrumentMetadata schema.\n"
          },
          "cardBrand": {
            "type": "string",
            "example": "MASTERCARD",
            "description": "MASTERCARD, VISA, etc"
          },
          "issuer": {
            "type": "string",
            "description": "Name of issuing bank"
          },
          "type": {
            "type": "string",
            "enum": [
              "DEBIT",
              "CREDIT",
              "CHARGE_CARD",
              "CHARGE",
              "DEFERRED_DEBIT",
              "PREPAID",
              "PREPAID_RELOADABLE",
              "UNKNOWN"
            ]
          },
          "category": {
            "type": "string",
            "example": "CLASSIC",
            "description": "CLASSIC, BUSINESS, MIXED_PRODUCT, etc"
          },
          "countryIsoA2": {
            "type": "string",
            "description": "ISO 3166 Alpha-2 Country code",
            "example": "GB"
          },
          "commercial": {
            "type": "boolean",
            "description": "Indicates if the card is corporate or retail",
            "example": true
          },
          "bin": {
            "type": "string",
            "description": "The Bank Identification Number that identifies the bank or financial institution that issued the card",
            "example": "48321456",
            "pattern": "^[0-9]+$",
            "minLength": 6,
            "maxLength": 8
          }
        }
      },
      "CardExpiryDate": {
        "type": "string",
        "example": "05-25",
        "description": "Card expiry date in MM-YY format.\n"
      },
      "Fingerprint": {
        "type": "string",
        "maxLength": 64,
        "description": "A unique token that can be used to detect if two BR-DGE tokens represent the same underlying Payment Instrument.\n",
        "example": "63c8563d876b993878e1b5506b5fc5826e9e46266daaadac018a71ed307748c6"
      },
      "Message": {
        "type": "string",
        "description": "A description of the outcome of the request."
      },
      "RequestId": {
        "type": "string",
        "description": "The ID of this request. If you can include these when querying the outcome of individual requests, we can track down the root cause faster.\n",
        "example": "a7f45953-1e8b-4f33-87b0-3293f4f6972f"
      },
      "Code": {
        "type": "string",
        "description": "[Response Code](https://docs.br-dge.io/docs/response-codes) signifying the outcome of the request.",
        "example": "1000"
      }
    },
    "responses": {
      "UnauthorizedRequest": {
        "description": "Unauthorized request."
      },
      "UnknownServerError": {
        "description": "An internal server error occurred upstream while processing the request.\n\nIf you have any questions about why you are receiving these responses, please raise a ticket with support on the BR-DGE Support Portal at <https://comcarde.atlassian.net/servicedesk/customer/portals> with the `id` from the response so we track down the individual requests on our end.\n",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "examples": {
              "Internal server error": {
                "description": "This example shows the [5001 error code]\n\nA full list of possible response codes is available [here].\n\n[5001 error code]: https://docs.br-dge.io/docs/response-codes#5001\n[here]: https://docs.br-dge.io/docs/response-codes\n",
                "value": {
                  "code": "5001",
                  "message": "Unexpected error",
                  "id": "4fad8e2e06a15656"
                }
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "ServerApiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "Operations intended for use by Merchant servers.\n\n**IMPORTANT** This key allows you to perform sensitive operations such as authorizing payments and refunds.\n\n**Production Server API keys must not be accessible outside your organization.**\n"
      }
    }
  }
}
```