#Policy web services
Provides service methods to handle policy operations.
* **Type**: SOAP
* **Production WSDL**: https://services.generali.gr/soap/v2/policy?wsdl
* **Test WSDL**: https://services-test.generali.gr/soap/v2/policy?wsdl
Methods
* [getAgreementDocument](#getAgreementDocument)
* [getLatestAgreementDocument](#getLatestAgreementDocument)
* [getLatestAgreementDocumentByApplicationCode](#getLatestAgreementDocumentByApplicationCode)
* [getLatestReceiptDocument](#getLatestReceiptDocument)
* [issueAndPay](#issueAndPay)
* [payQuotation](#payQuotation)
* [isPaidOut](#isPaidOut)
* [isPaidOutByPaymentCode](#isPaidOutByPaymentCode)
* [getPolicyByPaymentCode](#getPolicyByPaymentCode)
#getAgreementDocument
This service is for downloading the policy document for the selected endorsement code. In order to download a policy it **must** be inside a Journal.
###Input
Field | Type | Value | Required/Optional | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
policyCode | String | String | Required | The code of the policy | 11244971
endorsementCode | String | String | Required | The endorsement code of the policy | 000000000
###Output
Type | Description | Example
---- | ----------- | -------
AgreementDocument | Report of policy download | *(see below)*
####AgreementDocument
Field | Type | Value | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
policyCode | String | String | The policy code| 11244971
endorsementCode | String | String | The endorsement code | 000000000
journalCode | String | Date | The journal code that policy belongs to | 00771651
htmlContent | String | String | The policy document in html format | *(see example)*
pdfContent | byte[] | byte[] | The policy in byte[] format | *(see example)*
status | String | String | The status indicating whether the document is printed | printed
###Example 1
*Input*
```
11244971
000000000
```
*Output*
```
000000000
]]>
00771651
JVBERi0xLj......HJlZg0KMTMzOTI0DQolJUVPRg0K
11244971
printed
```
##getLatestAgreementDocument
This service is for downloading the policy document for the last endorsement. In order to download a policy it **must** be inside a Journal.
###Input
Field | Type | Value | Required/Optional | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
policyCode | String | String | Required | The code of the policy | 11244971
###Output
Type | Description | Example
---- | ----------- | -------
AgreementDocument | Report of policy download | *(see below)*
####AgreementDocument
Field | Type | Value | Description | Example
----- | ---- | ----- | ----------- | -------
policyCode | String | String | The policy code| 11244971
endorsementCode | String | String | The endorsement code | 000000000
journalCode | String | Date | The journal code that policy belongs to | 00771651
htmlContent | String | String | The policy document in html format | *(see example)*
pdfContent | byte[] | byte[] | The policy in byte[] format | *(see example)*
status | String | String | The status indicating whether the document is printed | printed
###Example 1
*Input*
```
11244971
```
*Output*
```
000000000
....>