# FinancialInvoiceByNumber: Fortnox Financial Invoice by Number
Retrieve a single invoice payment
Retrieves the status and balance of an invoice sent to Fortnox Finans.
You need to supply the invoice number in Fortox to retrieve the invoice.
Note that invoices sent with the old "Noxbox" platform will not have the "ServiceName"
property in the response. This new property is added to the response if the invoice is
sent with the new finance service.
Response explanation for Service and ServiceName
Service:
LEDGERBASE: if the invoice is sent by using the old "Noxbox" platform, or the new finance service with the subtypes "Service Full" or "Service Light". These services are explained above in the "Fortnox Finans services" section
REMINDER: If the invoice is sent by the new finance service, with the service Reminder Service
ServiceName (only provided for new finance service invoices):
SERVICE_FULL: Ledgerbase service with automatic reminders is used
SERVICE_LIGHT: Ledgerbase service without automatic reminders is used.
REMINDER_SERVICE: Reminder service is used
## Documentation
<p>
Retrieves the status and balance of an invoice sent to Fortnox Finans.
You need to supply the invoice number in Fortox to retrieve the invoice.
<p>
<b>Note that</b> invoices sent with the old "Noxbox" platform will not have the "ServiceName"
property in the response. This new property is added to the response if the invoice is
sent with the new finance service.
<p>
Response explanation for <b>Service</b> and <b>ServiceName</b>
<p>
<b>Service:</b>
<ul>
<li><b>LEDGERBASE</b>: if the invoice is sent by using the old "Noxbox" platform, or the new finance service with the subtypes "Service Full" or "Service Light". These services are explained above in the "Fortnox Finans services" section</li>
<li><b>REMINDER</b>: If the invoice is sent by the new finance service, with the service Reminder Service</li>
</ul>
<p>
<b>ServiceName</b> (only provided for <u>new finance service</u> invoices):
<ul>
<li><b>SERVICE_FULL</b>: Ledgerbase service <u>with</u> automatic reminders is used</li>
<li><b>SERVICE_LIGHT</b>: Ledgerbase service <u>without</u> automatic reminders is used.</li>
<li><b>REMINDER_SERVICE</b>: Reminder service is used</li>
</ul>
- Catalog: `Fortnox`
- Schema: `FinanceInvoices`
- Label: Financial Invoice by Number
This is a read-only table function. The Fortnox API may not support changing the data or the Invantive UniversalSQL driver for Fortnox does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Fortnox API.
## Parameters of Table Function
The following parameters can be used to control the behaviour of the table function `FinancialInvoiceByNumber`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values.
Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three.
Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third.
| Name | Data Type | Required | Default Value | Documentation |
|---|:---:|:---:|:---:|---|
| `Number` | `` | ☑ | | The Fortnox invoice number |
| `financialyear` | `` | ☐ | | Selects what financial year that should be used (does not work on every table). |
| `financialyeardate` | `` | ☐ | | Selects by date, what financial year that should be used (does not work on every table). |
| `fromdate` | `` | ☐ | | Defines a selection based on a start date. Only available for invoices, orders, offers, vouchers and supplierinvoices (does not work on every table). |
| `lastmodified` | `` | ☐ | | Retrieves all records since the provided timestamp (does not work on every table). |
| `todate` | `` | ☐ | | Defines a selection based on an end date. Only available for invoices, orders, offers, vouchers and supplierinvoices (does not work on every table). |
## Columns of Table Function
The columns of the table function `FinancialInvoiceByNumber` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `NoxFinansInvoice_BalanceIncludeFeesCurrency` | `double` | Nox Finans Invoice Balance Include Fees Currency | ☐ | |
| `NoxFinansInvoice_BalanceIncludeFees` | `double` | Nox Finans Invoice Balance Include Fees | ☐ | |
| `NoxFinansInvoice_CurrentCapitalBalanceCurrency` | `double` | Nox Finans Invoice Current Capital Balance Currency | ☐ | |
| `NoxFinansInvoice_CurrentCapitalBalance` | `double` | Nox Finans Invoice Current Capital Balance | ☐ | |
| `NoxFinansInvoice_InvoiceDocumentURL` | `varchar2` | Nox Finans Invoice Document URL | ☐ | |
| `NoxFinansInvoice_InvoiceNumber` | `int32` | Nox Finans Invoice Number | ☐ | |
| `NoxFinansInvoice_NextEventDate` | `datetime` | Nox Finans Invoice Next Event Date | ☐ | |
| `NoxFinansInvoice_NextEvent` | `varchar2` | Nox Finans Invoice Next Event | ☐ | |
| `NoxFinansInvoice_OCRNumber` | `varchar2` | Nox Finans Invoice Ocr Number | ☐ | |
| `NoxFinansInvoice_ServiceName` | `varchar2` | Nox Finans Invoice Service Name | ☐ | |
| `NoxFinansInvoice_Service` | `varchar2` | Nox Finans Invoice Service | ☐ | |
| `NoxFinansInvoice_Status` | `varchar2` | Nox Finans Invoice Status | ☐ | |
| `NoxFinansInvoice__url` | `varchar2` | Nox Finans Invoice URL | ☐ | |