# Data services Provides service methods to retrieve general data. * **Type**: SOAP * **Production WSDL**: https://services.generali.gr/gbox-ws/soap/v1/data?wsdl * **Test WSDL**: http://www.generali.gr/gbox-ws/soap/v1/data?wsdl * **Demo WSDL**: http://www.generali.gr/gbox-ws/soap/demo/v1/data?wsdl Methods * [listGenders](#listGenders) * [listEmployments](#listEmployments) * [listMedicalSpecialties](#listMedicalSpecialties) * [listMaritalStatuses](#listMaritalStatuses) * [listPaymentFrequencies](#listPaymentFrequencies) * [listProtectionMeasures](#listProtectionMeasures) * [listSupportingDocumentTypes](#listSupportingDocumentTypes) * [listProductParam](#listProductParam) * [listMotorManufacturers](#listMotorManufacturers) * [listMotorModelsWithRetailPrice](#listMotorModelsWithRetailPrice) * [listMotorModels](#listMotorModels) * [listType1](#listType1) * [listHospitalizations](#listHospitalizations) * [listOperations](#listOperations) * [listMorals](#listMorals) * [listDiseaseGravities](#listDiseaseGravities) * [listInsuranceTypes](#listInsuranceTypes) * [listDamageTypes](#listDamageTypes) ## General ## Most methods have the same signature, described as follows: ### Input Type | Description ---- | ----------- *(nothing)* | *---* ``` <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://soap.ws.api.gbox.generali.gr/"> <soapenv:Header/> <soapenv:Body> <soap:listGenders/> </soapenv:Body> </soapenv:Envelope> ``` ### Output Type | Description | Example ---- | ----------- List[ParamInfo] | see *(General considerations)* | List[ ParamInfo["001", "MERCEDES"], ParamInfo["002", "AUDI"] ``` <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:listGendersResponse xmlns:ns2="http://soap.ws.api.gbox.generali.gr/"> <return> <code>1</code> <description>Male</description> </return> <return> <code>2</code> <description>Female</description> </return> <return> <code>3</code> <description>Company</description> </return> </ns2:listGendersResponse> </S:Body> </S:Envelope> ``` ## listGenders <a name="listGenders"></a> List gender parameters. This is a closed set. * **Male**: 1 * **Female**: 2 * **Company**: 3 ## listEmployments <a name="listEmployments"></a> Lists employments. ## listMedicalSpecialties <a name="listMedicalSpecialties"></a> Lists medical specialties ## listMaritalStatuses <a name="listMaritalStatuses"></a> Lists marital statuses. ## listPaymentFrequencies <a name="listPaymentFrequencies"></a> Lists payment frequencies. ## listProtectionMeasures <a name="listProtectionMeasures"></a> Lists protection measures. ## listSupportingDocumentTypes <a name="listSupportingDocumentTypes"></a> Lists the types of the supporting documents. ## listMotorManufacturers <a name="listMotorManufacturers"></a> Lists motor manufacturers ## listProductParam <a name="listProductParam"></a> Lists the params. ### Input Field | Type | Value | Required/Optional | Description | Example ----- | ---- | ----- | ----------------- | ----------- | ------- type | String | **GGY:** For deductible **102**: For sumInsured | Required | The type of the parameter | "GGY" ### Example #### Input ``` <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://v1.soap.ws.api.gbox.generali.gr/"> <soapenv:Header/> <soapenv:Body> <v1:listProductParam> <type>GGY</type> </v1:listProductParam> </soapenv:Body> </soapenv:Envelope> ``` #### Output ``` <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:listProductParamResponse xmlns:ns2="http://v1.soap.ws.api.gbox.generali.gr/"> <return> <code>701</code> <description>Απαλλαγή 300</description> </return> <return> <code>702</code> <description>Απαλλαγή 1.000</description> </return> <return> <code>703</code> <description>Απαλλαγή 1.500</description> </return> </ns2:listProductParamResponse> </S:Body> </S:Envelope> ``` ## listMotorManufacturers <a name="listMotorManufacturers"></a> ## Lists all the available motor manufacturers. ## listMotorModelsWithRetailPrice <a name="listMotorModelsWithRetailPrice"></a> ## Lists motor models, including their retail price, that match the input criteria (filters). ### Input Field | Type | Value | Required/Optional | Description | Example ----- | ---- | ----- | ----------------- | ----------- | ------- manufacturerCode | String | listMotorManufacturers(): code | Required | The manufacturer code | "003" year | Integer | Integer | Required | The year of production of the motor | 2010 first | Integer | Integer | Optional | The index of the first record to be take, *default is 0* | 5 max | Integer | Integer | Optional | The max number of records to be retrieved, *default is 100* | 10 filter | MotorModelFilter | MotorModelFilter | Optional | The criteria used in order to filter the result set | *(see example)* #### MotorModelFilter Field | Type | Value | Required/Optional | Description | Example ----- | ---- | ----- | ----------------- | ----------- | ------- type1 | String | Pattern (using % as variable parts) | Optional | The pattern to match the type1 against | %FSi% type2 | String | Pattern (using % as variable parts) | Optional | The pattern to match the type2 against | A3% chassisType | String | Pattern (using % as variable parts) | Optional | The pattern to match the chassis against | Χάτσμπακ engCc | Integer | Integer | Optional | The engine's cubic centimiters | 1598 engPowerKw | Integer | Integer | Optional | The engine's power in Kw | 85 engPowerHp | Integer | Integer | Optional | The engine's power in Hp | 115 taxHp | Integer | Integer | Optional | The tax engine Hp | 11 doors | Integer | Integer | Optional | The number of doors | 5 ### Output Type | Value | Description | Example ---- | ----- | ------------| ------- List[MotorModelInfo] | List[MotorModelInfo] | The list of resulting motor models | *(see below)* #### MotorModelInfo Field | Type | Value | Description | Example ----- | ---- | ----- | ----------- | ------- code | String | Numerical | The Eurotax code of the motor | 33502 manufacturerCode | String | Numerical | The manufacturer code | 00013 manufacturerDescription | String | String | The manufacturer description | HYUNDAI type1 | String | String | First classification level | A3 SB 1.6 16v FSi type2 | String | String | Second classification level | Attraction chassisType | String | String | The type of chassis | Χάτσμπακ engCc | Integer | Integer | The engine's cubic centimiters | 1598 engPowerKw | Integer | Integer | The engine's power in Kw | 85 engPowerHp | Integer | Integer | The engine's power in Hp | 115 taxHp | Integer | Integer | The tax engine Hp | 11 doors | Integer | Integer | The number of doors | 5 beginDate | Date | Date | The commercialization begin date | 2006-12-06 endDate | Date | Date | The commercialization end date | 2013-01-05 co2Emission | Integer | Integer | The co2 emission | 158 retailPrice | Integer | Integer | The suggested current price | 8810.00 ### Example 1 #### Input ``` <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://v1.soap.ws.api.gbox.generali.gr/"> <soapenv:Header/> <soapenv:Body> <v1:listMotorModelsWithRetailPrice> <manufacturerCode>00004</manufacturerCode> <year>2010</year> <first>0</first> <max>3</max> <filter> <type1>%FSi%</type1> <doors>5</doors> <engPowerKw>85</engPowerKw> <engPowerHp>115</engPowerHp> </filter> </v1:listMotorModelsWithRetailPrice> </soapenv:Body> </soapenv:Envelope> ``` #### Output ``` <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:listMotorModelsWithRetailPriceResponse xmlns:ns2="http://v1.soap.ws.api.gbox.generali.gr/"> <return> <code>33502</code> <manufacturerCode>00004</manufacturerCode> <manufacturerDescription>AUDI</manufacturerDescription> <type1>A3 SB 1.6 16v FSi</type1> <type2>Attraction</type2> <doors>5</doors> <beginDate>2004-10-01T00:00:00+03:00</beginDate> <endDate>2010-02-01T00:00:00+02:00</endDate> <chassisType>Χάτσμπακ</chassisType> <engCc>1598</engCc> <engPowerKw>85</engPowerKw> <engPowerHp>115</engPowerHp> <taxHp>11</taxHp> <co2Emission>158</co2Emission> <retailPrice>8720.00</retailPrice> </return> <return> <code>33515</code> <manufacturerCode>00004</manufacturerCode> <manufacturerDescription>AUDI</manufacturerDescription> <type1>A3 SB 1.6 16v FSi</type1> <type2>Ambition</type2> <doors>5</doors> <beginDate>2004-10-01T00:00:00+03:00</beginDate> <endDate>2010-02-01T00:00:00+02:00</endDate> <chassisType>Χάτσμπακ</chassisType> <engCc>1598</engCc> <engPowerKw>85</engPowerKw> <engPowerHp>115</engPowerHp> <taxHp>11</taxHp> <co2Emission>158</co2Emission> <retailPrice>9460.00</retailPrice> </return> </ns2:listMotorModelsWithRetailPriceResponse> </S:Body> </S:Envelope> ``` ### Example 2 #### Input ``` <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://v1.soap.ws.api.gbox.generali.gr/"> <soapenv:Header/> <soapenv:Body> <v1:listMotorModelsWithRetailPrice> <manufacturerCode>00004</manufacturerCode> <year>2013</year> <max>2</max> <filter> <type1>A4%</type1> <type2>%Quattro%</type2> </filter> </v1:listMotorModelsWithRetailPrice> </soapenv:Body> </soapenv:Envelope> ``` #### Output ``` <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:listMotorModelsWithRetailPriceResponse xmlns:ns2="http://v1.soap.ws.api.gbox.generali.gr/"> <return> <code>55550</code> <manufacturerCode>00004</manufacturerCode> <manufacturerDescription>AUDI</manufacturerDescription> <type1>A4 1.8 16v TFSi</type1> <type2>Quattro 170Hp</type2> <doors>4</doors> <beginDate>2012-01-01T00:00:00+02:00</beginDate> <chassisType>Σεντάν</chassisType> <engCc>1798</engCc> <engPowerKw>125</engPowerKw> <engPowerHp>170</engPowerHp> <taxHp>13</taxHp> <co2Emission>144</co2Emission> <retailPrice>26590.00</retailPrice> </return> <return> <code>55554</code> <manufacturerCode>00004</manufacturerCode> <manufacturerDescription>AUDI</manufacturerDescription> <type1>A4 2.0 16v TFSi</type1> <type2>Quattro</type2> <doors>4</doors> <beginDate>2012-01-01T00:00:00+02:00</beginDate> <endDate>2013-07-01T00:00:00+03:00</endDate> <chassisType>Σεντάν</chassisType> <engCc>1984</engCc> <engPowerKw>155</engPowerKw> <engPowerHp>211</engPowerHp> <taxHp>14</taxHp> <co2Emission>159</co2Emission> <retailPrice>28640.00</retailPrice> </return> </ns2:listMotorModelsWithRetailPriceResponse> </S:Body> </S:Envelope> ``` ## listMotorModels <a name="listMotorModels"></a> ## Lists motor models, without their retail price, that match the input criteria (filters). ### Input Field | Type | Value | Required/Optional | Description | Example ----- | ---- | ----- | ----------------- | ----------- | ------- manufacturerCode | String | listMotorManufacturers(): code | Required | The manufacturer code | "003" first | Integer | Integer | Optional | The index of the first record to be take, *default is 0* | 5 max | Integer | Integer | Optional | The max number of records to be retrieved, *default is 100* | 10 filter | MotorModelFilter | MotorModelFilter | Optional | The criteria used in order to filter the result set | *(see above)* ### Output Is the same as in [listMotorModelsWithRetailPrice](#listMotorModelsWithRetailPrice), without the retailPrice. ## listType1 <a name="listType1"></a> ## Lists all the type1 (descriptions) of a manufacturer for a specific year Field | Type | Value | Required/Optional | Description | Example ----- | ---- | ----- | ----------------- | ----------- | ------- manufacturerCode | String | listMotorManufacturers(): code | Required | The manufacturer code | "003" year | Integer | Integer | Required | The manufacturer year | 2012 ### Output Type | Value | Description | Example ---- | ----- | ------------| ------- List[String] | List[String] | A list with all the type1 | ### Example *Input* ``` <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://v1.soap.ws.api.gbox.generali.gr/"> <soapenv:Header/> <soapenv:Body> <v1:listType1> <manufacturerCode>00003</manufacturerCode> <year>2013</year> </v1:listType1> </soapenv:Body> </soapenv:Envelope> ``` *Output* ``` <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:listType1Response xmlns:ns2="http://v1.soap.ws.api.gbox.generali.gr/"> <return>Giulietta 1.4 16v TBi</return> <return>Giulietta 1.4 16v TBi Multiair</return> <return>Giulietta 1.75 16v TBi</return> <return>Giulietta 1.6 JTD</return> <return>Giulietta 2.0 JTD</return> <return>MiTo 1.4i 16v Turbo Multiair</return> <return>MiTo 1.4i 16v Turbo Multiair</return> <return>Giulietta 1.4 16v TBi Multiair</return> <return>Giulietta 2.0 JTDM-2</return> <return>MiTo 1.4i 8v</return> <return>MiTo 1.4i 8v</return> <return>MiTo 1.4i 8v</return> <return>MiTo 1.4i 16v Multiair</return> <return>MiTo 1.4i 16v Multiair</return> <return>MiTo 1.4i 16v Multiair</return> <return>MiTo 1.4i 16v Turbo</return> <return>MiTo 1.4i 16v Turbo</return> <return>MiTo 1.3 JTDM-2 85Hp</return> <return>MiTo 1.3 JTDM-2</return> <return>MiTo 1.3 JTDM-2 85Hp</return> <return>MiTo 1.3 JTDM-2 85Hp</return> <return>Giulietta 1.4 16v</return> <return>Giulietta 1.4 16v TBi</return> <return>Giulietta 1.4 16v TBi Multiair</return> <return>Giulietta 1.6 JTD</return> <return>Giulietta 1.6 JTD</return> <return>MiTo 0.9i 8v Twinair</return> <return>MiTo 1.4i 16v Turbo</return> <return>Giulietta 1.4 16v TBi</return> <return>Giulietta 1.6 JTD</return> <return>MiTo 1.4i 16v Multiair</return> <return>MiTo 1.3 JTDM-2</return> <return>MiTo 1.4i 8v</return> <return>MiTo 1.4i 8v</return> <return>MiTo 0.9i 8v Twinair</return> <return>MiTo 0.9i 8v Twinair</return> <return>MiTo 1.4i 16v Turbo Multiair</return> <return>MiTo 1.3 JTDM-2 85Hp</return> <return>MiTo 1.3 JTDM-2 85Hp</return> <return>MiTo 1.3 JTDM-2</return> <return>MiTo 1.4i 16v Turbo</return> <return>Giulietta 1.4 16v TBi</return> <return>Giulietta 1.4 16v TBi</return> <return>Giulietta 1.4 16v TBi Multiair</return> <return>Giulietta 1.4 16v TBi Multiair</return> <return>Giulietta 1.75 16v TBi</return> <return>Giulietta 1.75 16v TBi</return> <return>Giulietta 1.6 JTD</return> <return>Giulietta 1.6 JTD</return> <return>Giulietta 2.0 JTD</return> <return>Giulietta 2.0 JTD</return> <return>4C 1.75 16v Tbi</return> </ns2:listType1Response> </S:Body> </S:Envelope> ``` ## listHospitalizations <a name="listHospitalizations"></a> Lists hospitalizations. ## listOperations <a name="listOperations"></a> Lists operations. ## listMorals <a name="listMorals"></a> Lists moral types. ## listDiseaseGravities <a name="listDiseaseGravities"></a> Lists disease gravities. ## listInsuranceTypes <a name="listInsuranceTypes"></a> Lists insurance types. ## listDamageTypes <a name="listDamageTypes"></a> Lists damage types.