# CreditCardDetails

Object · GraphQL API

Details about a credit card.

## Fields

- `brandCode` (`CreditCardBrandCode`): A static code identifying the card brand.
- `last4` (`String`): The last four digits of the card number.
- `bin` (`String`): The first 6 digits of the credit card number, known as the Bank Identification Number. If this card originates from a third party such as a wallet provider, this BIN may not be present and the PaymentMethodOriginDetails will contain a BIN instead.
- `binData` (`BinRecord`): Information about the card based on its BIN.
- `expirationMonth` (`String`): The month of the expiration date, formatted MM.
- `expirationYear` (`String`): The year of the expiration date, formatted YYYY.
- `cardholderName` (`String`): The cardholder's name.
- `uniqueNumberIdentifier` (`String`): An identifier that uniquely represents any credit card number, for cards stored in a merchant's vault. If the same credit card is added to a merchant's vault multiple times, each will have the same identifier. This identifier will only be returned if the field "origin" is null.
- `origin` (`PaymentMethodOrigin`): Additional information if the credit card was provided from a third-party origin, such as Apple Pay, Google Pay, or another digital wallet.
- `billingAddress` (`Address`): The billing address associated with the credit card.
- `threeDSecure` (`ThreeDSecureDetails`): 3D Secure information for the payment method.
- `imageUrl` (`String`) — deprecated since 2018-10-24: A URL to an image logo representing the card brand.
- `brand` (`String`) — deprecated since 2018-09-18: The display name of the card brand, e.g. "Visa" or "American Express".
- `cardOnFileNetworkTokenized` (`Boolean`): Indicates whether the card on file is network tokenized.
- `paymentAccountReference` (`String`): The payment account reference (PAR) value, a non-financial reference number for the card.

## Used by

- [CreditCardTransactionDetails](/braintree/graphql/reference/types/credit-card-transaction-details) — Object; creditCard
- [PaymentMethodDetails](/braintree/graphql/reference/types/payment-method-details) — Union; Union member
- [PaymentMethodSnapshot](/braintree/graphql/reference/types/payment-method-snapshot) — Union; Union member
- [TokenizeCreditCardPayload](/braintree/graphql/reference/types/tokenize-credit-card-payload) — Object; creditCard

## GraphQL definition

```graphql
type CreditCardDetails {
  brandCode: CreditCardBrandCode
  last4: String
  bin: String
  binData: BinRecord
  expirationMonth: String
  expirationYear: String
  cardholderName: String
  uniqueNumberIdentifier: String
  origin: PaymentMethodOrigin
  billingAddress: Address
  threeDSecure: ThreeDSecureDetails
  imageUrl: String @deprecated(reason: "This field is included for supporting legacy clients.")
  brand: String @deprecated(reason: "Use `brandCode` instead.")
  cardOnFileNetworkTokenized: Boolean
  paymentAccountReference: String
}
```

---

[View the complete GraphQL schema on GitHub](https://raw.githubusercontent.com/braintree/graphql-api/refs/heads/master/schema.graphql)