https://api-uat.ensuredit.com/enbed/v1
{
“password”: “test”,
“username”: “xyz”
}
Successful Response:
- Status Code: 200 OK
{
“accessToken”: “<access_token which is used as bearer token>”,
“expiresIn”: 1800,
“refreshExpiresIn”: 863999,
“refreshToken”: “<refresh_token>”
}
curl -X ‘POST’ \
‘https://api-uat.ensuredit.com/enbed/v1/auth/generate’ \
-H ‘accept: application/json’ \
-H ‘Content-Type: application/json’ \
-d ‘{
“password”: “test”,
“username”: “xyz”
}’
Name | Type | Description | Required |
---|---|---|---|
size | int | Page size for pagination. | Yes |
page_number | int | Page Number for pagination. | No |
{
“search”:””,
“pre_quote”: {
“TAD_OR_MAD”: “TAD”,
“AGE”: “20”,
“REPAYMENT_CYCLE”: “30”,
“LOAN_AMOUNT”: “1000”,
“MOBILE_NUMBER”: “7426876XXXX”
},
“include_actual_price”: true,
“include_benefits”: false
}
Name | Type | Description | Required | Default |
---|---|---|---|---|
search | string | search by name, source, etc. | No | Empty String |
pre_quote.TAD_OR_MAD | enum | "TAD" / "MAD" | Yes | – |
pre_quote.AGE | int-string | Age between 18-60 | Yes | – |
pre_quote.REPAYMENT_CYCLE | int-string | REPAYMENT_CYCLE | Yes | – |
pre_quote.REPAYMENT_AMOUNT | int-string | REPAYMENT_AMOUNT | Yes | – |
pre_quote.MOBILE_NUMBER | string | MOBILE_NUMBER | Yes | – |
include_actual_price | bool | Whether to include actual price of product | No | false |
include_benefits | bool | Whether to include benefits | No | true |
Successful Response:
- Status Code: 200 OK
{
“products”: [
{
“id”: “97985a77-2fbc-4880-83a6-ac730e25a374”,
“name”: “EMI Protect”,
“source”: {
“id”: “cdda783d-ec55-4b90-9d1f-33b78d8fb444”,
“name”: “Acko”,
“logo”: “https://eit-enbed-public-uat.s3.ap-south-1.amazonaws.com/SOURCES/cdda783d-ec55-4b90-9d1f-33b78d8fb444/logo.png”
},
“startingFromPrice”: 0,
“paymentMethods”: “{}”,
“benefits”: [],
“duration”: 365,
“category”: “Loan”,
“price”: 9
}
],
“totalCount”: 1
}
curl –location ‘http://localhost/enbed/v1/products/buyable?size=10&page_number=1’ \
–header ‘Content-Type: application/json’ \
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJQYy01OHZMNmhMVzhMVkhuZ2U2MExyT25yZXl6UlZhMFJ0TXB2TXlxa3E4In0.eyJleHAiOjE2OTgyMTc2NzgsImlhdCI6MTY5ODIxNDA3OCwiYXV0aF90aW1lIjoxNjk3NzgzODEyLCJqdGkiOiI0MGE1ODA5My05ZTgxLTRkYjYtODJkZS03YmExODgwN2NiYzciLCJpc3MiOiJodHRwczovL2xvZ2luLXFhLmVuc3VyZWRpdC5jb20vYXV0aC9yZWFsbXMvZW5zdXJlZGl0LXNwcmludCIsImF1ZCI6WyJjb21taXNzaW9ucyIsIm1pcyIsImVuY2hhdCIsImFjY291bnQiXSwic3ViIjoiNWZlZmMzNjMtN2ViOC00MWJjLTkyOWItMzE1NTlmYjdmNDYwIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoiZW5iZWQiLCJzZXNzaW9uX3N0YXRlIjoiNzYyMDY1NDctYzU2Ny00ZjM5LTlkZDktNzM2ZWE0MjMxMTc5IiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyIvKiJdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsib2ZmbGluZV9hY2Nlc3MiLCJ1bWFfYXV0aG9yaXphdGlvbiIsImRlZmF1bHQtcm9sZXMtZW5zdXJlZGl0LXNwcmludCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImNvbW1pc3Npb25zIjp7InJvbGVzIjpbImNvbW1pc3Npb25zX29yZ2FuaXNhdGlvbl9vd25lciJdfSwibWlzIjp7InJvbGVzIjpbInRlc3RfaGVsbG8iLCJtaXNfb3JnYW5pc2F0aW9uX293bmVyIiwibWlzXzJlYjI2MmE0LWI4ZTItNDMzYi05YWVkLTBiOTg2OTcwYjk2Yl9hYmMiXX0s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Sfs6X0e7ITCrGAaxXvZo2ZYDCePiTOclYzX0RQuUnH659rP6Ag0vWmeE3tWhiOeTqKDzH3EgC_gfjvxRPh2rgHYUCRa_8ZpsmGnl5Mb-ivdsQliP_sRBBSPOShgmAzs9Y9vJWH1ovEA7frI4AaJ_KsGyLtD9MPEKmW2JnLjF0oSnR871XhFGcvnfAeTJIskCWoG1RJz-x3inJtWragd8XHX7OWyKFwOV1z6U4QQV0t4kXFNnjPGF_Hr8knG_G6XiNRHA08Zotb2mjlQXKYQC9ZSy_GK5obNCltIlyZfxoo4VbWQ6cPZC9Q’ \
–data ‘{
“search”:””,
“pre_quote”: {
“TAD_OR_MAD”: “TAD”,
“AGE”: “20”,
“REPAYMENT_CYCLE”: “30”,
“REPAYMENT_AMOUNT”: “1000”,
“MOBILE_NUMBER”: “7426876XXXX”
},
“include_actual_price”: true,
“include_benefits”: false
}
‘
Name | Type | Description | Required |
---|---|---|---|
id | uuid-string | Product Id | Yes |
Successful Response:
- Status Code: 200 OK
{
“benefits”: [
{
“id”: “3bad20d8-a67d-47c6-a410-82909a48c446”,
“benefit”: “Accidental Death Benefit upto ₹1,00,000”,
“description”: “Common Sum Insured Accidental Death Benefit and Permanent Partial Disability.”,
“included”: true
},
{
“id”: “dcb44240-17db-42e7-9de3-71ea9c402981”,
“benefit”: “Permanent Total Disability upto ₹1,00,000”,
“description”: “Permanent Total Disability”,
“included”: true
},
{
“id”: “153f7f91-7d58-4e6c-a8c5-77179d302292”,
“benefit”: “Permanent Partial Disability upto ₹1,00,000”,
“description”: “”,
“included”: true
},
{
“id”: “8059a8d1-31bc-408c-8647-0cc91b3142e0”,
“benefit”: “EMI Protection (Maximum up to ₹ 10,000)”,
“description”: “If an Insured Person is unable to pay the EMI Amounts payable under his/her Loan due to an Illness or Injury, as specified in the Policy Schedule / Certificate of Insurance, suffered or contracted during the\nCoverage Period , then We will pay an amount equal to the EMI Amount which is due on the Insured’s outstanding Loan in the number of months immediately following the date of such occurrence, as is\nspecified in the Policy Schedule / Certificate of Insurance, subject to this amount not exceeding the amount specified in the Policy Schedule / Certificate of Insurance.”,
“included”: true
}
]
}
curl –location ‘https://api-uat.ensuredit.com/enbed/v1/products/b1bdb902-8524-4f13-8483-033e094bd8aa/benefits’ \
–header ‘Authorization: Bearer token’
{
“product_id”: “f7f66e47-1650-4382-92d9-f6778d7392f2”,
“proposal_form”: {
“CUSTOMER_ID”: “12345”,
“FULL_NAME”: “Rajesh Kumar”,
“MOBILE_NUMBER”: “9876543210”,
“EMAIL”: “rajesh@example.com”,
“STATE”: “Karnataka”,
“PINCODE”: “560001”,
“CITY”: “Bangalore”,
“ADDRESS”: “456 Gandhi Nagar”,
“GENDER”: “Male”,
“OCCUPATION”: “Software Engineer”,
“DATE_OF_BIRTH”: “Jan 2, 2006”,
“ACCOUNT_NUMBER”: “8765432109”,
“ACCOUNT_IFSC”: “ICIC0001234”,
“ACCOUNT_CATEGORY”: “Savings”,
“NOMINEE_NAME”: “Priya Kumar”,
“NOMINEE_DOB”: “Jan 2, 2006”,
“NOMINEE_RELATIONSHIP”: “Spouse”,
“NOMINEE_MOBILE_NUMBER”: “9876543211”,
“START_DATE”: “Jan 2, 2006”,
“END_DATE”: “Jan 2, 2006”,
“HOSPICASH_AMOUNT”: 9000
}
}
Name | Type | Required | Default | Remark |
---|---|---|---|---|
product_id | string | Yes | – | Id of product |
proposal_form.CUSTOMER_ID | string | No | – | Customer ID |
proposal_form.FULL_NAME | string | Yes | – | Name should only contains alphabets |
proposal_form.MOBILE_NUMBER | string | Yes | – | Mobile Number should be of 10 digits |
proposal_form.EMAIL | string | Yes | – | Regex Valid Email |
proposal_form.STATE | string | Yes | – | State – ["RAJASTHAN","HARYANA", ...] |
proposal_form.CITY | string | Yes | – | City – ["MUMBAI", "NEW DELHI", ...] |
proposal_form.ADDRESS | string | No | – | Address |
proposal_form.PINCODE | string | Yes | – | Pincode |
proposal_form.GENDER | string | No | – | Gender – ["Male", "Female", "Other"] |
proposal_form.OCCUPATION | string | No | – | Occupation |
proposal_form.DATE_OF_BIRTH | date | Yes | – | Age should greater than 18 (Ex: Dec 01, 1997 ) |
proposal_form.ACCOUNT_NUMBER | string | No | – | Account Number should only contain digits |
proposal_form.ACCOUNT_IFSC | string | No | – | Account IFSC |
proposal_form.ACCOUNT_CATEGORY | string | No | – | Account Category |
proposal_form.NOMINEE_NAME | string | No | – | Name should only contains alphabets |
proposal_form.NOMINEE_DATE_OF_BIRTH | date | No | – | Nominee Date of Birth (Month Short Name DD, YYYY ) |
proposal_form.NOMINEE_RELATIONSHIP | string | No | – | Nominee Relationship – ["Father", "Mother", "Spouse", "Son", "Daughter", "Friend", "Other"] |
proposal_form.NOMINEE_MOBILE_NUMBER | string | No | – | Mobile Number should be of 10 digits |
proposal_form.START_DATE | date | Yes | – | Start Date of Policy / Loan (Ex: Jan 06, 2001 ) |
proposal_form.END_DATE | date | Yes | – | End Date of Policy / Loan (Ex: Sept 20, 2021 ) |
proposal_form.HOSPICASH_AMOUNT | int | No | 0 | Hospicash Amount |
proposal_form.LOAN_PROVIDER_ID | string | No | – | Loan Provider ID |
proposal_form.LOAN_PROVIDER_NAME | string | No | – | Loan Provider Name |
proposal_form.LOAN_AMOUNT | int | No | 0 | Loan Amount |
proposal_form.EMI_AMOUNT | int | No | 0 | EMI Amount |
proposal_form.LOAN_TENURE_IN_MONTHS | int | Yes | 1 | Loan tenure(in months) |
proposal_form.LOAN_TYPE | string | No | – | Loan Type |
proposal_form.FAMILY_TYPE | string | No | – | Family Type |
Successful Response:
- Status Code: 200 OK
{
“id”: “24c98711-9999-4869-9399-0baa4fa8fe21”,
“status”: “PROPOSAL_SUBMITTED”,
“amount”: 81
}
curl –location ‘https://api-uat.ensuredit.com/enbed/v1/policy-stores’ \
–header ‘Content-Type: application/json’ \
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJIWmdaN0JvTUJzSU1qcjJ0ZDA1dW5ac04wY0taaklrODI3NH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iZW1haWwiOiJjaGFuZHJpa2EuYnVsdXN1QHBheXVmaW4uY29tIn0.LqcVQWxenDBtQf1qlaBq1vBIVe-6FeV5BbYMQLS4jxsKO43vEuyJSSdLsLmZ0xRhpOLVXOdBiYyI2RVQqM3ASX9KQROJuIYyv8C3lxc8bF-sM0v1G_iZN8k3a34wUT04aT45_84bXt6g-IZA8nX8CxnkK4wO2RZqY6JWwlT3jJaDITbNHkYEq-9GYhrdRxrMoDxBOXul1Mt6382gFPBgiTS4xW6rR-KivXRyhZB2OHUVu1ck8Aai4pW-eeNrVKw9PECSAlcRGC2Zy4XfefxIQlH2YWSk7b7MVTCTEQm_PZPjJ-AT4ZALrz3hHAGZgBmlwQrllUPlAtbDHD65Mx-NWw’ \
–data-raw ‘{
“product_id”: “f7f66e47-1650-4382-92d9-f6778d7392f2”,
“proposal_form”: {
“CUSTOMER_ID”: “12345”,
“FULL_NAME”: “Rajesh Kumar”,
“MOBILE_NUMBER”: “9876543210”,
“EMAIL”: “rajesh@example.com”,
“STATE”: “Karnataka”,
“PINCODE”: “560001”,
“CITY”: “Bangalore”,
“ADDRESS”: “456 Gandhi Nagar”,
“GENDER”: “Male”,
“OCCUPATION”: “Software Engineer”,
“DOB”: “Jan 2, 2006”,
“ACCOUNT_NUMBER”: “8765432109”,
“ACCOUNT_IFSC”: “ICIC0001234”,
“ACCOUNT_CATEGORY”: “Savings”,
“NOMINEE_NAME”: “Priya Kumar”,
“NOMINEE_DOB”: “Jan 2, 2006”,
“NOMINEE_RELATIONSHIP”: “Spouse”,
“NOMINEE_MOBILE_NUMBER”: “9876543211”,
“START_DATE”: “Jan 2, 2006”,
“HOSPICASH_AMOUNT”: 9000
}
}’
{
“policy_id”: “1134fada-1ef4-4916-aeae-0eedb67fe6ba”,
“payment_details”: {
“transaction_id”: “xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx”,
“amount”: 130
}
}
Successful Response:
- Status Code: 200 OK
{
“transactionId”: “xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx”,
“amount”: 130,
“certificateNumber”: “TEST_POLICY”
}
curl –location ‘https://api-uat.ensuredit.com/enbed/v1/products/buy/client’ \
–header ‘Content-Type: application/json’ \
–header ‘Authorization: Bearer token’ \
–data ‘{
“policy_id”: “1134fada-1ef4-4916-aeae-0eedb67fe6ba”,
“payment_details”: {
“transaction_id”: “xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx”,
“amount”: -20
}
}’
Query Path:
Name | Type | Description | Required |
---|---|---|---|
id | uuid-string | Policy Id (or Policy Store Id) | Yes |
Successful Response:
- Status Code: 200 OK
{
“url”:
}
curl –location ‘https://api-uat.ensuredit.com/enbed/v1/policy-stores/db730dd5-07da-4a81-b1c4-a98162133630/certificate/download’ \
–header ‘Authorization: Bearer token’
{
“policyId”: “24c98711-9999-4869-9399-0baa4fa8fe21”,
“payload” : {
“BANK_ACCOUNT_NUMBER”: “253749362649376”,
“BANK_ACCOUNT_HOLDER”: “Bitto Kumar”,
“BANK_ACCOUNT_IFSC”: “SBIN08838”
}
}
Successful Response:
- Status Code: 200 OK
{
“id”: “438f91cd-e6f4-4148-8384-da65f59ae3a7”,
“organizationId”: “d9c3ed3f-375d-4d10-9ee0-8078d53d5fdc”,
“policyId”: “24c98711-9999-4869-9399-0baa4fa8fe21”,
“refundAmount”: 81,
“status”: “IN_PROCESS”,
“createdAt”: “2023-10-06T11:25:25.497978Z”,
“updatedAt”: “2023-10-06T11:25:25.497978Z”
}
curl –location ‘https://api-uat.ensuredit.com/enbed/v1/cancellations’ \
–header ‘Content-Type: application/json’ \
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJIWmdaN0JvTUJzSU1qcjJ0ZDA1dW5ac04wY0taaklrODI3NHp3VkZoV3lRIn0.eyJleHAiOjE2OTY1OTI4MDQsImlhdCI6MTY5NjU5MTAwNCwiYXV0aF90aW1lIjoxNjk2NTkxMDAzLCJqdGkiOiI2NWZiMTJh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dWx1c3UiLCJlbWFpbCI6ImNoYW5kcmlrYS5idWx1c3VAcGF5dWZpbi5jb20ifQ.n8W8BogRhCzKYkvUg0SZEE8m0nkuM9tFHJlGrggJPBpy0QHJ16x_4nZhnYYA_kl3DpYyn_fDDBreMA_WbB8B9WNqrzZP7hh0LUVB7HtLS2bNpNNbZyg8A28Jst40iUTV20oKEeHAh5gwDPT4C_Xhr5dv_8wwbh5GjXrRpepcEtZC-CHShi_Gxg_6zPu_5r5jvmwySdlztKQJRtaRZarGaBuevSmDIxbeApvX4sWhPV8OQcCoTVuapUIQQuml86wJH7Gvzh8PcMaEou3yVVWqmxc-uPEEKG2wvUf7N1b5AoL5fvNzx4Iejl3vE0FHnaVNUYuOhoG6f4ogZIHRvDobEw’ \
–data ‘{
“policyId”: “24c98711-9999-4869-9399-0baa4fa8fe21”
}’
Query Path:
Name | Type | Description | Required |
---|---|---|---|
policyId | uuid-string | Policy Id (or Policy Store Id) | No |
policyNumber | string | Policy Number | No |
/cancellations?policyId=24c98711-9999-4869-9399-0baa4fa8fe21
Successful Response:
- Status Code: 200 OK
{
“cancellations”: [
{
“id”: “41543f8c-6a68-4123-9103-b0ddb97bad60”,
“organizationId”: “de60eeac-77b3-4585-aafa-c3cdb543a5f7”,
“policyId”: “24c98711-9999-4869-9399-0baa4fa8fe21”,
“refundAmount”: 109.200005,
“status”: “IN_PROCESS”,
“createdAt”: “2023-09-27T11:36:56.706870Z”,
“updatedAt”: “2023-09-27T11:36:56.706870Z”
}
]
}
curl –location ‘https://api-uat.ensuredit.com/enbed/v1/cancellations?policyId=24c98711-9999-4869-9399-0baa4fa8fe21’ \ –header ‘Content-Type: application/json’ \ –header ‘Authorization: Bearer token’ \ –data ”
HTTP Status Code:
- 200 OK: The request was successful.
- 400 Bad Request: There was a problem with the request.
- 404 Not Found: The requested resource couldn’t be found.
- 409 Conflict: FailedPrecondition
- 500 Internal Error: Internal Error.
Error Object:
It contains a field message of type string which contains the error message
{
“message”: “error_message”
}