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
https://kraken.airpay.co.in/airpay/ms/invoicepay/api/create
FieldTypeDescription
content-typeStringapplication/json (required)
affiliateTextWill be provided by Airpay (required)
checksumText$string = $param.self::$secret_key; (required) sha256(<concate all values+SECRET KEY>); (required)
processor-keyTextWill be provided by airpay ( required)
FieldTypeRequiredDescription
request_idNumberYesRequest ID (length 8)
request_typeStringYesRequest type can be either transaction or register (length 15)
service_typeStringYesService type based on request_type.
For transaction, values can be:
pg - Payment Gateway
nb - Net Banking
(length 10)
device_idStringNoDevice ID (length 8)
request_timeDateYesAPI request hitting time
request_statusStringYesRequest status values can be fail, success, initiated, pending, etc.
merchant_idNumberYesMerchant ID
merchant_stateStringYesMerchant State (length 20)
merchant_cityStringYesMerchant City (length 20)
activation_dateDateYesMerchant activation date (YYYY-MM-DD HH:MM:SS)
merchant_typeStringYesMerchant type e.g. AQ, AC, DT (length 10)
company_nameStringNoCompany Name (length 20)
owner_nameStringYesOwner Name (length 20)
zoneStringYesZone based on state.
Possible values: North, South, West, East (length 4)
nameStringYesName (length 4-50)
phoneNumberYesPhone Number (length 10-15)
emailStringYesEmail Address (length 6-50)
cityStringYesCity Name (length 2-50)
stateStringYesState Name (length 2-50)
customer_ipNumberYesCustomer IP
domainURLYesDomain URL (length 1-50)
ipNumberYesCustomer IP
amountNumberYesAmount (length 10-20)
card_f6NumberYesFirst 6 digits of the card used in the transaction (length 6)
card_e4NumberYesLast 4 digits of the card used in the transaction (length 4)
currency_codeStringYesCurrency code in numeric format.
Examples: 356 (IND), 784 (AED), 834 (TZS) (length 3)
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"
}
}
curl --location --request POST 'https://kraken.airpay.co.in/airpay/ms/sentry/api/python_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"
}
}
FieldTypeDescription
statusNumeric400- fail,200-success(length 3)
messageTextsuccess, fail
dataText{ “request_id”: “12345678”, “score”: 0, “weightage”: “Low” }
{
"status": 200,
"message": "success",
"data": {
"request_id": "12345678",
"score": 0,
"weightage": "Low"
}
{
"status": "400",
"message": "Failed",
"data": ""
}