Bulk Create or replace policy snapshots.
Changed onCf. summary
post/sales/individual/travel/v3/policy_snapshots/import
Request
- Base URLhttps://sandbox.api.axapartners.com
- URLhttps://sandbox.api.axapartners.com/sales/individual/travel/v3/policy_snapshots/import
- AuthOAuth 2Client credentialsToken URL: https://sandbox.auth.api.axapartners.com/oauth/token scopes: urn:axa.partners.sales.individual.travel.policy_snapshots.write
Request body
Example request
[
{
"policy_number": "3388509-86020",
"partner": {
"partner_name": "COOP1",
"partner_contract_number": "32",
"partner_id": "1"
},
"intermediary": {
"intermediary_name": "John"
},
"policy_information": {
"policy_type": "Single or multi-travel",
"policy_subtype": "Individual",
"purchase_date": "2019-08-09T10:24:59.9930000+00:00",
"inception_date": "2019-08-09T10:24:59.9930000+00:00",
"cancellation_date": "2019-09-09T10:24:59.9930000+00:00",
"cancellation_type": "NO_REASON",
"max_trip_duration": "P5Y8M4D",
"effective_period": {
"start_date": "2019-08-09T10:24:59.9930000+00:00",
"end_date": "2019-10-09T10:24:59.9930000+00:00"
}
},
"policy_holder": {
"nationality": "FR",
"phones": [
{
"international_prefix": "+44",
"number": "123456789"
}
],
"email": "jonathan.doe@mail.com",
"address": {
"street_address": "123 Some Street Name",
"postal_code": "75001",
"city": "PARIS",
"country": "FR"
},
"individual": {
"title": "MR",
"first_name": "Frank",
"last_name": "Bernado",
"birth_date": "1983-09-03",
"spoken_languages": [
"wo",
"tt",
"en"
]
}
},
"beneficiaries": [
{
"nationality": "FR",
"phones": [
{
"international_prefix": "+44",
"number": "123456789"
}
],
"email": "jonathan.doe@mail.com",
"address": {
"street_address": "123 Some Street Name",
"postal_code": "75001",
"city": "PARIS",
"country": "FR"
},
"individual": {
"title": "MR",
"first_name": "Frank",
"last_name": "Bernado",
"birth_date": "1983-09-03",
"spoken_languages": [
"wo",
"tt",
"en"
]
},
"medical_conditions": [
{
"condition_name": "Broken arm.",
"cover_period": {
"start_date": "2019-08-09T10:24:59.9930000+00:00",
"end_date": "2019-10-09T10:24:59.9930000+00:00"
}
}
],
"optional_covers": [
{
"optional_cover_name": "Winter Sports",
"external_reference": "Travel Security",
"external_reference_number": "651AB23",
"limit_amount": {
"value": 199.99,
"currency": "EUR"
},
"cover_period": {
"start_date": "2019-08-09T10:24:59.9930000+00:00",
"end_date": "2019-10-09T10:24:59.9930000+00:00"
}
}
]
}
]
}
]Response
Imported policy snapshots.
Example response
{
"updated_at": "2019-08-09T10:24:59.9930000+00:00",
"rejected_entries_count": 1,
"successfully_integrated_entries_count": 2,
"rejection_reasons": [
{
"reason": "'individual.nationality' value is not compliant with the ISO-3166-1 alpha-2 format codes."
}
]
}Changes
- info
endpoint added
- info