POST
/
api
/
v1
/
info
/
bin
curl --request POST \
  --url https://api.paytring.com/api/v1/info/bin \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "bin": "<string>",
  "hash": "<string>"
}'
"{}"

This API is used to validate card details before initiating a transaction.

Request Body

{
  "key": "string", // Merchant API key
  "card_number": "string", // Card number
  "expiry_date": "string", // Card expiry date in MM/YY format
  "cvv": "string", // Card CVV
  "hash": "string" // Calculated hash for request validation
}

Responses

200 OK

{
  "status": true,
  "message": "Card is valid",
  "card_type": "string"
}

400 Bad Request

{
  "status": false,
  "error": {
    "message": "Invalid card details",
    "code": 400
  }
}

Body

application/json
key
string
required

Merchant key, available in dashboard profile section

bin
string
required

card bin you want to be validated.( first 6 digits of card number )

hash
string
required

to be calculated for this request

Response

200
application/json
200

The response is of type object.