Skip to main content
POST
/
ip
Verify IP
curl --request POST \
  --url https://sandbox.cashfree.com/verification/ip \
  --header 'Content-Type: application/json' \
  --header 'x-client-id: <api-key>' \
  --header 'x-client-secret: <api-key>' \
  --data '{
  "ip_address": "1.0.171.255",
  "verification_id": "testverificationid"
}'
{
"value": {
"reference_id": 1358,
"verification_id": "testverificationid",
"status": "VALID",
"ip_address": "1.0.171.255",
"proxy_type": "VPA",
"country_code": "TH",
"country_name": "Thailand",
"region_name": "Phangna",
"city_name": "Phang Nga",
"city_risk_score": "0",
"proxy_type_risk_score": "0"
}
}

Authorizations

x-client-id
string
header
required

Your unique client identifier issued by Cashfree. You can find this in your Merchant Dashboard.

x-client-secret
string
header
required

The secret key associated with your client ID. Use this to authenticate your API requests. You can find this in your Merchant Dashboard.

Headers

x-cf-signature
string

Send the signature if two-factor authentication is selected as Public Key. More details

Body

application/json

Find the request parameters to retrieve location information of an IP address

ip_address
string
default:1.0.171.255
required

It is the IP address that you need to verify which is assigned to a device connected to a computer network.

Example:

"1.0.171.255"

verification_id
string
default:testverificationid
required

It is the unique ID you create to identify the verification request. The maximum character limit is 50. Only alphanumeric, period (.), hyphen (-), and underscore ( _ ) are allowed.

Example:

"testverificationid"

Response

IP verified successfully

reference_id
integer

It displays the unique ID created by Cashfree Payments for reference purposes. format: int64

Example:

1358

verification_id
string

It displays the unique ID you created to identify the verification request.

Example:

"testverificationid"

status
string

It displays the status of the IP address.

Example:

"VALID"

ip_address
string

It displays the entered IP address.

Example:

"1.0.171.255"

proxy_type
string

It displays the category or classification of a proxy server based on its functionality and how it handles network requests.

Example:

"VPA"

country_code
string

It displays the country code associated with the geographical location of the device or network to which the IP address is assigned.

Example:

"TH"

country_name
string

It displays the name of the country associated with the geographical location of the device or network to which the IP address is assigned.

Example:

"Thailand"

region_name
string

It displays the name of the region associated with the geographical location of the device or network to which the IP address is assigned.

Example:

"Phangnga"

city_name
string

It displays the name of the city associated with the geographical location of the device or network to which the IP address is assigned.

Example:

"Phang Nga"

city_risk_score
string

It displays the risk score associated with a particular city based on factors such as cybersecurity threats, crime rates, or other relevant data.

Example:

"0"

proxy_type_risk_score
string

It displays the risk score associated with a particular city based on factors such as cybersecurity threats, crime rates, or other relevant data.

Example:

"0"