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
{
"cardUID":"777000000006",
"cardDID":"777000000086",
"unitCode":"UT00421",
"serviceCode":"Service001"
}
SAMPLE RESPONSE
Body
{
"status": "OK",
"statusCode": "200",
"statusMsg": [
"Success"
],
"cardUID": 1,
"cardDID": 1,
"unitCode": 1,
"serviceCode": 1
}