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: /GetCardDetail
  • 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
    • Authorization: <YOUR_ACCESS_TOKEN>

  • message - A message indicating the success of the form submission.
    • Example: "form data success"
  • status_code - The HTTP status code of the response.
    • Example: 200
  • short_text - A brief text indicating the success status.
    • Example: "form_data_success"
  • status - The overall status of the form submission.
    • Example: "success"
  • data - Contains the details of the card submission.
    • Card Information:
      • card_token - A unique token representing the card.
        • Example: "a1c4744e51fd64526a67df64420195238a8590711077f456cfac339d"
      • card_type - Type of the card (e.g., Debit Card).
        • Example: "DC"
      • card_code - Card code representing the network type (e.g., VISA).
        • Example: "VI"
      • card_number - The masked card number for security.
        • Example: "4111XXXXXXXX1111"
      • cvv_code - The card’s CVV code (masked).
        • Example: "XXX"
      • expire_month - The expiration month of the card.
        • Example: "09"
      • expire_year - The expiration year of the card.
        • Example: "2021"
      • card_holder_name - The name of the cardholder.
        • Example: "karthick"

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"
}