#Motor web services
Provides service methods to handle the motor operations.
* **Type**: SOAP
* **Production WSDL**: https://services.generali.gr/soap/v2/motor?wsdl
* **Test WSDL**: https://services-test.generali.gr/soap/v2/motor?wsdl
Methods
* [getNoOfClaims](#getNoOfClaims)
* [getNoOfClaimsByDate](#getNoOfClaimsByDate)
* [issueGreenCard](#issueGreenCard)
##getNoOfClaims
Retrieves the number of blamable claims for a certain plate number.
###Input (MotorInsurableBase)
Field | Type | Value | Required/Optional | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
plateNo | String | String | required | The registration number of the vehicle | IXT1213
###Output
The output is the number of blamable claims.
###Example 1
*Input*
```
IBZ8972
```
*Output*
```
2
```
###Example 2
**Example with errors**
*Input*
```
```
*Output*
```
S:Server
Error while getting number of claims
error
5
/plateNo
The value should not be empty.
false
```
##getNoOfClaimsByDate
Retrieves the number of blamable claims for a certain plate number after the purchase date.
###Input (MotorInsurableBase)
Field | Type | Value | Required/Optional | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
plateNo | String | String | required | The registration number of the vehicle | IXT1213
startDate | Date | Date | required | The purchase date of the vehicle | 20-3-2013
###Output
The output is the number of blamable claims.
###Example 1
*Input*
```
YZT1252
2013-04-01
```
*Output*
```
0
```
###Example 2
*Input*
```
YZT1252
2011-04-01
```
*Output*
```
1
```
##issueGreenCard
Issues an application for a green card
###Input
Field | Type | Value | Required/Optional | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
address | String | String | required | The address of applicant (Must contain only latin characters and numbers) | ATHINA 5
countries | countries | Array of countries | optional | The countries excluded from the green card | *(see example)*
startDate | Date | String | required | The start date card applies. | 2015-12-20
endDate | Date | Date | required | The end date card stops being valid | 2015-12-20
fullName | String | String | required | The fullname of applicant (Must contain only capital latin characters) | TEST TEST
policyCode | String | String | required | The relevant policy code | 11223866
The country list is the following
Code | Description
----- | ----
AL | Albania
AND | Andorra
BIH | Bosnia And Herzegovina
BY | Belarus
FYR | FYROM
IL | Israel
IR | Iran
MA | Morocco
MD | Moldova
MNE | Montenegro
RUS | Russia
SRB | Serbia
TN | Tunisia
TR | Turkey
UA | Ukraine
###Output
The output includes the green card number or the validation/fault exception string.
###Example 1
*Input*
```
11230965
TSIRIGOTAKI AIKATERINI
PATISION 15 ATHINA
RUS
2015-07-22T04:02:49+03:00
2015-07-30T10:01:03+02:00
```
*Output*
```
JVBERi0xLjIgCiXi48/TIAoxIDAgb2JqIAo8PCAKL1R5cGUgL0NhdG[...]0IDEgMCBSIAovSW5mbyAxMTkgMCBSIAo+PiAKc3RhcnR4cmVmIAoyMTE4MDkgCiUlRU9GIAo=
10003533
```
###Example 2
*Input*
```
TEST
2015-12-20T15:42:28
TEST
11219952
2015-12-16T15:42:28
```
*Output*
```
ns2:Server
!Error while issuing green card!
error
11250
/as400Validation
Η πράσινη κάρτα προϋπάρχει στο ασφαλιστήριο.
true
```