> 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-unpaid-bills-service/fields.md).

# Fields

This chapter contains information on the input and output fields of the B2B unpaid bills service.

### Service functions&#x20;

List of functions within the B2B unpaid bills service:

| Function            | Input               | Output                           | Description                                                                                                           |
| ------------------- | ------------------- | -------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| GetBills            |                     | Collection [BillInfo](#billinfo) | Retrieves all unpaid bills of the user.                                                                               |
| GetBillDetails      | [BillKey](#billkey) | [BillInfo](#billinfo)            | Retrieves detailed information on a single bill.                                                                      |
| GetHiddenBills      | BillType            | Collection [BillInfo](#billinfo) | Retrieves invoices that have been marked as hidden. <mark style="color:red;">This function is not implemented.</mark> |
| UnHideBill          | [BillKey](#billkey) | No output                        | Marks the invoice as unhidden. <mark style="color:red;">This function is not implemented.</mark>                      |
| CancelOptionalClaim | [BillKey](#billkey) | No output                        | Cancels an optional payment claim. <mark style="color:red;">This function is not implemented.</mark>                  |

### BillKey&#x20;

The Billkey class is an input to the functions GetBillDetails, UnHideBill, and CancelOptionalClaim. It contains a unique key for the invoice.

| Parameter  | Description                                                  |
| ---------- | ------------------------------------------------------------ |
| Bank       | Bank or branch number (4 digits)                             |
| Ledger     | General ledger (2 digits). Example: 66 for collection claims |
| Number     | Number of the claim/invoice (6 digits)                       |
| DueDate    | Due date of the claim/invoice                                |
| PayorId    | Kennitala (national registry ID number) of the payor         |
| ClaimantId | Kennitala (national registry ID number) of the claimant      |

### BillInfo&#x20;

The class BillInfo contains basic information about invoices and is an output from the functions GetBills, GetBillDetails and GetHiddenBills. The Details variable which is of the type BillInfoDetails is only filled out in the output of the GetBillDetails function.

| Parameter               | Description                                                                                                                                                                          |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Bank                    | Bank or branch number (4 digits)                                                                                                                                                     |
| Ledger                  | General ledger (2 digits). Example: 66 for collection claims                                                                                                                         |
| Number                  | Claim number (6 digits)                                                                                                                                                              |
| DueDate                 | Due date of invoice                                                                                                                                                                  |
| Identifier              | Identifier of the claim template (ísl. kröfusniðmát) for the claimant                                                                                                                |
| Description             | Description of category code (ísl. textalykill). If no category code is specified, the value “Greiðsluseðill” will be returned.                                                      |
| FinalDueDate            | Final due date of invoice                                                                                                                                                            |
| AmountDue               | Total amount of payment due, including incurred costs                                                                                                                                |
| MinimumAmount           | Not implemented                                                                                                                                                                      |
| AmountDue.Currency      | The currency of amount due                                                                                                                                                           |
| ClaimantId              | Kennitala (national registry ID number) of the claimant                                                                                                                              |
| PayorId                 | Kennitala (national registry ID number) of the payor                                                                                                                                 |
| PayorName               | Name of the payor                                                                                                                                                                    |
| ClaimType               | <p>Of type ClaimType</p><p>Claim types that RB Claim Pool (Kröfupottur RB) supports:</p><p>·         Default (Regular)</p><p>·         Optional (Optional payment claim)</p><p> </p> |
| BillType                | <p>Of type BillType</p><p>Bill types supported:</p><p>·         None</p><p>·         All</p><p>·         Claim</p><p>·         Unknown</p>                                           |
| IsDebited               | Boolean indicating whether the claim a direct debit claim (ísl. beingreiðslukrafa)                                                                                                   |
| IsInElectronicDocuments | Boolean indicating whether there is an electronic document available for the invoice in the RB Display System.                                                                       |
| IsForwardPayment        | Boolean indicating whether this a forward payment (ísl. framvirk greiðsla). If true, the claim will be paid on a specific day in the future.                                         |
| IsSettlementFee         | Boolean indicating whether there is a settlement fee (ísl. uppgreiðslugjald).                                                                                                        |
| IsDeposit               | Boolean indicating whether it is possible to make a partial payment to the claim.                                                                                                    |
| Details                 | Of type [BillDetailsInfo](#billdetailsinfo). Only returned in the output of the *GetBillDetails* function.                                                                           |

### BillDetailsInfo

&#x20;The BillDetailsInfo class contains detailed information about an invoice.

| Parameter                           | Description                                                                                                       |
| ----------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| ClaimantName                        | Name of claimant                                                                                                  |
| ClaimantAddress                     | Address of the claimant. Of type [Address](#address)                                                              |
| PayorName                           | Name of payor                                                                                                     |
| PayorAddress                        | Address of the payor. Of type [Address](#address)                                                                 |
| CancellationDate                    | Cancellation date                                                                                                 |
| Amount                              | Amount (ísl. höfuðstóll)                                                                                          |
| DefaultInterest                     | Default interest amount (ísl. dráttarvextir)                                                                      |
| DefaultInterestPercent              | Default interest percentage                                                                                       |
| DefaultCosts                        | Default costs (ísl. vanskilagjald)                                                                                |
| OtherDefaultCosts                   | Other default costs (ísl. annar vanskilakostnaður)                                                                |
| OtherCosts                          | Other costs                                                                                                       |
| Discount                            | Discount                                                                                                          |
| CategoryCode                        | Category code (ísl. textalykill) Example: 93, FE, etc.                                                            |
| NotificationFee                     | Notification fee (ísl. tilkynningargjald)                                                                         |
| CustomerNumber                      | Customer number defined by the claimant. E.g., used in direct debits. Rarely used in regular claims.              |
| Reference                           | Reference number (ísl. tilvísunarnúmer)                                                                           |
| ElectronicDocumentsUrl              | URL for electronic document. <mark style="color:red;">This is not implemented and returns an empty string</mark>. |
| DebitBank                           | Bank number of debited account                                                                                    |
| DebitLedger                         | Ledger number of debited account (ísl. höfuðbók)                                                                  |
| DebitAccountNumber                  | Account number of debited account                                                                                 |
| NominalAmount                       | Amount of nominal payment (ísl. nafnverðsafborgun) without all cost items                                         |
| IndexationAmount                    | Amount of indexation on payment (ísl. verðbætur)                                                                  |
| IndexationInterestsAmount           | Interest on indexation (ísl. vextir á verðbótum)                                                                  |
| NominalAmountRemainder AfterPayment | Remaining nominal value (ísl. nafnverð) after payment                                                             |
| TotalRemainderAmountAfterPayment    | Total outstanding amount, including any indexation adjustments, that remains after a payment has been made.       |
| InterestsAmount                     | Interest on nominal repayment (ísl. nafnverðsafborgun)                                                            |
| CurrencyInformation                 | Of type *CurrencyInformation*. Includes information for claims in foreign currency.                               |
| CurrencyInformation.Amount          | Amount in foreign currency without incurred cost                                                                  |
| CurrencyInformation.Amount.Currency | Currency of claim in foreign currency                                                                             |
| CurrencyInformation.Rate            | Exchange rate                                                                                                     |

### Address&#x20;

The Address class contains information about a home address.

| Parameter         | Description          |
| ----------------- | -------------------- |
| Street            | Street name          |
| PostalCode        | Postal code          |
| Town              | Municipality/city    |
| PostalCodeAndTown | Postal code and town |

### Amount&#x20;

The Amount class contains information on amounts.

| Parameter       | Description                             |
| --------------- | --------------------------------------- |
| DefaultCurrency | Default currency for amount             |
| Value           | Amount                                  |
| Currency        | Currency in which the amount is stated. |

### BankErrorFault

The BankErrorFault class contains information about errors that occur during calls to the service.

| Output           | Description                                         |
| ---------------- | --------------------------------------------------- |
| GeneralErrorCode | General error code                                  |
| GeneralErrorText | General error text, e.g., Business logic error      |
| SourceErrorCode  | Error code from underlying system. Not Implemented. |
| SourceErrorText  | Error text from underlying system. Not Implemented. |
| BanksErrorCode   | Technical error code from underlying system.        |
| BanksErrorText   | Technical error text from underlying system.        |
