Skip to content

Sentry Search

| View as Markdown

Sentry is an inhouse built risk management system that is used to calculate each transaction’s risk score. As the transaction starts processing, we must pass request id, request type, service type, device id, request time, request status, merchant details, customer details and service details in request. If the request has valid details, we will get a score along with a weightage: low, medium, or high of the transaction.

Node Url: https://kraken.airpay.co.in/airpay/ms/sentry/api/node_search
Python Url:https://kraken.airpay.co.in/airpay/ms/sentry/api/python_search
ParameterType ValueDescriptionValue Like
content-type requiredStringapplication/jsonapplication/json
affiliate requiredTextWill be provided by airpay91f5evhk72f56432ec678sdfes685h42sd2t21k430912508233b7r37562g2hps
checksum requiredTextstring = string = param + secret_key;
sha256(<concate all values+SECRET KEY>);
91f5evhk72f56432ec678sdfes685h42sd2t21k430912508233b7r37562g2hps
processor-key requiredTextWill be provided by airpay91f5evhk72f56432ec678sdfes685h42sd2t21k430912508233b7r37562g2hps
ParameterType ValueDescriptionValue Like
request_id requiredNumberRequest ID(length 1-8)12345678
request_type requiredStringThe request_type can be either ‘transaction’ or ‘register’.(length 1-15)transaction
service_type requiredStringThe service_type is based on the request_type. For example, if the request_type is ‘transaction,’ then the service_type can be ‘pg’ or ‘nb.’ ‘pg’ stands for payment gateway, and ‘nb’ stands for net banking.”(length 1-10)pg
device_id optionalStringDevice ID(length 1-8)
request_time requiredDateRequest Time is the API hitting time2022-10-31 19:10:47
request_status requiredStringRequest Status can be either “fail,” “success,” “initiated,” or “pending,” etc.INITIATED
merchant_id requiredNumberMerchant ID78543
merchant_state requiredStringMerchant State(length 1-20)Kerala
merchant_city requiredStringMerchant City(length 1-20)Kochi
activation_date requiredDateactivation_date is merchant activation date (YYYY-MM-DD HH:MM:SS)2015-01-21 11:15:49
merchant_type requiredStringMerchant Type is type of the merchant eg:AQ,AC,DT (length 1-10)AQ
company_name optionalStringCompany Name (length 1-20)
owner_name requiredStringOwner Name (length 1-20)John
zone requiredStringZone is based on the state, it may North,South,West,East (length 1-4)South
name requiredStringName (length 4-50)Prayag P
phone requiredNumberPhone Number (length 10-15)9XXXXXX686
email requiredStringEmail Address (length 6-50)xyz@airpay.co.in
city requiredStringCity Name (length 2-50)Thrissur
state requiredStringState Name (length 2-50)Kerala
customer_ip requiredNumberCustomer Ip100.123.00.00
domain requiredurlDomain url (length 1-50)http:\\/\\/localhost_test
ip requiredNumberCustomer Ip100.123.00.00
amount requiredNumberAmount (length 10-20)10.16
card_f6 requiredNumberThe first 6 digits of a card where the transaction occurred(length 1-6)612345
card_e4 requiredNumberThe last 4 digits of a card where the transaction occurred(length 1-4)9876
currency_code requiredStringCurrency in number (eg:356(IND),784(AED),834(TZS)…etc)(length 1-3)inr
ParameterType ValueDescriptionValue Like
status requiredNumeric400- fail,200-success(length 1-3)200
message requiredTextsuccess, failsuccess
data requiredText{ “request_id”: “12345678”, “score”: 0, “weightage”: “Low” }[]
curl --location --request POST 'https://kraken.airpay.co.in/airpay/ms/sentry/api/node_search' \
--header 'affiliate: 91f5evhk72f56432ec678sdfes685h42sd2t21k430912508233b7r37562g2hps' \
--header 'content_type: application/json' \
--header 'processor-key: 91f5evhk72f56432ec678sdfes685h42sd2t21k430912508233b7r37562g2hps' \
--header 'checksum: 91f5evhk72f56432ec678sdfes685h42sd2t21k430912508233b7r37562g2hps' \
--data-raw {
"request_id":"12345678",
"request_type":"transaction",
"service_type":"pg",
"device_id":"",
"request_time":"2022-10-31 19:10:47",
"request_status":"INITIATED",
"merchant_details":{
"merchant_id":"78543",
"merchant_state":"Kerala",
"merchant_city":"Kochi",
"activation_date":"2015-01-21 11:15:49",
"merchant_type":"AQ",
"company_name":"",
"owner_name":"John",
"zone":"South"
},
"customer_details":{
"name":"Prayag P",
"phone":"9XXXXXX686",
"email":"xyz@airpay.co.in",
"city":"Thrissur",
"state":"Kerala",
"customer_ip":"100.123.00.00"
},
"service_details":{
"domain":"http:\\/\\/localhost_test",
"ip":"100.123.00.00",
"amount":"10.16",
"card_f6":"612345",
"card_e4":"9876",
"currency_code":"inr"
}
}
{
"status": 200,
"message": "success",
"data": {
"request_id": "12345678",
"score": 0,
"weightage": "Low"
}
}
{
"status" : "400",
"message": "Failed",
"data":""
}