luhn
Checks that the value is at least 2 ASCII digits and that its Luhn mod 10 checksum is 0.
Error codes: WRONG_CHECKSUM, FORMAT_ERROR
rules
input
Invaliderrors
{
"code": "WRONG_CHECKSUM"
}79927398713 passes, 79927398710 does not. The value is checked as it is: spaces and dashes are not removed, see Checksum rules.
For payment card numbers, use credit_card.