1. Overview
The document describes how the integration between PDM and Feratel is done. This integration allows to work with QR codes issued by Feratel in Austria. implementation is similar to Brain behind.
1.1. PDM
Handling of requests has been made via real time request framework developed earlier (Real time multi request). There is just one request to find out if the card is know to feratel and valid. In such a case PDM will switch some special tariff.
2. Card validity
2.1. Request
To find if the card is valid, it is necessary to provide the card id (KKN
) and area (GAC
) within real-time request number 24.
Card ID is string and leading zeroes matters. ID 123 ≠ 0123 ≠ 000123 |
PSA12;GAC11;MRQ[{REQ:24,KNN:"0178062140080254101"}];
2.2. Response
The response contains two interesting fields.
-
cardValid
- string which indicates if the card is valid. "1" = valid, "0" = invalid, rest is undefined and should not happen. -
cardNr
- card number. It is something different then cardID. -
ERC
- error code. See chapter error codes.
Examples below demonstrates different response categories.
PSA00012;GAC11;MRQ[{cardValid:"1",ERC:0,cardNr:401393784,REQ:24}];...
PSA00012;GAC11;MRQ[{cardValid:"0",cardNr:0,ERC:0,REQ:24}];...
Filed cardNr
is equal to 0
PSA00012;GAC11;MRQ[{ERC:2,REQ:24}];...
Table of error codes is below in chapter error codes.
3. Error codes
Error code | Meaning |
---|---|
1 |
Service is disabled in PDM.control |
2 |
Response can not be understand by our system. This is probably implementation error or changed API. Please contact help desk. |
3 |
Web API did not understood request. See mnemonic ERM for details. |
4 |
Web API understood the request but refused to fulfill it. See mnemonic |