Allianz

Buy Allianz Travel Cover Insurance

Certain properties obtain their values from supplementary endpoints. Refer to the Auxiliary page for a list of these additional endpoints.

Buy Travel Cover

POST https://api.mycover.ai/v1/products/buy-travel

Request Body

NameTypeDescription

nok_full_name*

String

Next of kin full name

nok_address*

String

Next of kin address

nok_relationship*

String

Relationship with next of kin

title*

String

Your personal title e.g Chief.

Head over to the auxiliary section and GET titles.

gender*

Boolean

Customer's gender. Can be one of [Male, Female]

passport_number*

String

International passport number

first_name*

String

Customer's first name

last_name*

String

Customer's last name

email*

String

Customer's email

phone_number*

String

Customer's phone number

date_of_birth*

String

Customer's date of birth

departure_date*

String

This is the date you want the insurance and start (Departure date)

arrival_date*

String

This is the date you want the insurance to end (Return date)

destination*

String

The destination country. Head over to the auxiliary section and GET /countries.

product_id*

String

The product id. Head over to the products page and GET all produts.

address*

String

Customer's home address

state*

String

Your state of residence e.g Lagos State. Head over to the auxiliary section and GET states.

nationality*

String

Your country of residence e.g Nigeria. Head over to the auxiliary section and GET /countries.

occupation*

String

Customer's occupation

marital_status*

String

Customer's marital status. Can be any of [Single, Married, Divorced, Widowed, Separated]

nok_phone_number*

String

Next of kin phone number

num_of_passengers*

Number

How many people are traveling

{
    "responseCode": 1,
    "responseText": "Price computed successfully",
    "data": {
        "id": "5d283f0e-2abe-46c7-b931-ca4b5400dc54",
        "app_mode": "test",
        "active": true,
        "first_name": "Wale",
        "last_name": "Adenuga",
        "email": "lo.wale9023@gmail.com",
        "dob": "1996-03-11",
        "phone": "08034567891",
        "start_date": "2023-12-14T00:00:00.000Z",
        "expiration_date": "2024-12-14T00:00:00.000Z",
        "activation_date": "2023-12-14T00:00:00.000Z",
        "distributor_id": "92e39bc5-6110-4dcb-8583-bc50c2e6922b",
        "customer_id": "03130bc1-51aa-4dc6-9dcf-647b2e2b62d1",
        "buyer_id": "03130bc1-51aa-4dc6-9dcf-647b2e2b62d1",
        "product_id": "c0e104ad-0b8a-452f-a876-78bef8dde1db",
        "product_category_id": "f3933c0d-ef7c-4287-90bd-744cf00c8426",
        "provider_id": "63dbfce7-a743-47bd-bc49-b95703054aa1",
        "meta": {
            "payload": {
                "Email": "lo.wale9023@gmail.com",
                "Address": "32, Ajewole Street, Igando Road",
                "QuoteId": 26765,
                "StateId": 25,
                "Surname": "Adenuga",
                "TitleId": 7,
                "ZipCode": "100252",
                "GenderId": 1,
                "FirstName": "Wale",
                "NextOfKin": {
                    "Address": "32, Ajewole Street, Igando Road",
                    "FullName": "Kehinde Adenuga",
                    "Telephone": "09134526789",
                    "Relationship": "Wife"
                },
                "Telephone": "08034567891",
                "MiddleName": "Wale",
                "Occupation": "Business man",
                "PassportNo": "B50485649",
                "DateOfBirth": "11-Mar-1996",
                "Nationality": "Nigeria",
                "MaritalStatusId": 2,
                "MedicalCondition": null,
                "IdentificationPath": null,
                "PreExistingMedicalCondition": false
            },
            "policy_number": "VASNGS200000568",
            "certificate_url": null,
            "provider_policy_id": null
        },
        "genius_price": 2641,
        "market_price": 2641,
        "purchase_id": "bfaca5e5-fc33-470b-bb98-75e83ed3f6c6",
        "profit": 528.2,
        "submitted_to_provider": true,
        "updated_at": "2023-12-14T11:46:22.440Z",
        "created_at": "2023-12-14T11:46:22.440Z",
        "deleted_at": null,
        "inspection_id": null
    }
}
Sample Payload
{
    "first_name": "Wale",
    "last_name": "Adenuga",
    "phone_number": "08034567891",
    "email": "lo.wale9023@gmail.com",
    "gender": "Male",
    "date_of_birth": "1996-03-11",
    "title": "Chief",
    "address": "32, Ajewole Street, Igando Road",
    "state": "Lagos State",
    "nationality": "Nigeria",
    "passport_number": "B50485649",
    "occupation": "Businessman",
    "marital_status": "Married",
    "nok_full_name": "Kehinde Adenuga",
    "nok_address": "32, Ajewole Street, Igando Road",
    "nok_relationship": "Wife",
    "nok_phone_number": "09134526789",
    "departure_date": "2023-12-15",
    "arrival_date": "2023-12-16",
    "destination": "France",
    "num_of_passengers": 1,
    "product_id": "c0e104ad-0b8a-452f-a876-78bef8dde1db"
}

Compute Travel Premium

POST https://api.mycover.ai/v1/products/allianz/compute-travel-premium

This endpoint will calculate the premium for travel insurance.

Body

NameTypeDescription

email

string

Email address of the customer

phone_number

string

Customer's phone number

date_of_birth

string

Customer's date of birth

departure_date

string

Date of depature

arrival_date

string

Date of arrival

destination

string

Destination country

num_of_passengers

number

Number of passengers

product_id

string

The product id

Response

{
    "responseCode": 1,
    "responseText": "Price computed successfully",
    "data": 3932
}
// Sample payload
{
    "email": "testemail@gmail.com",
    "phone_number": "+2349055104478",
    "date_of_birth": "1997-03-11",
    "departure_date": "2024-07-28",
    "arrival_date": "2024-07-31",
    "destination": "Canada",
    "num_of_passengers": 1,
    "product_id": "c0e104ad-0b8a-452f-a876-78bef8dde1db"
}

Certain properties obtain their values from supplementary endpoints. Refer to the Auxiliary page for a list of these additional endpoints.

Last updated