Create Policy
V3
post /insurance/travel/v3/policies
This endpoint to create policy.
Request Header
Name | Type | Required | Description |
---|---|---|---|
authorization | string | Required | Bearer token |
content-type | string | Required | application/json |
Request Body
Name | Type | Required | Description |
---|---|---|---|
lang | string | Required |
Policy language
|
trans_no | string | Required |
Unique string that the client can create to track the current request call.
Min length: 10 Max length: 30 |
quotation_id | guid | Required | The quotation id is used for issuing the policy |
total_premium | decimal(18,2) | Required | Total premium according to quotation |
policy_holder | object | Required | Json object containing details of the Policy Holder |
travellers | array [object] | Required | Json array object containing details of the Traveller |
long_names | array [object] | Required | Json object containing details of the Array |
reference1 | string | Optional |
Reference text
Max length: 30 |
reference2 | string | Optional |
Reference text
Max length: 30 |
call_back | string | Optional | Callback URL is an address that a partner provides for AXA to POST back policy data |
transaction_by | string | Required | Globally unique identifier value of the user id Provided by AXA |
Example request
Response
Name | Type | Description |
---|---|---|
trans_no | string | Unique string the client made the request |
status | string |
Policy status
|
message | string | |
policies | array [object] | Json array object containing details of the Policy |
Example response
Policy Reference
Name | Type | Description |
---|---|---|
policy_id | guid | Policy id |
policy_no | string | Policy number |
policy_holder_name | string | Refer to policy holder by request |
traveller_name | string | Refer to traveller by request |
reference | string | Refer to traveller passport/citizen id by request |
downloads | array [object] | Json array object containing details of the Download |
links | array [object] | Json array object containing details of the Link |
Download Reference
Name | Type | Description |
---|---|---|
type | string |
Type of download
|
layer | string |
Type of layer
|
link | string | Hyperlink points to a whole document |
Link Reference
Name | Type | Description |
---|---|---|
method | string |
HTTP method
e.g. GET, PUT, POST |
rel | string |
Used to describe the action of a link
e.g. cancel_policy |
href | string | Endpoint to take action |
Array Reference
Name | Type | Required | Description |
---|---|---|---|
line | int | Required | Sequence number |
text | string | Required | Text is anything that conveys a set of meanings |
Policy Holder Reference
Name | Type | Required | Description |
---|---|---|---|
client_type | string | Required | Client Type
|
title_code | string | Conditional |
Title code
Refer to Master Title |
first_name | string | Conditional |
First name
Max length: 30 Condition: This field is required when "Client Type" is "P"
|
last_name | string | Conditional |
Last name
Max length: 30 Condition: This field is required when "Client Type" is "P"
|
birth_date | date | Required |
Date of birth e.g. 1985-09-27
Format: yyyy-mm-dd
|
gender | string | Required |
Type of gender
|
marital_code | string | Required |
Marital status
|
card_type | string | Required | Card Type
- This field must be "G" when client_type is "C" - This field must be "I" or "P" when client_type is "P" |
corporate_name1 | string | Conditional | Max length: 60 Condition: This field is required when client_type is "C"
|
corporate_name2 | string | Optional | Max length: 60 |
tax_id | string | Required | Max length: 20
|
branch | string | Conditional |
Branch name of customer company
Max length: 30 Note: If there is no branch, specify สำนักงานใหญ่ or Head Office Condition: This field is required when client_type is "C"
|
address_type | string | Required |
Address Type
|
address1 | string | Required | Address/Street Max length: 30 |
address2 | string | Optional | Max length: 30 |
postal_code | string | Required |
Postal code e.g. 12000
Refer to Master Postal code |
country_code | string | Required |
Country code (Based on ISO 3166)
Refer to Master Country |
nationality_code | string | Required |
Nationality code (Based on ISO 3166)
Refer to Master Nationality |
phone_number1 | string | Optional | |
phone_number2 | string | Optional | |
phone_number3 | string | Optional | |
string | Optional | Email address |
Traveller Reference
Name | Type | Required | Description |
---|---|---|---|
title_code | string | Conditional |
Title code
Refer to Master Title |
first_name | string | Conditional |
First name
Max length: 30 |
last_name | string | Conditional |
Last name
Max length: 30 |
birth_date | date | Required |
Date of birth e.g. 1985-09-27
Format: yyyy-mm-dd
|
gender | string | Required |
Type of gender
|
marital_code | string | Required |
Marital status
|
card_type | string | Required | Card Type
|
tax_id | string | Required | Max length: 20
|
address_type | string | Required |
Address Type
|
address1 | string | Required | Address Max length: 30 |
address2 | string | Optional | Max length: 30 |
postal_code | string | Required |
Postal code e.g. 12000
Refer to Master Postal code |
country_code | string | Required |
Country code (Based on ISO 3166)
Refer to Master Country |
nationality_code | string | Required |
Nationality code (Based on ISO 3166)
Refer to Master Nationality |
phone_number1 | string | Optional | |
phone_number2 | string | Optional | |
phone_number3 | string | Optional | |
string | Optional | Email address | |
domicile | string | Required | Country code (Based on ISO 3166)
Refer to Master Country |
pre_existing_disease | string | Optional | Pre-existing disease |
occupation_code | string | Optional | a job or profession. Refer to Master Occupation |
beneficiaries | array[object] | Optional | Json array object containing details of the Beneficiary |
Beneficiary Reference
Name | Type | Required | Description |
---|---|---|---|
line | int | Required | Sequence number |
name | string | Required |
Beneficiary person's name
Max length: 50 |
relation_code | string | Required |
A person who is connected by blood or marriage; a kinsman or kinswoman. Refer to Master Relation |
ratio | int | Required |
Beneficiary Ratio
Condition: The sum of all beneficiaries' ratios must be 100.
|
tel | string | Optional |