Check the Card Security Code
If your application requires it, you can check the Card Security Code (CSC). This four-digit code is printed at the back side of the card if so ordered.
The endpoint to check the card security code is POST /api/v2/Loyalty/MerchantCards/{id}/checkCsc:
Request
POST /api/v2/Loyalty/MerchantCards/MCD_2RXTNXPRM2YG9922UMBHHAEWEGN6AJ/checkCsc HTTP/1.1
Host: connect-testing.secupay-ag.de
Authenticate: Bearer qb56tjj1bcvo9n2nj4u38k84lo
Content-Type: application/json
Accept: application/json
{
"cardnumber"
:
"9276004429942845"
,
"csc"
:
"4471"
}
Successful response:
Response
HTTP/1.1 200 OK
Content-Type: application/json
...
{
"result"
:
true
}
The result signalizes whether the CSC was valid (true) or invalid (false). If the CSC is invalid you must not use the card.