The REST API is presently in the process of undergoing development and is not yet available as a service.
Orient Travel Care Policy API
Robust middleware stack supporting multiple implementation protocols. Integrate using traditional enterprise **WCF SOAP services** with strict contract checking, or utilize lightweight, high-performance **REST JSON schemas** optimized for client-side web platforms and mobile applications.
Services/Account.svc
Services/Policy.svc
https://api.orientinsurance.lk/api/v1
Authorization: Bearer <jwt_access_token>
Request Parameters
| Parameter Name | Object Type | Required | Max Bounds | Comments & Constraints |
|---|---|---|---|---|
Core API Schema Definitions
Property types map transparently to either SOAP complex parameters or REST payload variables.
| Field Name | Data Type | Required | Max Bounds | Functional Rules / Comments |
|---|---|---|---|---|
System Enums & Code Lookup Matrices
Valid identity maps parsed directly from both SOAP responses and JSON fields.
| Value Id | Constant Code Name | Display / Plan Description |
|---|---|---|
Enterprise Setup Specifications
Critical runtime considerations depending on the protocol of your choice.
Mandatory TLS Configuration (Security Protocol Overrides)
Orient SOAP endpoints operate strictly via secure communication models. Clients must explicitly negotiate connections using TLS 1.2 protocols. Ensure this is invoked globally in your C# codebase before client initialization:
JSON Web Token (JWT) stateless Bearer Flow
The REST gateway uses stateless Bearer Authorization. To interact with protected endpoints (Policies, Certificates, Quotations):
- Submit credentials to the
/api/v1/account/user-detailsPOST login operation. - Extract the returned
tokenpayload string from the success response body. - Pass the token string in the Authorization header of all subsequent API calls.
- Policy benefit information, tax calculation parameters, and premium values are not true figures, and the API returns different results when queried.
- Replace the
YOUR_USERNAMEandYOUR_PASSWORDparameters with your account information.