#Print&Pay web services
Provides service methods to handle Print&Pay.
* **Type**: SOAP
* **Production WSDL**: https://services.generali.gr/gbox-ws/soap/v1/journal?wsdl
* **Test WSDL**: http://www.generali.gr/gbox-ws/soap/v1/journal?wsdl
The following picture illustrates the workflow for motor policies:
![Motor](images/motorPolicyIssueWorkflow.png)
Methods
* [listDistChannelLimits](#listDistChannelLimits)
* [getDistChannelLimit](#getDistChannelLimit)
* [listJournalsByDistChannel](#listJournalsByDistChannel)
* [getJournal](#getJournal)
* [getUnpaidEndorsement](#getUnpaidEndorsement)
* [getEndorsementByApplicationCode](#getEndorsementByApplicationCode)
* [listUnpaidEndorsementsByDistChannel](#listUnpaidEndorsementsByDistChannel)
* [listEndorsementsByJournal](#listEndorsementsByJournal)
* [createJournal](#createJournal)
* [getPolicyCodeByApplicationCode](#getPolicyCodeByApplicationCode)
* [getPolicyDocument](#getPolicyDocument)
* [getPolicyDocumentByApplicationCode](#getPolicyDocumentByApplicationCode)
* [getPolicyDocumentByEndorsementCode](#getPolicyDocumentByEndorsementCode)
* [getReceiptDocument](#getReceiptDocument)
* [getReceiptDocumentByEndorsementCode](#getReceiptDocumentByEndorsementCode)
* [getBillDocument](#getBillDocument)
* [getBillDocumentByEndorsementCode](#getBillDocumentByEndorsementCode)
* [Error Codes](#errorCodes)
##listDistChannelLimits
Returns the money and day limits of all Distribution Channels of the user.
###Output
Type | Description | Example
---- | ----------- | -------
List[DistChannelLimit] | A list with all the limits of all Dist Channels | *(see below)*
#### DistChannelLimit
Field | Type | Description | Example
----- | ---- | ----------- | -------
distChannelCode | String | The code of the Dist Channel | 00510
totalAmount | BigDecimal | The allowed total amount of the Dist Channel | 5000
outstandingAmount | BigDecimal | The remaining amount | 1000
totalDays | Integer | The allowed total days | 5
outstandingDays | Integer | The remaining days | 2 *(if days are <-2 the Dist Channel is locked, which means that the client is not able to create new Journal)*
###Example
*Input*
```
```
*Output*
```
00510
200.00
5
200.00
5
```
##getDistChannelLimit
Returns the money and day limits of a specific Dist Channel.
###Input
Field | Type | Value | Required/Optional | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
distChannelCode | String | String | Required | The Dist Channel code from which we want to retrieve the limits | 00510
###Output
Type | Description | Example
---- | ----------- | -------
DistChannelLimit | The limit data of the DistChannel | *(see above)*
###Example 1
*Input*
```
00510
```
*Output*
```
00510
200.00
5
200.00
5
```
###Example 2
Example with exception
*Input*
```
12345
```
*Output*
```
S:Server
Error while getting the Dist Channel Limit
You are not authorized for this action
```
##listJournalsByDistChannel
Lists all the Journals of a Dist Channel.
###Input
Field | Type | Value | Required/Optional | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
distChannelCode | String | String | Required | The Dist Channel code from which we want to retrieve the Journals | 00510
first | Integer | Integer | Optional | The first row. *Default value : 0* | 10
max | Integer | Integer | Optional | The number of max rows *Default value : 50* | 20
###Output
Type | Description | Example
---- | ----------- | -------
List[Journal] | A list of all the Journals | *(see below)*
#### Journal
Field | Type | Description | Example
----- | ---- | ----------- | -------
code | String | The code of the Journal | 00232425
creationDate | Date | The date the Journal was created | 18/06/2014
premiumAmount | BigDecimal | The gross amount of the Journal | 237.5
netAmount | BigDecimal | The net amount of the Journ | 200.5
status | String *(possible values : OPEN, IN_PAYMENT)* | The status of the Journal | OPEN
distChannel | String | The Dist Channel code in the journal belongs | 00510
notes | String | The notes of the Journal | "New Policies Journal"
List[Endorsement] | Endorsement | A list with all the policies inside a journal | *(see below))*
#### Endorsement
Field | Type | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
endorsementCode | String | The code of the endorsement | 0438572362
policyCode | String | The code of the policy | 123456789
quotationCode | String | The code of the quotation | 00194822
quotationPreviousPolicyCode | String | The old policy code of a renewal quotation | 11143542
###Example 1
This examples shows the output if there are existing Journals
*Input*
```
00510
```
*Output*
```
00219359
2014-05-30T00:00:00+03:00
01781
571.96
593.25
OPEN
00219360
2014-05-30T00:00:00+03:00
01781
506.65
525.50
OPEN
00219361
2014-05-30T00:00:00+03:00
01781
938.51
973.43
OPEN
00219362
2014-05-30T00:00:00+03:00
01781
1057.50
1096.87
OPEN
```
###Example 2
This examples shows the output if there are not existing Journals
*Input*
```
00510
```
*Output*
```
```
##getJournal
Finding the data of a specific Journal.
###Input
Field | Type | Value | Required/Optional | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
journalCode | String | String | Required | The code of the journal | 00219360
###Output
Type | Description | Example
---- | ----------- | -------
Journal | The Journal data | *(see [listJournalsByDistChannel](#listJournalsByDistChannel))*
###Example 1
*Input*
```
00219360
```
*Output*
```
00219360
2014-05-30T00:00:00+03:00
01781
506.65
525.50
OPEN
```
###Example 2
Example with exception
*Input*
```
002193845
```
*Output*
```
S:Server
Error while finding Journal
error
5
/journalCode
Η συναλλαγή δεν υπάρχει.
false
```
##getUnpaidEndorsement
Retrieve a specific unpaid and not in Journal endorsement.
If you want to retrieve a policy then in the input you have to fill **both** the policycode and the endorsementCode. If you want to retrieve a quotation you have to fill **only** the quotationCode.
###Input
Type | Description | Example
---- | ----------- | -------
Endorsement | The data of the endorsement | *(see below)*
#### Endorsement
Field | Type | Value | Required/Optional | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
policyCode | String | String | Optional | The policy code | 97845367
endorsementCode | String | String | Optional | The endorsement code of the policy | 000000000
quotationCode | String | String | Optional | The quotation code | 00556374
quotationPreviousPolicyCode | String | String | Optional | The old policy code of a renewal quotation | 11143542
###Output
Type | Description | Example
---- | ----------- | -------
EndorsementReceipt | The data of the specific policy | *(see below)*
#### EndorsementReceipt
Field | Type | Description | Example
----- | ---- | ----------- | -------
code | String | Endorsement Receipt code | 003453626
policyCode | String | The code of the policy | 110394785
quotationCode | String | The code of the quotation | 00558754
quotationPreviousPolicyCode | String | The old policy code of a renewal quotation | 11143542
startDate | Date | The start date of the policy | 18/06/2014
endDate | Date | The end date of the policy | 18/06/2015
expireDate | Date | The expiration date of the policy | 23/07/2014
premiumAmount | BigDecimal | The gross amount of the Endorsement | 300.0
netAmount | BigDecimal | The net amount of the Endorsement | 260.70
customerName | String | The name of the customer | Eleftheria
customerSurname | String | The surname of the customer | Stefanou
extraDetails | String | Some extra details. To date we show the license number if exists | IZX1234
paymentCode | String | The payment code of the endorsement | 103984746273
###Example1
Searching for a policy
*Input*
```
000000000
11157022
```
*Output*
```
000000000
ΚΑΡΑΚΙΚΕΣ Σ. & ΣΙΑ Ο.Ε.
2015-05-13T00:00:00+03:00
2015-01-12T00:00:00+02:00
138.83
01000007560491675106
11157022
138.83
2014-11-13T00:00:00+02:00
```
###Example2
Searching for a quotation
*Input*
```
00529908
```
*Output*
```
ΑΘΑΝΑΣΙΟΣ
ΠΛΑΤΑΝΙΩΤΗΣ
2016-01-31T00:00:00+02:00
2015-03-02T00:00:00+02:00
IMT4145
310.78
14000007538313475108
310.78
00529908
2015-01-31T00:00:00+02:00
```
##getEndorsementByApplicationCode
Retrieve the endorsement by the application code. The endorsement might be a policy if the policyCode is filled or a quotation, if the quotationCode is filled.
###Input
Type | Description | Example
---- | ----------- | -------
String | The application code | 00803432
###Output
Type | Description | Example
---- | ----------- | -------
Endorsement | The data of the endorsement | *(see below)*
#### Endorsement
Field | Type | Value | Required/Optional | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
policyCode | String | String | Optional | The policy code | 97845367
endorsementCode | String | String | Optional | The endorsement code of the policy | 000000000
quotationCode | String | String | Optional | The quotation code | 00556374
quotationPreviousPolicyCode | String | String | Optional | The old policy code of a renewal quotation | 11143542
### Example1
There is no policy or quotation for the specified application code
*Input*
```
97030805
```
*Output*
```
```
### Example2
There is a quotation for the specified application code
*Input*
```
97030771
```
*Output*
```
00551055
```
### Example3
There is a quotation for the specified application code
*Input*
```
00687534
```
*Output*
```
004100612
11000338
```
##listUnpaidEndorsementsByDistChannel
Lists all the Endorsements (Policies and Quotations) of a Dist Channel that are not paid and there are not inside a Journal.
If the output (EndorsementReceipt) has filled the field policyCode then it's a policy, else if the field quotationCode is filled,
then is a Quotation.
In case of a Quotation, if it comes from a renewal then the field quotationPreviousPolicyCode will be filled.
###Input
Field | Type | Value | Required/Optional | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
distChannelCode | String | String | Required | The Dist. Channel code | 00510
first | Integer | Integer | Optional | The first row. *Default value : 0* | 10
max | Integer | Integer | Optional | The number of max rows *Default value : 50* | 20
###Output
Type | Description | Example
---- | ----------- | -------
List[EndorsementReceipt] | A list with endorsements data | *(see below)*
#### EndorsementReceipt
Field | Type | Description | Example
----- | ---- | ----------- | -------
code | String | Endorsement Receipt code | 003453626
policyCode | String | The code of the policy | 110394785
quotationCode | String | The code of the quotation | 00558754
quotationPreviousPolicyCode | String | The old policy code of a renewal quotation | 11143542
startDate | Date | The start date of the policy | 18/06/2014
endDate | Date | The end date of the policy | 18/06/2015
expireDate | Date | The expiration date of the policy | 23/07/2014
premiumAmount | BigDecimal | The gross amount of the Endorsement | 300.0
netAmount | BigDecimal | The net amount of the Endorsement | 260.70
customerName | String | The name of the customer | Eleftheria
customerSurname | String | The surname of the customer | Stefanou
extraDetails | String | Some extra details. To date we show the license number if exists | IZX1234
paymentCode | String | The payment code of the endorsement | 103984746273
###Example
*Input*
```
00510
```
*Output*
```
000000000
ΚΑΡΑΚΙΚΕΣ Σ. & ΣΙΑ Ο.Ε.
2015-05-13T00:00:00+03:00
2015-01-12T00:00:00+02:00
138.83
01000007560491675106
11157022
138.83
2014-11-13T00:00:00+02:00
000000000
ΚΑΡΑΚΙΚΕΣ Σ. & ΣΙΑ Ο.Ε.
2015-05-13T00:00:00+03:00
2014-12-13T00:00:00+02:00
ZMI2030
195.45
01000007560492475101
11157023
195.45
2014-11-13T00:00:00+02:00
ΑΘΑΝΑΣΙΟΣ
ΠΛΑΤΑΝΙΩΤΗΣ
2016-01-31T00:00:00+02:00
2015-03-02T00:00:00+02:00
IMT4145
310.78
14000007538313475108
310.78
00529908
2015-01-31T00:00:00+02:00
ΑΡΙΣΤΕΙΔΗΣ
ΤΡΙΑΝΤΑΦΥΛΛΟΥ
2016-01-31T00:00:00+02:00
2015-03-02T00:00:00+02:00
IKX2059
317.64
14000007549018675101
317.64
00540613
2015-01-31T00:00:00+02:00
```
##listEndorsementsByJournal
Lists the endorsement of a specific Journal
###Input
Field | Type | Value | Required/Optional | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
journalCode | String | String | Required | The journal from which you want to retrieve the endorsements | 00219360
first | Integer | Integer | Optional | The first row. *Default value : 0* | 0
max | Integer | Integer | Optional | The number of max rows *Default value : 50* | 2
###Output
Type | Description | Example
---- | ----------- | -------
List[EndorsementReceipt] | A list with endorsements data | *(see [listUnpaidEndorsements](#listUnpaidEndorsements))*
###Example 1
*Input*
```
00219360
```
*Output*
```
003834654
E-VALUE AE Δ/Λ OLYMPIC ΕΜΠΟΡΙΚ
2015-06-24T00:00:00+03:00
506.65
10958293
525.50
2014-06-24T00:00:00+03:00
```
###Example 2
Example throwing ValidationException
*Input*
```
00216578
```
*Output*
```
S:Server
Error while finding Journal
error
5
/journalCode
Η συναλλαγή δεν υπάρχει.
false
```
##createJournal
Creates a new Journal. At the end of the section you can find a list with extra error codes besides the ones in *General Considerations* for not being able to create a new Journal.
For unpaid Motor policies is mandatory to create a Journal before trying to retrieve them, otherwise the operation will result in an exception.
If you want to add to the journal a policy you have to fill in the Endorsement object **both** the policyCode and the quotationCode. In case of quotation you have to add **only** the quotationCode.
When you create a Journal with quotations, those quotations becomes automatically policies which can be retrieved from the output.
The most common errors while creating a Journal is the followings:
* Outreached the money or the day limits.
* The policy or the quotation is not in the list of the unpaid endorsements
* It appears the message "Υπάρχει παλαιότερη Απόδειξη πληρωμών για το επιλεγμένο Ασφαλιστήριο". This message means that there is a previous renewal of this policy that is unpaid. So You have to put this first in a Journal, or put both policies in the same Journal.
* You are not allowed to add in a Journal a policy with negative amount. In case of such policy, you have to add it to a Journal with another policy, so the total amount will be greater than 0€.
###Input
Field | Type | Value | Required/Optional | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
distChannelCode | String | String | Required | Under which Dist Channel the journal will be created | 00510
notes | String | String | Optional | The notes that will be added to the Journal | "My test Journal"
endorsementCodes | List[Endorsement] | Endorsement | The list of endorsements which will added to Journal | *(see below)*
####Endorsement
Notice that from version **1.0-beta-18** the Endorsement object can represent both endorsements or quotations (in case of Motor policies).
When using the Endorsement in input methods and as real policy endorsement we will have to specify both *endorsementCode* and *policyCode*, whereas when using it as a Quotation we will only have to specify the "quotationCode".
Field | Type | Value | Required/Optional | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
endorsementCode | String | String | Required (for non Motor policies) | The code of the endorsement | 0438572362
policyCode | String | String | Required (for non Motor policies) | The code of the policy | 123456789
quotationCode | String | String | Required (for Motor policies) | The code of the quotation | 00194822
quotationPreviousPolicyCode | String | String | Optional | The old policy code of a renewal quotation | 11143542
###Output
Type | Description | Example
---- | ----------- | -------
Journal | The Journal data | *(see below)*
#### Journal
Field | Type | Description | Example
----- | ---- | ----------- | -------
code | String | The code of the Journal | 00232425
creationDate | Date | The date the Journal was created | 18/06/2014
premiumAmount | BigDecimal | The gross amount of the Journal | 237.5
netAmount | BigDecimal | The net amount of the Journ | 200.5
status | String *(possible values : OPEN, IN_PAYMENT)* | The status of the Journal | OPEN
distChannel | String | The Dist Channel code in the journal belongs | 00510
notes | String | The notes of the Journal | "New Policies Journal"
List[Endorsement] | Endorsement | A list with all the policies inside a journal | *(see above))*
###Example 1
Example for providing an empty Endorsement list
*Input*
```
00510
Web Service Test
```
*Output*
```
S:Server
Error while creating Journal
error
18
Η λίστα των Συναλλαγών πρέπει να κυμαίνεται μεταξύ 1-50.
true
```
###Example 2
Example for trying to persist an non unpaid endorsement
*Input*
```
00510
Web Service Test
003900337
11038919
```
*Output*
```
S:Server
Error while finding Journal
error
5
/endorsementReceipts
Η Απόδειξη Συναλλαγών 003900337 του Συμβολαίου 11038919 δεν βρίσκεται στην λίστα με τις απλήρωτες αποδείξεις.
false
```
###Example 3
Successful persistence for Policies
*Input*
```
00510
004096778
10933573
004096805
10933636
```
*Output*
```
00419733
2014-11-19T00:00:00+02:00
00510
004096778
10933573
004096805
10933636
287.72
Πολλαπλά Συμβόλαια
350.16
OPEN
```
###Example 4
Successful persistence for Quotation
*Input*
```
11133
00511971>
```
*Output*
```
00419734
2014-11-19T00:00:00+02:00
11133
004160727
10939097
00511971
135.90
ΚΑΤΣΑΜΑΝΗ ΜΑΡΙΑ
165.45
OPEN
```
###Example 5
Successful persistence for Quotations and Policies
*Input*
```
11133
00512042>
10936327
004097411>
```
*Output*
```
00419735
2014-11-19T00:00:00+02:00
11133
004097411
10936327
004160730
10942335
00512042
338.68
Πολλαπλά Συμβόλαια
410.18
OPEN
```
##getPolicyCodeByApplicationCode
This method is deprecated. Use instead the method [getEndorsementByApplicationCode](#getEndorsementByApplicationCode).
###Input
Field | Type | Value | Required/Optional | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
applicationCode | String | String | Required | The code of the application | 97030375
###Output
Type | Description | Example
---- | ----------- | -------
String | The policy code | 11109524
###Example 1
This example shows the case that you are not authorized to access a policy
*Input*
```
97030377
```
*Output*
```
S:Server
You are not authorized for this action
You are not authorized for this action
```
###Example 2
This examples shows if an application has not been issued as a policy
*Input*
```
97030375
```
*Output*
```
S:Server
Error while finding policy code
error
5
/policyCode
Το Συμβόλαιο δεν υπάρχει.
false
```
###Example 3
The example shows an application that has a corresponding policy
*Input*
```
97030377
```
*Output*
```
11109524
```
##getPolicyDocument
This service is for downloading the policy document for the latest endorsement. In order to download a policy it **must** be inside a Journal. If not, then a new Journal, a SOAP error will be returned. **Notice this behaviour has changed with respect to the previous versions where the Journal was created automatically**.
After creating a Journal, it takes some time (approximately 5 minutes) in order to download the actual pdf document. You can have it though immediately as an HTML document (available only for motor policies).
###Input
Field | Type | Value | Required/Optional | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
policyCode | String | String | Required | The code of the policy | 123456789
###Output
Type | Description | Example
---- | ----------- | -------
PolicyDocument | Report of policy download | *(see [getPolicyDocumentByEndorsementCode](#getPolictDocumentByEndorsementCode))*
###Example 1
This example returns a ValidationException cause this policy has an older endorsement unpaid.
*Input*
```
10228007
```
*Output*
```
S:Server
Error while downloading document
error
350
/journal
Υπάρχει παλαιότερη Απόδειξη πληρωμών για το επιλεγμένο Ασφαλιστήριο. Απόδειξη :
false
```
##getPolicyDocumentByApplicationCode
This service is for downloading the latest policy document providing only the application code.
###Input
Field | Type | Value | Required/Optional | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
applicationCode | String | String | Required | The application code | 00776474
###Output
Type | Description | Example
---- | ----------- | -------
PolicyDocument | Report of policy download | *(see [getPolicyDocumentByEndorsementCode](#getPolictDocumentByEndorsementCode))*
###Example 1
In this example application has not been issued yet to a policy
*Input*
```
97030256
```
*Output*
```
S:Server
Error while downloading policy
error
5
/applicationCode
Δεν έχει εκδωθεί ασφαλιστήριο για την αίτηση 97030256.
false
```
##getPolicyDocumentByEndorsementCode
This service is for downloading the policy document for a specific endorsement. In order to download a policy it **must** be inside a Journal. If not, then a new Journal, if it's possible, is being created automatically.
After creating a Journal, it takes some time (approximately 5 minutes) in order to download the actual pdf document. You can have it though immediately as an HTML document (available only for motor policies)..
###Input
Field | Type | Value | Required/Optional | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
policyCode | String | String | Required | The code of the policy | 123456789
endorsementCode | String | String | Required | The code of the endorsement | 000000000
###Output
Type | Description | Example
---- | ----------- | -------
PolicyDocument | Report of policy download | *(see below)*
####PolicyDocument
Field | Type | Description | Example
----- | ---- | ----------- | -------
policyCode | String | The code of the policy | 110398475
endorsementCode | String | The code of the endorsement | 00183758723
journalCode | String | The code of the Journal | 02139857
document | byte[] | The document content | JVBERi0...
htmlDocument | String | The document in HTML format |
status | String | The existance or not of the printed document "printed" / "to-be-printed" | to-be-printed
###Example 1
Successful retrieval of the document
*Input*
```
10946002
003830083
```
*Output*
```
JVBERi0xLjQNCiXi48/TDQoxIDAgb2JqDQogIDw8DQogICAgL0F1dGhvcjw+
00219962
10946002
003830083
printed
```
###Example 2
There is a possibility that the procedure of creating a new Journal is successful but in some cases the document is not in our system, then you can retrieve the journalCode, but not the document.
*Input*
```
11065549
003858115
```
*Output*
```
00400009
11065549
003858115
to-be-printed
```
###Example 3
Not able to create a Journal for downloading the policy.
*Input*
```
11037222
003899385
```
*Output*
```
S:Server
Error while downloading document
error
300
/journal
Έχετε ξεπεράσει το χρηματικό όριο για τον Κωδικό Παραγωγής σας
false
```
##getReceiptDocument
This service is for downloading the receipt document of a policy for the latest endorsement. In order to download a receipt, the policy **must** be inside a Journal. If not, then a new Journal, if it's possible, is being created automatically.
###Input
Field | Type | Value | Required/Optional | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
policyCode | String | String | Required | The code of the policy | 123456789
###Output
Type | Description | Example
---- | ----------- | -------
ReceiptDocument | Report of receipt download | *(see [getReceiptDocumentByEndorsementCode](#getReceiptDocumentByEndorsementCode))*
##getReceiptDocumentByEndorsementCode
This service is for downloading the receipt document of a policy for a specific endorsement. In order to download a receipt, the policy **must** be inside a Journal. If not, then a new Journal, if it's possible, is being created automatically.
###Input
Field | Type | Value | Required/Optional | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
policyCode | String | String | Required | The code of the policy | 123456789
endorsementCode | String | String | Required | The code of the endorsement | 000000000
###Output
Type | Description | Example
---- | ----------- | -------
ReceiptDocument | Report of receipt download | *(see below)*
####ReceiptDocument
Field | Type | Description | Example
----- | ---- | ----------- | -------
policyCode | String | The code of the policy | 110398475
endorsementCode | String | The code of the endorsement | 00183758723
journalCode | String | The code of the Journal | 02139857
document | byte[] | The document |
##getBillDocument
Returns the bill document of a policy or of a quotation. If you specify only the policyCode returns the bill of the latest endorsement of the policy.
If you specify the policyCode and the endorsementCode then it returns the bill document of the specific endorsement. Finally, if you specify the quotationCode,
it return the bill document of the quotation.
###Input
Field | Type | Value | Required/Optional | Description | Example
----- | ---- | ----- | ----------------- | ----------- | -------
endorsement | Endorsement | Endorsement | Required | The data of the policy or the quotation | (*see below*)
##Error Codes
Code | Description
------ | -----------
210 | The endorsement already exists inside in Journal
220 | The Dist Channel doesn't have outstand amount
230 | The Dist Channel doesn't have limits
300 | You have overcome the money limit
310 | You have overcome the day limit
350 | The endorsement is not the oldest of this policy
360 | The Journal have a minus journal amount