braintree · Schema
CreditCardDetails
Details of the credit or debit card used in a transaction, with sensitive fields masked.
Properties
| Name | Type | Description |
|---|---|---|
| bin | string | First six digits of the card number identifying the issuing bank. |
| last_4 | string | Last four digits of the card number. |
| card_type | string | The card network or type, such as Visa, MasterCard, American Express, or Discover. |
| expiration_month | string | Two-digit expiration month of the card. |
| expiration_year | string | Four-digit expiration year of the card. |
| cardholder_name | string | Name of the cardholder as it appears on the card. |
| country_of_issuance | string | Two-letter ISO 3166-1 country code of the card-issuing country. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/CreditCardDetails",
"title": "CreditCardDetails",
"type": "object",
"description": "Details of the credit or debit card used in a transaction, with sensitive fields masked.",
"properties": {
"bin": {
"type": "string",
"description": "First six digits of the card number identifying the issuing bank.",
"pattern": "^\\d{6}$"
},
"last_4": {
"type": "string",
"description": "Last four digits of the card number.",
"pattern": "^\\d{4}$"
},
"card_type": {
"type": "string",
"description": "The card network or type, such as Visa, MasterCard, American Express, or Discover."
},
"expiration_month": {
"type": "string",
"description": "Two-digit expiration month of the card.",
"pattern": "^\\d{2}$"
},
"expiration_year": {
"type": "string",
"description": "Four-digit expiration year of the card.",
"pattern": "^\\d{4}$"
},
"cardholder_name": {
"type": "string",
"description": "Name of the cardholder as it appears on the card."
},
"country_of_issuance": {
"type": "string",
"description": "Two-letter ISO 3166-1 country code of the card-issuing country."
}
}
}