Skip to main content

Insurance

Insurance

Postman Collection

URL

POST : /v1/service/insurance/generateOTT

Headers

Content-Type  (String)   required
application/json
Authorization  (String)   required
Basic Auth
Accept  (String)   required
application/json

Body Params

agentId  (String)   Required
Agent ID generated via Onboarding API

Request

Example Request
        curl --location --request POST '/v1/service/insurance/generateOTT' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic e3tsb2NfdXNlcn19Ont7bG9jX3Bhc3N9fQ==' \
--data-raw '{
"agentId" : "INS0123456789"
}'

Response Samples

{
"code":"0x0200",
"message":"Request send successfully",
"status":"SUCCESS",
"data":{
"redirectUrl":"https://.example.com/ott-pos?one-time-token=9f8bce720e1b40f19efeb"
}
}

Note : In redirectUrl, example.com will be replaced by the actual domain.

Response Code

Status CodeStatusMessage
0x0200SUCCESSTRANSACTION SUCCESSFULL
0x0201UNAUTHORIZEDUNAUTHORIZED USER
0x0202FAILUREFAILURE USER
0x0203MISSING_PARAMETERMISSING PARAMETER
0x0204CONNECTION_TIMEOUTCONNECTION TIMEOUT
0x0205SOMETHING_WENT_WRONGSOMETHING WENT WRONG
0x0206PENDINGTRANSACTION PENDING
0x02082FATWO FACTOR AUNTHENTICATION