{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/backbase/main/json-schema/backbase-payment-card-schema.json", "title": "PaymentCard", "x-generated": "2026-09-27", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/_original/backbase-openapi-openapi.yml#/components/schemas/PaymentCard", "required": [ "cvc", "expiryDate", "id", "nameOnCard", "pan", "startDate" ], "type": "object", "properties": { "id": { "type": "string" }, "pan": { "maxLength": 19, "type": "string", "description": "Must be sixteen digits, optionally in blocks of 4 separated by a dash" }, "cvc": { "maxLength": 3, "minLength": 3, "type": "string", "description": "Card Verification Code" }, "startDate": { "pattern": "^(0[1-9]|1[0-2])/?([0-9]{4}|[0-9]{2})$", "type": "string", "description": "Must be in one of these four formats: MM/YY MMYY MMYYYY MM/YYYY" }, "expiryDate": { "pattern": "^(0[1-9]|1[0-2])/?([0-9]{4}|[0-9]{2})$", "type": "string", "description": "Must be in one of these four formats: MM/YY MMYY MMYYYY MM/YYYY" }, "nameOnCard": { "type": "string" }, "creationDate": { "type": "string", "format": "date-time" }, "balance": { "$ref": "#/$defs/Currency" }, "apr": { "type": "number" }, "cardtype": { "type": "string", "enum": [ "CREDIT", "DEBIT", "PREPAID" ] } }, "$defs": { "Currency": { "title": "Monetary Amount", "required": [ "amount", "currencyCode" ], "type": "object", "properties": { "amount": { "type": "string", "description": "The amount in the specified currency" }, "currencyCode": { "pattern": "^[A-Z]{3}$", "type": "string", "description": "The alpha-3 code (complying with ISO 4217) of the currency that qualifies the amount" } }, "description": "Schema defining monetary amount in given currency." } } }