GetDataCard

This endpoint is used to get the token string generated by the storeCard endpoint and pass the data to the payment parameters.

Get Card Data:

  • URL: /cardManagement/getCardData
  • METHOD: POST
  • HEADER: You must enter the content type while submitting the request. The JSON format is used for all the requests we pass. The Authorization token is passed in Header.
    • Content-Type: application/json
    • portal-origin: localhost
    • Authorization: <YOUR_ACCESS_TOKEN>

Request body:

{

   "token_id": [

       "a2ea7c4e51fd64516849c3284211996a8abba2731277e81fce82279d4a159f7e",

       "a2d4564e51fd64516849c328423fbb678abb88711067da1ecdbc3bd448059f7e",

       "a2d4740452d370546959fd654201bf2588bb88711149ec58cfac2f93",

       "a1fa744e51fd64516849c328422fb7688abbaa771249e858ce823b9e4b059f7e"

   ]

}

Response:

Status Code Message Description
200 Success The request is successful
303 Failed Card details validation error
  • Example:

    Success:

{
    "message": "form data success",
    "status_code": 200,
    "short_text": "form_data_success",
    "status": "success",
    "data": {
        "a1c4744e51fd64526a67df64420195238a8590711077f456cfac339d": {
            "card_token": "a1c4744e51fd64526a67df64420195238a8590711077f456cfac339d",
            "card_type": "DC",
            "card_code": "VI",
            "card_number": "4111XXXXXXXX1111",
            "cvv_code": "XXX",
            "expire_month": "09",
            "expire_year": "2021",
            "card_holder_name": "karthick"
        }
    }
}
Failed:
{
    "message": "The given data was invalid",
    "status_code": 303,
    "short_text": "validation_error",
    "status": "failed"
}