Update SEPA TIS Specs authored by Konrad Botor's avatar Konrad Botor
......@@ -3,22 +3,18 @@
Note: All endpoints will be on the same path, only `method` parameter will change
```yaml
swagger: '2.0'
openapi: 3.0.0
info:
description: API for TIS connection to DIS in SEPA connector project
version: 1.0.0
title: SEPA-TIS
# put the contact info for your development or API team
contact:
email: kbotor@syncad.com
# tags are used for organizing operations
tags:
- name: input
description: Endpoints for mesages incoming from bank
- name: output
description: Endpoints for messages outgoing to bank
- name: input
description: Endpoints for mesages incoming from bank
- name: output
description: Endpoints for messages outgoing to bank
paths:
/payment-request:
post:
......@@ -27,21 +23,19 @@ paths:
summary: Sends payment request to bank
operationId: paymentRequest
description: Sends payment request to bank
consumes:
- application/json
produces:
- application/json
parameters:
- in: body
name: paymentRequest
description: Payment request to send
schema:
$ref: '#/definitions/PaymentRequest'
responses:
200:
'200':
description: ALways HTTP code 200
schema:
$ref: '#/definitions/Response'
content:
application/json:
schema:
$ref: '#/components/schemas/Response'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentRequest'
description: Payment request to send
/payment-return-request:
post:
tags:
......@@ -49,21 +43,19 @@ paths:
summary: Sends payment return request to bank
operationId: paymentReturnRequest
description: Sends payment return request to bank
consumes:
- application/json
produces:
- application/json
parameters:
- in: body
name: paymentReturnRequest
description: Payment return request to send
schema:
$ref: '#/definitions/PaymentReturnRequest'
responses:
200:
'200':
description: ALways HTTP code 200
schema:
$ref: '#/definitions/Response'
content:
application/json:
schema:
$ref: '#/components/schemas/Response'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentReturnRequest'
description: Payment return request to send
/payment-return:
post:
tags:
......@@ -71,468 +63,769 @@ paths:
summary: Sends payment return to bank
operationId: paymentReturn
description: Sends payment return to bank
consumes:
- application/json
produces:
- application/json
parameters:
- in: body
name: paymentReturn
description: Payment return to send
schema:
$ref: '#/definitions/PaymentReturn'
responses:
200:
'200':
description: ALways HTTP code 200
content:
application/json:
schema:
$ref: '#/components/schemas/Response'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentReturn'
description: Payment return to send
/resolution-of-investigation:
post:
tags:
- output
summary: Sends resolution of investigation to bank
operationId: resloutionOfInvestigation
description: Sends resolution of investigation to bank
responses:
'200':
description: ALways HTTP code 200
content:
application/json:
schema:
$ref: '#/components/schemas/Response'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ResolutionOfInvestigation'
description: Resolution of investigation to send
/next-message:
post:
tags:
- input
summary: Checks for new mesages from bank
operationId: nextMessage
description: Checks for new mesages from bank
responses:
'200':
description: ALways HTTP code 200
schema:
$ref: '#/definitions/Response'
definitions:
PaymentRequest:
type: object
required:
- jsonrpc
- id
- method
- params
properties:
jsonrpc:
type: number
format: double
enum:
- 1.0
- 2.0
description: JSON-RPC standard version number
example: 1.0
id:
type: integer
description: Request ID
example: 1
method:
type: string
enum:
- ffcctrns
description: Method name
example: ffcctrns
params:
type: array
description: Request parameters
items:
$ref: '#/definitions/PaymentRequestParams'
PaymentReturnRequest:
type: object
required:
- jsonrpc
- id
- method
- params
properties:
jsonrpc:
type: number
format: double
enum:
- 1.0
- 2.0
description: JSON-RPC standard version number
example: 1.0
id:
type: integer
description: Request ID
example: 1
method:
type: string
enum:
- ffpcqrst
description: Method name
example: ffpcqrst
params:
type: array
description: Request parameters
items:
$ref: '#/definitions/PaymentReturnRequestParams'
PaymentReturn:
type: object
required:
- jsonrpc
- id
- method
- params
properties:
jsonrpc:
type: number
format: double
enum:
- 1.0
- 2.0
description: JSON-RPC standard version number
example: 1.0
id:
type: integer
description: Request ID
example: 1
method:
type: string
enum:
- prtrn
description: Method name
example: prtrn
params:
type: array
description: Request parameters
items:
$ref: '#/definitions/PaymentReturnParams'
PaymentRequestParams:
type: object
description: Payment request data
required:
- header
- payment_data
- chrg_br
properties:
header:
$ref: '#/definitions/DocumentHeader'
payment_data:
$ref: '#/definitions/PaymentData'
chrg_br:
type: string
enum:
- SLEV
description: Charge Bearer
example: SLEV
PaymentReturnRequestParams:
type: object
description: Payment return request data
required:
- header
- assigner_bic
- assignee_bic
- cancellation_id
- cancelling_party
- cancellation_reason
- payment_data
properties:
header:
$ref: '#/definitions/DocumentHeader'
assigner_bic:
type: string
description: Assigner BIC
example: PCTULT21XXX
assignee_bic:
type: string
description: Assignee (BoL) BIC
example: LIABLT2XMSD
cancellation_id:
type: string
description: Cancellation transaction identifier. Unique, as required in Chapter IX of the document SEPA-MMS User Detailed Functional Specifications for Credit Transfer Processing (SCT). Uniqueness is checked.
example: D118100301085772
cancelling_party:
$ref: '#/definitions/CancellingParty'
cancellation_reason:
$ref: '#/definitions/CancellationReason'
payment_data:
$ref: '#/definitions/PaymentData'
PaymentReturnParams:
type: object
description: Payment return data
required:
- header
- return_id
- return_reason
- returning_party
- return_amount
- return_currency
- chrg_br
- settlment_date
- payment_data
properties:
header:
$ref: '#/definitions/DocumentHeader'
return_id:
type: string
description: Return identification. Unique, as required in Chapter IX of the document SEPA-MMS User Detailed Functional Specifications for Credit Transfer Processing (SCT). Uniqueness is checked.
example: D118100301086072
return_amount:
type: number
format: double
description: Returned amount, calculated according to return reason
example: 13.31
return_currency:
type: string
enum:
- EUR
description: Returned amount currency
example: EUR
chrg_br:
type: string
enum:
- SLEV
description: Charge Bearer
example: SLEV
settlment_date:
type: string
description: Current or next TARGET2 business day
format: date
additional_info:
type: string
description: Cancellation transaction identifier from FFPCRQST, only filled if return_reason/iso_code is FOCR
example: D118100301085772
returning_party:
$ref: '#/definitions/ReturningParty'
return_reason:
$ref: '#/definitions/ReturnReason'
payment_data:
$ref: '#/definitions/PaymentData'
DocumentHeader:
type: object
description: Document header
required:
- doc_id
- type
- date_time
- priority
- business_area
properties:
doc_id:
type: string
description: Document ID - the structure is established in Section IX of the document LITAS-Pranesimu formatai.docx.
example: D118091001045732
type:
type: string
enum:
- FFCCTRNS
- FFPCRQST
- PRTRN
- ROINVSTG
description: Document type. Allowed values are FFCCTRNS/FFPCRQST/PRTRN/ROINVSTG
example: FFCCTRNS
date_time:
type: string
format: date-time
description: Document creation timestamp
example: 2018-10-03T08:48:09
priority:
type: integer
description: Document priority
example: 51
business_area:
type: string
description: Document business area
example: SEPASCT
PaymentData:
type: object
description: Payment data
required:
- instr_id
- end_to_end_id
- tx_id
- amount
- currency
- date
- mtd
- prty
- cd
- debtor
- creditor
properties:
instr_id:
type: string
description: Instruction identification
example: D118091001048175
end_to_end_id:
type: string
description: A sending customer reference that must be passed to a receiveing customer. In the event that no reference was given, the value NOTPROVIDED must be used.
example: NOTPROVIDED
tx_id:
type: string
description: Unique Id of a transaction, as required in Chapter IX of the document SEPA-MMS User Detailed Functional Specifications for Credit Transfer Processing (SCT). Uniqueness is checked.
example: 8e7070743da24402a7fc290bc62fbcd0
amount:
type: number
format: double
description: Payment amount
example: 13.31
currency:
type: string
enum:
- EUR
description: Payment currency
example: EUR
date:
type: string
description: Payment date. In payment request must be current or next TARGET2 business day.
format: date
mtd:
type: string
enum:
- CLRG
description: Settlment method
example: CLRG
prtry:
type: string
description: Clearing system
example: LITAS-MIG
cd:
type: string
enum:
- SEPA
description: Service level code
example: SEPA
debtor:
$ref: '#/definitions/Participant'
creditor:
$ref: '#/definitions/Participant'
CancellingParty:
type: object
description: Cancelling party data. Only one of available properties can be filled.
properties:
customer_name:
type: string
description: Customer name or BIC
example: Dan Notestein or PCTULT21XXX
bank_bic:
type: string
description: Bank BIC
example: PCTULT21XXX
CancellationReason:
type: object
description: Cancellation reason. Only one of available properties can be filled
properties:
iso_code:
type: string
enum:
- DUPL
description: ISO code of cancellation reason
example: DUPL
code:
type: string
enum:
- FRAD
- TECH
description: Custom code of cancellation reason
example: FRAD
ReturningParty:
type: object
description: Data of party returning payment. Only one of available properties can be filled
properties:
customer_name:
type: string
description: Customer's name or BIC
example: Dan Notestein or PCTULT21XXX
bank_bic:
type: string
description: Bank BIC
example: PCTULT21XXX
ReturnReason:
type: object
description: Reason for payment return, Only one of available properties can be filled
properties:
iso_code:
type: string
enum:
- AC01
- AC04
- AC06
- AG01
- AG02
- AM05
- BE04
- FOCR
- MD07
- MS02
- MS03
- RC01
- RR01
- RR02
- RR03
- RR04
description: ISO code of payment return reason. Allowed values are AC01, AC04, AC06, AG01, AG02, AM05, BE04, FOCR, MD07, MS02, MS03, RC01, RR01, RR02, RR03, RR04
example: FOCR
code:
type: string
description: Custom code of payment return reason
Participant:
type: object
required:
- bic
- iban
- name
properties:
bic:
type: string
description: Participant;s BIC
example: LIABLT20XXX
iban:
type: string
description: Participant's IBAN
example: LT261010000002132402
name:
type: string
description: Participant's name
example: Dan Notestein
country:
type: string
description: Participant's country ISO 3166-1 alpha-2 code
example: US
address_line1:
type: string
description: Participant's address
example: PO Box 10608
address_line2:
type: string
description: Participant's address
example: Blacksburg, VA 24062-0608
Response:
type: object
description: API response type for 'output' type endpoints
required:
- id
- result
properties:
id:
type: integer
example: 1
result:
$ref: '#/definitions/Result'
error:
$ref: '#/definitions/Error'
Result:
type: object
description: Operation result
required:
- doc_id
- status
properties:
doc_id:
type: string
description: Document ID
example: D118091001045732
status:
type: string
enum:
- Accepted
- Error
description: Request status. Available values are Accepted, Error
example: Accepted
Error:
type: object
description: Error object. Only sent if result.status is 'Error'
required:
- code
- message
properties:
code:
type: string
enum:
- DIS-0001
- DIS-0002
- DIS-0003
description: Error code (1 - document with given ID already exists, 2 - missing required data, 3 - technical error)
example: DIS-0001
message:
type: string
description: Error message
example: Document with given ID already exists
host: localhost
basePath: /
schemes:
- https
content:
application/json:
schema:
$ref: '#/components/schemas/NextMessageResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/NextMessageRequest'
description: Next message request
servers:
- url: 'https://localhost:8080/'
components:
schemas:
PaymentRequest:
type: object
required:
- jsonrpc
- id
- method
- params
properties:
jsonrpc:
type: number
format: double
enum:
- 1
- 2
description: JSON-RPC standard version number
example: 1
id:
type: integer
description: Request ID
example: 1
method:
type: string
enum:
- ffcctrns
description: Method name
example: ffcctrns
params:
type: array
description: Request parameters
items:
$ref: '#/components/schemas/PaymentRequestParams'
minItems: 1
maxItems: 1
PaymentReturnRequest:
type: object
required:
- jsonrpc
- id
- method
- params
properties:
jsonrpc:
type: number
format: double
enum:
- 1
- 2
description: JSON-RPC standard version number
example: 1
id:
type: integer
description: Request ID
example: 1
method:
type: string
enum:
- ffpcqrst
description: Method name
example: ffpcqrst
params:
type: array
description: Request parameters
items:
$ref: '#/components/schemas/PaymentReturnRequestParams'
minItems: 1
maxItems: 1
PaymentReturn:
type: object
required:
- jsonrpc
- id
- method
- params
properties:
jsonrpc:
type: number
format: double
enum:
- 1
- 2
description: JSON-RPC standard version number
example: 1
id:
type: integer
description: Request ID
example: 1
method:
type: string
enum:
- prtrn
description: Method name
example: prtrn
params:
type: array
description: Request parameters
items:
$ref: '#/components/schemas/PaymentReturnParams'
minItems: 1
maxItems: 1
ResolutionOfInvestigation:
type: object
required:
- jsonrpc
- id
- method
- params
properties:
jsonrpc:
type: number
format: double
enum:
- 1
- 2
description: JSON-RPC standard version number
example: 1
id:
type: integer
description: Request ID
example: 1
method:
type: string
enum:
- roinvstg
description: Method name
example: roinvstg
params:
type: array
description: Request parameters
items:
$ref: '#/components/schemas/ResolutionOfInvestigationParams'
minItems: 1
maxItems: 1
NextMessageRequest:
type: object
required:
- jsonrpc
- id
- method
- params
properties:
jsonrpc:
type: number
format: double
enum:
- 1
- 2
description: JSON-RPC standard version number
example: 1
id:
type: integer
description: Request ID
example: 1
method:
type: string
enum:
- nextmsg
description: Method name
example: nextmsg
params:
type: array
description: RequestParameters
items:
$ref: '#/components/schemas/NextMessageRequestParams'
minItems: 1
maxItems: 1
PaymentRequestParams:
type: object
description: Payment request data
required:
- header
- payment_data
- chrg_br
properties:
header:
$ref: '#/components/schemas/DocumentHeader'
payment_data:
$ref: '#/components/schemas/PaymentData'
chrg_br:
type: string
enum:
- SLEV
description: Charge Bearer
example: SLEV
PaymentReturnRequestParams:
type: object
description: Payment return request data
required:
- header
- assigner_bic
- assignee_bic
- cancellation_id
- cancelling_party
- cancellation_reason
- payment_data
properties:
header:
$ref: '#/components/schemas/DocumentHeader'
assigner_bic:
type: string
description: Assigner BIC
example: PCTULT21XXX
assignee_bic:
type: string
description: Assignee (BoL) BIC
example: LIABLT2XMSD
cancellation_id:
type: string
description: >-
Cancellation transaction identifier. Unique, as required in Chapter
IX of the document SEPA-MMS User Detailed Functional Specifications
for Credit Transfer Processing (SCT). Uniqueness is checked.
example: D118100301085772
cancelling_party:
$ref: '#/components/schemas/CancellingParty'
cancellation_reason:
$ref: '#/components/schemas/CancellationReason'
payment_data:
$ref: '#/components/schemas/PaymentData'
PaymentReturnParams:
type: object
description: Payment return data
required:
- header
- return_id
- return_reason
- returning_party
- return_amount
- return_currency
- chrg_br
- settlment_date
- payment_data
properties:
header:
$ref: '#/components/schemas/DocumentHeader'
return_id:
type: string
description: >-
Return identification. Unique, as required in Chapter IX of the
document SEPA-MMS User Detailed Functional Specifications for Credit
Transfer Processing (SCT). Uniqueness is checked.
example: D118100301086072
return_amount:
type: number
format: double
description: 'Returned amount, calculated according to return reason'
example: 13.31
return_currency:
type: string
enum:
- EUR
description: Returned amount currency
example: EUR
chrg_br:
type: string
enum:
- SLEV
description: Charge Bearer
example: SLEV
settlment_date:
type: string
format: date
description: Current or next TARGET2 business day
example: '2018-10-03T00:00:00.000Z'
additional_info:
type: string
description: >-
Cancellation transaction identifier from FFPCRQST, only filled if
return_reason/iso_code is FOCR
example: D118100301085772
returning_party:
$ref: '#/components/schemas/ReturningParty'
return_reason:
$ref: '#/components/schemas/ReturnReason'
payment_data:
$ref: '#/components/schemas/PaymentData'
ResolutionOfInvestigationParams:
type: object
description: Resoultion of investigation data
required:
- header
- assigner_bic
- assignee_bic
- status
- resolution_id
- rejecting_party
- rejection_reason
- payment_data
properties:
header:
$ref: '#/components/schemas/DocumentHeader'
assigner_bic:
type: string
description: Assigner BIC
example: PCTULT21XXX
assignee_bic:
type: string
description: Assignee (BoL) BIC
example: LIABLT2XMSD
status:
type: string
enum:
- RJCR
description: Confirmation of resolution of investigation
example: RJCR
resolution_id:
type: string
description: >-
Identification of the cancellation request transaction status.
Unique, as required in Chapter IX of the document SEPA-MMS User
Detailed Functional Specifications for Credit Transfer Processing
(SCT). Uniqueness is checked.
example: D118100301086192
rejecting_party:
$ref: '#/components/schemas/RejectingParty'
rejection_reason:
$ref: '#/components/schemas/RejectionReason'
additional_info:
type: array
items:
type: string
minItems: 1
maxItems: 2
description: To be used only when code is ‘LEGL’ in order to precise the reason.
example:
- AT51Description
- AT57Description
payment_data:
$ref: '#/components/schemas/PaymentData'
NextMessageRequestParams:
type: object
description: Next message request parameters
required:
- tis_code
properties:
tis_code:
type: string
description: Two character TIS code - all generated IDs start with this
example: D1
DocumentHeader:
type: object
description: Document header
required:
- doc_id
- type
- date_time
- priority
- business_area
properties:
doc_id:
type: string
description: >-
Document ID - the structure is established in Section IX of the
document LITAS-Pranesimu formatai.docx.
example: D118091001045732
type:
type: string
enum:
- FFCCTRNS
- FFPCRQST
- PRTRN
- ROINVSTG
description: Document type. Allowed values are FFCCTRNS/FFPCRQST/PRTRN/ROINVSTG
example: FFCCTRNS
date_time:
type: string
format: date-time
description: Document creation timestamp
example: '2018-10-03T08:48:09.000Z'
priority:
type: integer
description: Document priority
example: 51
business_area:
type: string
description: Document business area
example: SEPASCT
PaymentData:
type: object
description: Payment data
required:
- instr_id
- end_to_end_id
- tx_id
- amount
- currency
- date
- mtd
- prty
- cd
- debtor
- creditor
properties:
instr_id:
type: string
description: Instruction identification
example: D118091001048175
end_to_end_id:
type: string
description: >-
A sending customer reference that must be passed to a receiveing
customer. In the event that no reference was given, the value
NOTPROVIDED must be used.
example: NOTPROVIDED
tx_id:
type: string
description: >-
Unique Id of a transaction, as required in Chapter IX of the
document SEPA-MMS User Detailed Functional Specifications for Credit
Transfer Processing (SCT). Uniqueness is checked.
example: 8e7070743da24402a7fc290bc62fbcd0
amount:
type: number
format: double
description: Payment amount
example: 13.31
currency:
type: string
enum:
- EUR
description: Payment currency
example: EUR
date:
type: string
description: >-
Payment date. In payment request must be current or next TARGET2
business day.
format: date
example: '2018-10-03T00:00:00.000Z'
mtd:
type: string
enum:
- CLRG
description: Settlment method
example: CLRG
prtry:
type: string
description: Clearing system
example: LITAS-MIG
cd:
type: string
enum:
- SEPA
description: Service level code
example: SEPA
debtor:
$ref: '#/components/schemas/Participant'
creditor:
$ref: '#/components/schemas/Participant'
CancellingParty:
type: object
description: Cancelling party data. Only one of available properties can be filled.
properties:
customer_name:
type: string
description: Customer name or BIC
example: Dan Notestein or PCTULT21XXX
bank_bic:
type: string
description: Bank BIC
example: PCTULT21XXX
CancellationReason:
type: object
description: Cancellation reason. Only one of available properties can be filled
properties:
iso_code:
type: string
enum:
- DUPL
description: ISO code of cancellation reason
example: DUPL
code:
type: string
enum:
- FRAD
- TECH
description: Custom code of cancellation reason
example: FRAD
ReturningParty:
type: object
description: >-
Data of party returning payment. Only one of available properties can be
filled
properties:
customer_name:
type: string
description: Customer's name or BIC
example: Dan Notestein or PCTULT21XXX
bank_bic:
type: string
description: Bank BIC
example: PCTULT21XXX
ReturnReason:
type: object
description: >-
Reason for payment return, Only one of available properties can be
filled
properties:
iso_code:
type: string
enum:
- AC01
- AC04
- AC06
- AG01
- AG02
- AM05
- BE04
- FOCR
- MD07
- MS02
- MS03
- RC01
- RR01
- RR02
- RR03
- RR04
description: >-
ISO code of payment return reason. Allowed values are AC01, AC04,
AC06, AG01, AG02, AM05, BE04, FOCR, MD07, MS02, MS03, RC01, RR01,
RR02, RR03, RR04
example: FOCR
code:
type: string
description: Custom code of payment return reason
RejectingParty:
type: object
description: >-
Data of party rejecting payment return. Only one of available properties
can be filled
properties:
customer_name:
type: string
description: Customer's name or BIC
example: Dan Notestein or PCTULT21XXX
bank_bic:
type: string
description: Bank BIC
example: PCTULT21XXX
RejectionReason:
type: object
description: >-
Reason for payment return rejection, Only one of available properties
can be filled
properties:
iso_code:
type: string
enum:
- LEGL
- CUST
description: >-
ISO code of payment return rejection reason. Allowed values are
LEGL, CUST
example: LEGL
code:
type: string
enum:
- ARDT
- AC04
- AM04
- NOAS
- NOOR
description: >-
Custom code of payment return reason. Allowed values are ARDT, AC04,
AM04, NOAS, NOOR
Participant:
type: object
required:
- bic
- iban
- name
properties:
bic:
type: string
description: Participant;s BIC
example: LIABLT20XXX
iban:
type: string
description: Participant's IBAN
example: LT261010000002132402
name:
type: string
description: Participant's name
example: Dan Notestein
country:
type: string
description: Participant's country ISO 3166-1 alpha-2 code
example: US
address_line1:
type: string
description: Participant's address
example: PO Box 10608
address_line2:
type: string
description: Participant's address
example: 'Blacksburg, VA 24062-0608'
Response:
type: object
description: API response type for 'output' type endpoints
required:
- id
- result
properties:
id:
type: integer
description: Request ID
example: 1
result:
$ref: '#/components/schemas/Result'
error:
$ref: '#/components/schemas/Error'
NextMessageResponse:
type: object
description: API response type for NextMessage endpoint
required:
- id
- result
properties:
id:
type: integer
description: Request ID
example: 1
result:
oneOf:
- $ref: '#/components/schemas/ErrorDocument'
- $ref: '#/components/schemas/Document'
error:
$ref: '#/components/schemas/Error'
Result:
type: object
description: Operation result
required:
- doc_id
- status
properties:
doc_id:
type: string
description: Document ID
example: D118091001045732
status:
type: string
enum:
- Accepted
- Error
description: 'Request status. Available values are Accepted, Error'
example: Accepted
ErrorDocument:
type: object
description: >-
Document describing an error received from PAS (AUTHRES, SYNRES, RETURN)
or processing error in CPR subsystem
required:
- doc_id
- doc_ref_id
- timestamp
- error_code
- error_message
properties:
doc_id:
type: string
description: >-
ID of this document - generated either by PAS or CDR - the same
format as any other document ID
example: PS18091010000007
doc_ref_id:
type: string
description: Reference to the document that caused the error
example: D118091001045732
timestamp:
type: string
format: date-time
description: Timestamp of this document's creation
example: '2018-09-10T11:41:54.000Z'
error_code:
type: string
description: Error code as provided by PAS or CPR
example: PAS-81500000
error_message:
type: string
description: Error message as provided by PAS or CPR
example: >-
Priimami tik pasirašyti LITAS-INST ir PROXY sistemų pranešimai. Only
LITAS-INST and PROXY signed messages are accepted.
Document:
type: object
description: >-
One of possible incoming document types - data will be deserialized from
XML to Java class and then serialized to JSON
Error:
type: object
description: Error object. Only sent if result.status is 'Error'
required:
- code
- message
properties:
code:
type: string
enum:
- DIS-0001
- DIS-0002
- DIS-0003
description: >-
Error code (1 - document with given ID already exists, 2 - missing
required data, 3 - technical error)
example: DIS-0001
message:
type: string
description: Error message
example: Document with given ID already exists
```
\ No newline at end of file