Add a person on the draft
POST https://qover-sandbox.apigee.net/{country}/lifestyle/travel/drafts/{draftId}/persons
Parameter name | Value | Description | Additional |
---|---|---|---|
country | string | The country ISO code case insensitive Country code in ISO 3166-1 alpha-2 The currently countries for which a line of business is available are:
|
Required |
draftId | string | The Draft unique Id |
Required |
Parameter name | Value | Description | Additional |
---|---|---|---|
Qover-Api-Version | string | The version of the api. Currently only '1.0' is available. |
Required |
The request body takes a complete Create Person Body resource, containing the following writable properties:
{
"birthdate": "date",
"firstName": "string",
"lastName": "string",
"relation": "string",
"title": "string"
}
Name | Type | Description | Additional |
---|---|---|---|
birthdate | date |
ISO 8601 Calendar dates format YYYY-MM-DD |
Optional |
firstName | string | Optional | |
lastName | string | Optional | |
relation | string |
Identify if the insuredPerson is a child or an adult Possible values are:
|
Optional |
title | string |
Possible values are:
|
Optional |
The following HTTP status codes may be returned, optionally with a response resource.
Status code | Description | Resource | ||||||
---|---|---|---|---|---|---|---|---|
200 | OK Ok: Operation Successful Headers returned
|
Insured Person (travel) | ||||||
400 | Bad Request Bad Request: The requested operation cannot be perfomed as the request is badly formatted or failed validation. |
Business Rule Error | ||||||
401 | Unauthorized Unauthorized: The authentication failed or is missing |
|||||||
403 | Forbidden Forbidden: You do not have the right to perform this operation |
|||||||
404 | Not Found Not Found: The requested ressource cannot be found |
|||||||
500 | Internal Server Error Internal Server error: The request could not processed due to a server error |
General Error |