Card from Request

June 5, 2026 ยท View on GitHub

Representation of card details as received in the request.

Structure

CardFromRequest

Fields

NameTypeTagsDescriptionGetterSetter
ExpiryStringOptionalThe year and month, in ISO-8601 YYYY-MM date format. See Internet date and time format.

Constraints: Minimum Length: 7, Maximum Length: 7, Pattern: ^[0-9]{4}-(0[1-9]|1[0-2])$
String getExpiry()setExpiry(String expiry)
LastDigitsStringOptional, Read-onlyThe last digits of the payment card.

Constraints: Minimum Length: 2, Maximum Length: 4, Pattern: [0-9]{2,}
String getLastDigits()setLastDigits(String lastDigits)

Example (as JSON)

{
  "expiry": "expiry6",
  "last_digits": "last_digits2"
}