# CreditCardInput

Input · GraphQL API

Input fields for a credit card.

## Fields

- `number` (`String`): The 12-to-19-digit value that uniquely identifies this credit card, also known as the primary account number or PAN.
- `expirationYear` (`String`): The two- or four-digit year associated with a credit card, formatted `YYYY` or `YY`.
- `expirationMonth` (`String`): The expiration month of a credit card, formatted `MM`.
- `cvv` (`String`): A three- or four-digit card verification value assigned to credit cards. The CVV will never be stored, but it can be provided with one-time requests to verify the card.
- `cardholderName` (`String`): When supplied, the cardholder name that will be tokenized with the contents of the fields.
- `billingAddress` (`AddressInput`): The billing address for the credit card.

## Used by

- [TokenizeCreditCardInput](/braintree/graphql/reference/types/tokenize-credit-card-input) — Input; creditCard

## GraphQL definition

```graphql
input CreditCardInput {
  number: String
  expirationYear: String
  expirationMonth: String
  cvv: String
  cardholderName: String
  billingAddress: AddressInput
}
```

---

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