Validate Card Details

URL <protocol>://<host>:<port>/CEPM/api/rest/v1/card/ validate
METHOD POST

REQUEST** PARAMS**

Name Type Description Data Type Availability Comment
Username Header Username to login to API String Required
Password Header Password to login to API String Required
cardUID Body Card UID <String> Required
cardDID Body Card DID <String> Required
unitCode Body Unit Code <String> Required
serviceCode Body Service Code <String> Required

RESPONSE** PARAMS**

Name Type Description Data Type Availability Comment
status Body Status of the transaction <String> Required
statusCode Body Status Code of the transaction <String> Required
statusMsg Body Status Messages of the transaction List<String> Required
cardUID Body Valid Card UID or not <int> Required Valid - 1Invalid - 0
cardDID Body Valid Card DID or not <int> Required Valid - 1Invalid - 0
unitCode Body Valid Unit code or not <int> Required Valid - 1Invalid - 0
serviceCode Body Valid Service code or not <int> Required Valid - 1Invalid - 0

SAMPLE REQUEST

Header

POST /api/rest/v1/card/validate HTTP/1.1

User-Agent: <agent>

Host: <HOST>

Username: <Username>

Password: <Password>

Body

{

    &quot;cardUID&quot;:&quot;777000000006&quot;,

    &quot;cardDID&quot;:&quot;777000000086&quot;,

    &quot;unitCode&quot;:&quot;UT00421&quot;,

    &quot;serviceCode&quot;:&quot;Service001&quot;

}

SAMPLE RESPONSE

Body

{

"status": "OK",

"statusCode": "200",

"statusMsg": [

&quot;Success&quot;

],

"cardUID": 1,

"cardDID": 1,

"unitCode": 1,

"serviceCode": 1

}

Last updated on 21st Apr 2017