Insurance
Summary
This API returns customer’s source accounts eligible for insurance booking.
Want to try this API out on our Playground?
Go play nowpost /v1/insurance/bookings | Book Customer Insurance |
get /v1/insurance/bookings/sourceAccounts | Retrieve Eligible Source Account |
post /v1/insurance/bookings/withOfflinePayments | Book Customer Insurance With Offline Payment |
get /partner/v1/insurance/customers/risks | Retrieve Customer Insurance Profile details |
Book Customer Insurance
This API is used to book insurance for the customer.
- cURL
- Ruby
- Python
- PHP
- Java
- Node
- Go
- Swift
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
fatal | invalidRequest | Missing or invalid parameters |
error | insufficientFund | Insufficient fund |
error | tempServiceSuspensionDueToNaturalCalamity | Temporary service suspension due to natural calamities |
error | invalidAccountStatus | Account status is invalid |
-
type
- Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again
- enum : error, warn, invalid, fatal
- type : string
-
code
- Error code which qualifies the error
- type : string
-
details
- Human readable explanation specific to the occurrence of the problem
- type : string
-
location
- The name of the field that resulted in the error
- type : string
-
moreInfo
- URI to human readable documentation of the error
- type : object
-
required
- type
- code
{
"properties": {
"type": {
"description": "Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again",
"enum": [
"error",
"warn",
"invalid",
"fatal"
],
"type": "string"
},
"code": {
"description": "Error code which qualifies the error",
"type": "string"
},
"details": {
"description": "Human readable explanation specific to the occurrence of the problem",
"type": "string"
},
"location": {
"description": "The name of the field that resulted in the error",
"type": "string"
},
"moreInfo": {
"description": "URI to human readable documentation of the error",
"type": "object"
}
},
"required": [
"type",
"code"
]
}
error | unAuthorized | Authorization credential is missing or invalid |
-
type
- Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again
- enum : error, warn, invalid, fatal
- type : string
-
code
- Error code which qualifies the error
- type : string
-
details
- Human readable explanation specific to the occurrence of the problem
- type : string
-
location
- The name of the field that resulted in the error
- type : string
-
moreInfo
- URI to human readable documentation of the error
- type : object
-
required
- type
- code
{
"properties": {
"type": {
"description": "Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again",
"enum": [
"error",
"warn",
"invalid",
"fatal"
],
"type": "string"
},
"code": {
"description": "Error code which qualifies the error",
"type": "string"
},
"details": {
"description": "Human readable explanation specific to the occurrence of the problem",
"type": "string"
},
"location": {
"description": "The name of the field that resulted in the error",
"type": "string"
},
"moreInfo": {
"description": "URI to human readable documentation of the error",
"type": "object"
}
},
"required": [
"type",
"code"
]
}
error | accessNotConfigured | Access is not configured for this resource |
error | mfaRequired | MFA is required |
error | transactionDenied | Transaction is denied |
-
type
- Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again
- enum : error, warn, invalid, fatal
- type : string
-
code
- Error code which qualifies the error
- type : string
-
details
- Human readable explanation specific to the occurrence of the problem
- type : string
-
location
- The name of the field that resulted in the error
- type : string
-
moreInfo
- URI to human readable documentation of the error
- type : object
-
required
- type
- code
{
"properties": {
"type": {
"description": "Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again",
"enum": [
"error",
"warn",
"invalid",
"fatal"
],
"type": "string"
},
"code": {
"description": "Error code which qualifies the error",
"type": "string"
},
"details": {
"description": "Human readable explanation specific to the occurrence of the problem",
"type": "string"
},
"location": {
"description": "The name of the field that resulted in the error",
"type": "string"
},
"moreInfo": {
"description": "URI to human readable documentation of the error",
"type": "object"
}
},
"required": [
"type",
"code"
]
}
fatal | serverUnavailable | The request failed due to an internal error |
-
type
- Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again
- enum : error, warn, invalid, fatal
- type : string
-
code
- Error code which qualifies the error
- type : string
-
details
- Human readable explanation specific to the occurrence of the problem
- type : string
-
location
- The name of the field that resulted in the error
- type : string
-
moreInfo
- URI to human readable documentation of the error
- type : object
-
required
- type
- code
{
"properties": {
"type": {
"description": "Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again",
"enum": [
"error",
"warn",
"invalid",
"fatal"
],
"type": "string"
},
"code": {
"description": "Error code which qualifies the error",
"type": "string"
},
"details": {
"description": "Human readable explanation specific to the occurrence of the problem",
"type": "string"
},
"location": {
"description": "The name of the field that resulted in the error",
"type": "string"
},
"moreInfo": {
"description": "URI to human readable documentation of the error",
"type": "object"
}
},
"required": [
"type",
"code"
]
}
Retrieve Eligible Source Account
This API returns customer’s source accounts eligible for insurance booking.
- cURL
- Ruby
- Python
- PHP
- Java
- Node
- Go
- Swift
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
-
sourceAccounts
-
-
sourceAccountId
- The primary identifier for ownership of an account.The source account identifier in encrypted format.
- type : string
-
displaySourceAccountNumber
- A masked account number/last four(4) digits of source account number that can be displayed to the customer
- type : string
-
sourceAccountCurrencyCode
- The currency code of the source account in ISO 4217 format
- type : string
-
accountGroup
- Account Group associated with the source Account. This is a reference data field. Please use /v1/utilities/referenceData/{accountGroup} resource to get valid value of this field with description.
- type : string
-
availableBalance
- The available balance including any pending or in progress deposits and withdrawals
- type : number
- format : double
-
localCurrencyAvailableBalance
- Available balance in local currency. Applicable only if the source account is in foreign currency.
- type : number
- format : double
-
localCurrencyCode
- The currency code for local country in ISO 4217 format. Applicable only if the source account is in foreign currency.
- type : string
-
sourceAccountId
-
-
nextStartIndex
- The start index of the next subset of payees.
- type : string
Type | Code | Details |
Success | No Content |
-
type
- Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again
- enum : error, warn, invalid, fatal
- type : string
-
code
- Error code which qualifies the error
- type : string
-
details
- Human readable explanation specific to the occurrence of the problem
- type : string
-
location
- The name of the field that resulted in the error
- type : string
-
moreInfo
- URI to human readable documentation of the error
- type : object
-
required
- type
- code
Type | Code | Details |
invalid | invalidRequest | Missing or invalid Parameters |
-
type
- Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again
- enum : error, warn, invalid, fatal
- type : string
-
code
- Error code which qualifies the error
- type : string
-
details
- Human readable explanation specific to the occurrence of the problem
- type : string
-
location
- The name of the field that resulted in the error
- type : string
-
moreInfo
- URI to human readable documentation of the error
- type : object
-
required
- type
- code
{
"properties": {
"type": {
"description": "Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again",
"enum": [
"error",
"warn",
"invalid",
"fatal"
],
"type": "string"
},
"code": {
"description": "Error code which qualifies the error",
"type": "string"
},
"details": {
"description": "Human readable explanation specific to the occurrence of the problem",
"type": "string"
},
"location": {
"description": "The name of the field that resulted in the error",
"type": "string"
},
"moreInfo": {
"description": "URI to human readable documentation of the error",
"type": "object"
}
},
"required": [
"type",
"code"
]
}
error | unAuthorized | Authorization credentials are missing or invalid |
-
type
- Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again
- enum : error, warn, invalid, fatal
- type : string
-
code
- Error code which qualifies the error
- type : string
-
details
- Human readable explanation specific to the occurrence of the problem
- type : string
-
location
- The name of the field that resulted in the error
- type : string
-
moreInfo
- URI to human readable documentation of the error
- type : object
-
required
- type
- code
{
"properties": {
"type": {
"description": "Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again",
"enum": [
"error",
"warn",
"invalid",
"fatal"
],
"type": "string"
},
"code": {
"description": "Error code which qualifies the error",
"type": "string"
},
"details": {
"description": "Human readable explanation specific to the occurrence of the problem",
"type": "string"
},
"location": {
"description": "The name of the field that resulted in the error",
"type": "string"
},
"moreInfo": {
"description": "URI to human readable documentation of the error",
"type": "object"
}
},
"required": [
"type",
"code"
]
}
error | accessNotConfigured | Access is not configured for this resource |
-
type
- Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again
- enum : error, warn, invalid, fatal
- type : string
-
code
- Error code which qualifies the error
- type : string
-
details
- Human readable explanation specific to the occurrence of the problem
- type : string
-
location
- The name of the field that resulted in the error
- type : string
-
moreInfo
- URI to human readable documentation of the error
- type : object
-
required
- type
- code
{
"properties": {
"type": {
"description": "Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again",
"enum": [
"error",
"warn",
"invalid",
"fatal"
],
"type": "string"
},
"code": {
"description": "Error code which qualifies the error",
"type": "string"
},
"details": {
"description": "Human readable explanation specific to the occurrence of the problem",
"type": "string"
},
"location": {
"description": "The name of the field that resulted in the error",
"type": "string"
},
"moreInfo": {
"description": "URI to human readable documentation of the error",
"type": "object"
}
},
"required": [
"type",
"code"
]
}
fatal | serverUnavailable | The request failed due to an internal error |
-
type
- Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again
- enum : error, warn, invalid, fatal
- type : string
-
code
- Error code which qualifies the error
- type : string
-
details
- Human readable explanation specific to the occurrence of the problem
- type : string
-
location
- The name of the field that resulted in the error
- type : string
-
moreInfo
- URI to human readable documentation of the error
- type : object
-
required
- type
- code
{
"properties": {
"type": {
"description": "Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again",
"enum": [
"error",
"warn",
"invalid",
"fatal"
],
"type": "string"
},
"code": {
"description": "Error code which qualifies the error",
"type": "string"
},
"details": {
"description": "Human readable explanation specific to the occurrence of the problem",
"type": "string"
},
"location": {
"description": "The name of the field that resulted in the error",
"type": "string"
},
"moreInfo": {
"description": "URI to human readable documentation of the error",
"type": "object"
}
},
"required": [
"type",
"code"
]
}
Book Customer Insurance With Offline Payment
This API is used to add insurance booking details of the customer without debiting the premium amount.
- cURL
- Ruby
- Python
- PHP
- Java
- Node
- Go
- Swift
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Type | Code | Details |
invalid | invalidRequest | Missing or invalid Parameters |
-
type
- Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again
- enum : error, warn, invalid, fatal
- type : string
-
code
- Error code which qualifies the error
- type : string
-
details
- Human readable explanation specific to the occurrence of the problem
- type : string
-
location
- The name of the field that resulted in the error
- type : string
-
moreInfo
- URI to human readable documentation of the error
- type : object
-
required
- type
- code
{
"properties": {
"type": {
"description": "Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again",
"enum": [
"error",
"warn",
"invalid",
"fatal"
],
"type": "string"
},
"code": {
"description": "Error code which qualifies the error",
"type": "string"
},
"details": {
"description": "Human readable explanation specific to the occurrence of the problem",
"type": "string"
},
"location": {
"description": "The name of the field that resulted in the error",
"type": "string"
},
"moreInfo": {
"description": "URI to human readable documentation of the error",
"type": "object"
}
},
"required": [
"type",
"code"
]
}
Type | Code | Details |
error | unAuthorized | Authorization credentials are missing or invalid |
-
type
- Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again
- enum : error, warn, invalid, fatal
- type : string
-
code
- Error code which qualifies the error
- type : string
-
details
- Human readable explanation specific to the occurrence of the problem
- type : string
-
location
- The name of the field that resulted in the error
- type : string
-
moreInfo
- URI to human readable documentation of the error
- type : object
-
required
- type
- code
{
"properties": {
"type": {
"description": "Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again",
"enum": [
"error",
"warn",
"invalid",
"fatal"
],
"type": "string"
},
"code": {
"description": "Error code which qualifies the error",
"type": "string"
},
"details": {
"description": "Human readable explanation specific to the occurrence of the problem",
"type": "string"
},
"location": {
"description": "The name of the field that resulted in the error",
"type": "string"
},
"moreInfo": {
"description": "URI to human readable documentation of the error",
"type": "object"
}
},
"required": [
"type",
"code"
]
}
Type | Code | Details |
error | accessNotConfigured | The request operation is not configured to access this resource |
error | mfaRequired | MFA is required |
error | transactiondenied | Transaction Denied |
-
type
- Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again
- enum : error, warn, invalid, fatal
- type : string
-
code
- Error code which qualifies the error
- type : string
-
details
- Human readable explanation specific to the occurrence of the problem
- type : string
-
location
- The name of the field that resulted in the error
- type : string
-
moreInfo
- URI to human readable documentation of the error
- type : object
-
required
- type
- code
{
"properties": {
"type": {
"description": "Invalid - Request did not confirm to the specification and was unprocessed and rejected. Please fix the value and try again",
"enum": [
"error",
"warn",
"invalid",
"fatal"
],
"type": "string"
},
"code": {
"description": "Error code which qualifies the error",
"type": "string"
},
"details": {
"description": "Human readable explanation specific to the occurrence of the problem",
"type": "string"
},
"location": {
"description": "The name of the field that resulted in the error",
"type": "string"
},
"moreInfo": {
"description": "URI to human readable documentation of the error",
"type": "object"
}
},
"required": [
"type",
"code"
]
}