This API will confirm that the policy has been issued by the insurance company. We must pass policy id, amount, provider id, ses code, order id, policy name, customer details, status, category, and policy certificate in request. If the request has valid details, we will get a success response.
https://kraken.airpay.co.in/airpay/ms/insurance/api/policy-confirmation
Field Type Description content-type string Value : application/x-www-form-urlencoded (required) processor-key string Authentication key for airay. Eg 91f5evhk72f56432ec678sdfes685h42sd2t21k430912508233b7r37562g2hps (length 20, required) checksum string Sha256 of value of hash(‘sha256’,’(orderid)(affiliateid)(ampunt)(policytype)(companyid), processor-key) (required)
Field Type Required Description policy_id Numeric Yes Insurance policy ID amount Numeric Yes Premium amount that will be deducted by the insurance company (length 10,2) provider_id String Yes Insurance provider ID ses_code String Yes Encoded secret key provided by Airpay during order creation order_id String Yes Reference transaction ID shared by affiliate while initiating the transaction (fixed length 20) policy_name String Yes Policy name customer_mobile_number Numeric Yes Customer mobile number customer_name String Yes Customer name customer_email_id String Yes Customer email ID status String Yes Status cat String No Insurance category. Redirects to the insurer landing page of that category policy_certificate String Yes Policy certificate reference associated with the transaction
curl --location 'https://kraken.airpay.co.in/airpay/ms/insurance/api/policy-confirmation' \
--header 'content_type: application/x-www-form-urlencoded' \
--header 'processor-key: xvIvkuxKczCf8kapHZv5ia9qzPEB9iPRvtLr4iJn4SzmMjfuWgVvSsXvyw==' \
--header 'checksum: 26f4d971d9c811b5a6322f97411edbebb5d353580aea15e3ea8a41d6da20cf3a' \
--header 'Cookie: _csrf=103936bf306d2098165c59d08c9288e68459dcac68bba4d83cdb7c0a17163ea6a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22XORQcv-kviZ_teErDmi5drwuAhdUQpZE%22%3B%7D' \
"ses_code": "e9699473674b2597f4965d9a2f0y2fa06f5be6cdf6dbc06ac16f322e49366b8bf",
"order_id": "MAWEB169941644078436",
"policy_certificate": "UEsDBZQABgtIAAAAIQAHnKgpxQEAAOgJAAATAAgCW0NvbnRl"
Field Type Description status Numeric api status [1- success,0-fail] (length 1) data Jsonarray data provided will be with orderid message string message (length 50)
"message": "Duplicate Order"