Get-Parameter:
card_id
Latest Card Format:
cc-nnnn-x
Old Card Format:
nnnnx or nnnn
Digits:
cc = Company, 2 or 3 digits
nnnn = Customer number, i digits
x = Checknumber, 1 digit
nnnn = Customer number, i digits
x = Checknumber, 1 digit
Possible Result:
HTTP 200
card number is valid, returns expiry date as plain text, format:
yyyy-mm-dd
yyyy-mm-dd
HTTP 400
card number not valid, returns error message in plain text:
card format not valid
card format not valid
HTTP 404
card number not found, returns error message in plain text:
card not found
card not found
HTTP 410
card number expired, returns plain text with date:
card expired at yyyy-mm-dd
card expired at yyyy-mm-dd