> For the complete documentation index, see [llms.txt](https://apidocs.arionbanki.is/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.arionbanki.is/b2b-2013-schema/b2b-services/b2b-documents-service/fields.md).

# Fields

The following sections detail specific aspects of the service and explain how the information is conveyed in the messages.

## Service functions&#x20;

List of functions within the B2B Documents Service

| Function           | Input                                         | Output                                                    | Description                                            |
| ------------------ | --------------------------------------------- | --------------------------------------------------------- | ------------------------------------------------------ |
| UploadDocument     | [Document](#document)                         | [UploadDocumentResponse](#uploaddocumentresponse)         | Sends a digital document package.                      |
| GetDocumentResult  | [DocumentResultQuery](#documentsresultquery)  | [GetDocumentResultResponse](#getdocumentresultquery)      | Retrieves the submission status of a single document.  |
| GetDocumentsResult | [DocumentsResultQuery](#documentsresultquery) | [GetDocumentsResultResponse](#getdocumentsresultresponse) | Retrieves the submission status of multiple documents. |

## Document

The ‘Document’ class contains the input for the function "UploadDocument."

| Parameter    | Description                                                                                                                                                                                                                                                                                                                                      |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| DocumentInfo | Basic information about the document package.                                                                                                                                                                                                                                                                                                    |
| File         | Submit file, it must be in a specific XML format. This is the same format as the files submitted in the older “Birting” service. The file can be in various forms, including ANSI, Unicode, and UTF-8. UTF-16 format does not work. It is possible to submit a compressed XML file (e.g., ZIP). The maximum size of the submitted file is 20 MB. |

## **DocumentInfo**

The ‘DocumentInfo’ class contains basic information about the submitted document package.

| Parameter    | Description                                                                                                                                                                                                                                                                                                                                                        |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| PersonID     | The company's identification number (kennitala) that owns the submitted documents. In some cases, service providers may submit documents on behalf of multiple companies, and the identification number of the submitter should not be placed in this field but rather the identification number of the company on whose behalf the documents are being submitted. |
| DocumentType | The type of the submitted documents. See section [DocumentType](#documenttype). All documents within a submitted document package must be of the same type.                                                                                                                                                                                                        |
| DocumentName | The name of the submitted document package. This name is not forwarded to RB and can therefore be in any format. The filename that the service sends to RB is composed of PersonIdDocumentType\_Date\_uniquenumber, for example: 1234567890PW\_20130815\_170652.                                                                                                   |

## DocumentType

A four-character string specifying the type of the submitted documents

| Code | Description                                                                                                |
| ---- | ---------------------------------------------------------------------------------------------------------- |
| LS   | Launaskrá/Payroll file                                                                                     |
| LM   | Launamiði/Payroll statement, contains information about the earnings of an individual for a specific year. |
| PW   | Password                                                                                                   |
| GS   | Greiðsluseðill/Payment slip                                                                                |
| ER   | Bank Account                                                                                               |
| YF   | Business Overview                                                                                          |

## UploadDocumentResponse

The ‘UploadDocumentResponse’ class contains the output of the ‘UploadDocument’ function.

| Parameter  | Description                                                    |
| ---------- | -------------------------------------------------------------- |
| DocumentId | The unique identifier for the submitted file/document package. |

## GetDocumentResultQuery

The ‘GetDocumentResultQuery’ class contains the input to the ‘GetDocumentResult’ function.

| Parameter  | Description                                                    |
| ---------- | -------------------------------------------------------------- |
| DocumentId | The unique identifier for the submitted file/document package. |

## GetDocumentResultResponse

The ‘GetDocumentResultResponse’ class contains the output of the ‘GetDocumentResult’ function.

| Parameter      | Description                                                                          |
| -------------- | ------------------------------------------------------------------------------------ |
| DocumentResult | Information about the submitted file. See section [DocumentResult](#documentresult). |

## **DocumentResult**

The 'DocumentResult' contains information about the submitted file/document package.

| Parameter        | Description                                                                                                                                                                                                                                                                                                                 |
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| DocumentId       | The number of documents from the submitted file that have been processed. It is not possible to provide information about file processing by RB, for this reason this always returns 0.                                                                                                                                     |
| DocumentInfo     | Number of documents from the submitted file that could not be processed/delivered.                                                                                                                                                                                                                                          |
| ProcessingStatus | <p>The status of the submitted file. </p><p>Received = 0</p><p>InProgress = 1</p><p>Completed = 2</p><p>CompletedWithError = 3</p><p>Failed = 4.</p><p></p><p>No information about the file processing by RB is returned. Therefore, the final status is InProgress, which means that the document has been sent to RB.</p> |
| ProcessingResult | Information about the processing of the document. See section [DocumentProcessingResult](#documentprocessingresult).                                                                                                                                                                                                        |
| Date             | The date when the submitted file was received.                                                                                                                                                                                                                                                                              |

## DocumentProcessingResult

The ‘DocumentProcessingResult’ class contains information about the processing of the submitted file.

| Parameter        | Description                                                                                                                                                                                      |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| RecordsProcessed | The number of documents from the submitted file that have been processed. It is not possible to provide information about file processing by RB, for this reason this always returns 0.          |
| RecordsSkipped   | Number of documents from the submitted file that could not be processed/delivered. It is not possible to provide information about file processing by RB, for this reason this always returns 0. |

## DocumentsResultQuery

The class ‘DocumentsResultQuery’ contains the input for the ‘GetDocumentsResult’ function.

| Parameter | Description |
| --------- | ----------- |
| DateFrom  | Date from   |
| DateTo    | Date to     |

## GetDocumentsResultResponse

The ‘GetDocumentsResultResponse’ class contains the output of the ‘GetDocumentsResult’ function.

| Parameter  | Description                                                                          |
| ---------- | ------------------------------------------------------------------------------------ |
| Collection | Information about the submitted file. See section [DocumentResult](#documentresult). |

## IOBSFault

The ‘IOBSFault’ class contains the output of the ‘GetDocumentsResult’ function.

| Parameter        | Description                                                                                                                                                                            |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| GeneralErrorCode | General error code, e.g., 1300. See section [General error categories.](/b2b-2013-schema/b2b-services/b2b-documents-service/error-messages.md#general-error-categories)                |
| GeneralErrorText | General error text, e.g., See Business logic error.                                                                                                                                    |
| SourceErrorCode  | Error code of the core system. See section [Error messages from core systems](/b2b-2013-schema/b2b-services/b2b-documents-service/error-messages.md#error-messages-from-core-systems). |
| SourceErrorText  | [Error text of the core system](/b2b-2013-schema/b2b-services/b2b-documents-service/error-messages.md#error-messages-from-core-systems).                                               |
| BanksErrorCode   | Technical error code, e.g., 14000 for [DocumentService](/b2b-2013-schema/b2b-services/b2b-documents-service/error-messages.md#documents-service).                                      |
| BanksErrorText   | Technical error text.                                                                                                                                                                  |
