Please enable JavaScript to view this site.

Made in EU
Fortnox Forums

Navigation: Catalog: Fortnox > Schemas > Schema: Invoices > Tables

InvoiceByDocumentNumber

Retrieve a single invoice

Catalog: Fortnox

Schema: Invoices

Label: {res:itgen_fnx_invoicebydocumentnumber_plural}

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 InvoiceByDocumentNumber. 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

DocumentNumber

string

 

identifies the invoice

financialyear

int64

 

Selects what financial year that should be used (does not work on every table).

financialyeardate

datetime

 

Selects by date, what financial year that should be used (does not work on every table).

fromdate

datetime

 

Defines a selection based on a start date. Only available for invoices, orders, offers, vouchers and supplierinvoices (does not work on every table).

lastmodified

datetime

 

Retrieves all records since the provided timestamp (does not work on every table).

todate

datetime

 

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 InvoiceByDocumentNumber are shown below. Each column has an SQL data type.

Name

Data Type

Label

Required

Documentation

Invoice__url

string

{res:itgen_fnx_invoice__url}

 

Invoice__urlTaxReductionList

string

{res:itgen_fnx_invoice__urltaxreductionlist}

 

Invoice_AccountingMethod

string

{res:itgen_fnx_invoice_accountingmethod}

 

Invoice_Address1

string

{res:itgen_fnx_invoice_address1}

 

Invoice_Address2

string

{res:itgen_fnx_invoice_address2}

 

Invoice_AdministrationFee

double

{res:itgen_fnx_invoice_administrationfee}

 

Invoice_AdministrationFeeVAT

double

{res:itgen_fnx_invoice_administrationfeevat}

 

Invoice_Balance

double

{res:itgen_fnx_invoice_balance}

 

Invoice_BasisTaxReduction

double

{res:itgen_fnx_invoice_basistaxreduction}

 

Invoice_Booked

boolean

{res:itgen_fnx_invoice_booked}

 

Invoice_Cancelled

boolean

{res:itgen_fnx_invoice_cancelled}

 

Invoice_City

string(1024)

{res:itgen_fnx_invoice_city}

 

Invoice_Comments

string(1024)

{res:itgen_fnx_invoice_comments}

 

Invoice_ContractReference

int32

{res:itgen_fnx_invoice_contractreference}

 

Invoice_ContributionPercent

double

{res:itgen_fnx_invoice_contributionpercent}

 

Invoice_ContributionValue

double

{res:itgen_fnx_invoice_contributionvalue}

 

Invoice_CostCenter

string

{res:itgen_fnx_invoice_costcenter}

 

Invoice_Country

string

{res:itgen_fnx_invoice_country}

 

Invoice_Credit

string

{res:itgen_fnx_invoice_credit}

 

Invoice_CreditInvoiceReference

string

{res:itgen_fnx_invoice_creditinvoicereference}

 

Invoice_Currency

string

{res:itgen_fnx_invoice_currency}

 

Invoice_CurrencyRate

double

{res:itgen_fnx_invoice_currencyrate}

 

Invoice_CurrencyUnit

int32

{res:itgen_fnx_invoice_currencyunit}

 

Invoice_CustomerName

string

{res:itgen_fnx_invoice_customername}

 

Invoice_CustomerNumber

string

{res:itgen_fnx_invoice_customernumber}

 

Invoice_DeliveryAddress1

string(1024)

{res:itgen_fnx_invoice_deliveryaddress1}

 

Invoice_DeliveryAddress2

string(1024)

{res:itgen_fnx_invoice_deliveryaddress2}

 

Invoice_DeliveryCity

string(1024)

{res:itgen_fnx_invoice_deliverycity}

 

Invoice_DeliveryCountry

string

{res:itgen_fnx_invoice_deliverycountry}

 

Invoice_DeliveryDate

datetime

{res:itgen_fnx_invoice_deliverydate}

 

Invoice_DeliveryName

string(1024)

{res:itgen_fnx_invoice_deliveryname}

 

Invoice_DeliveryZipCode

string(1024)

{res:itgen_fnx_invoice_deliveryzipcode}

 

Invoice_DocumentNumber

string

{res:itgen_fnx_invoice_documentnumber}

 

Invoice_DueDate

datetime

{res:itgen_fnx_invoice_duedate}

 

Invoice_EDIInformation_EDIGlobalLocationNumber

string(13)

{res:itgen_fnx_invoice_ediinformation_edigloballocationnumber}

 

Invoice_EDIInformation_EDIGlobalLocationNumberDelivery

string(13)

{res:itgen_fnx_invoice_ediinformation_edigloballocationnumberdelivery}

 

Invoice_EDIInformation_EDIInvoiceExtra1

string

{res:itgen_fnx_invoice_ediinformation_ediinvoiceextra1}

 

Invoice_EDIInformation_EDIInvoiceExtra2

string

{res:itgen_fnx_invoice_ediinformation_ediinvoiceextra2}

 

Invoice_EDIInformation_EDIOurElectronicReference

string

{res:itgen_fnx_invoice_ediinformation_ediourelectronicreference}

 

Invoice_EDIInformation_EDIStatus

string

{res:itgen_fnx_invoice_ediinformation_edistatus}

 

Invoice_EDIInformation_EDIYourElectronicReference

string

{res:itgen_fnx_invoice_ediinformation_ediyourelectronicreference}

 

Invoice_EmailInformation_EmailAddressBCC

string

{res:itgen_fnx_invoice_emailinformation_emailaddressbcc}

 

Invoice_EmailInformation_EmailAddressCC

string

{res:itgen_fnx_invoice_emailinformation_emailaddresscc}

 

Invoice_EmailInformation_EmailAddressFrom

string

{res:itgen_fnx_invoice_emailinformation_emailaddressfrom}

 

Invoice_EmailInformation_EmailAddressTo

string

{res:itgen_fnx_invoice_emailinformation_emailaddressto}

 

Invoice_EmailInformation_EmailBody

string(20000)

{res:itgen_fnx_invoice_emailinformation_emailbody}

 

Invoice_EmailInformation_EmailSubject

string(100)

{res:itgen_fnx_invoice_emailinformation_emailsubject}

 

Invoice_EUQuarterlyReport

boolean

{res:itgen_fnx_invoice_euquarterlyreport}

 

Invoice_ExternalInvoiceReference1

string(80)

{res:itgen_fnx_invoice_externalinvoicereference1}

 

Invoice_ExternalInvoiceReference2

string(80)

{res:itgen_fnx_invoice_externalinvoicereference2}

 

Invoice_FinalPayDate

datetime

{res:itgen_fnx_invoice_finalpaydate}

 

Invoice_Freight

double

{res:itgen_fnx_invoice_freight}

 

Invoice_FreightVAT

double

{res:itgen_fnx_invoice_freightvat}

 

Invoice_Gross

double

{res:itgen_fnx_invoice_gross}

 

Invoice_HouseWork

boolean

{res:itgen_fnx_invoice_housework}

 

Invoice_InvoiceDate

datetime

{res:itgen_fnx_invoice_invoicedate}

 

Invoice_InvoicePeriodEnd

datetime

{res:itgen_fnx_invoice_invoiceperiodend}

 

Invoice_InvoicePeriodReference

string

{res:itgen_fnx_invoice_invoiceperiodreference}

 

Invoice_InvoicePeriodStart

datetime

{res:itgen_fnx_invoice_invoiceperiodstart}

 

Invoice_InvoiceType

string

{res:itgen_fnx_invoice_invoicetype}

 

Invoice_Language

string

{res:itgen_fnx_invoice_language}

 

Invoice_LastRemindDate

datetime

{res:itgen_fnx_invoice_lastreminddate}

 

Invoice_Net

double

{res:itgen_fnx_invoice_net}

 

Invoice_NotCompleted

boolean

{res:itgen_fnx_invoice_notcompleted}

 

Invoice_NoxFinans

boolean

{res:itgen_fnx_invoice_noxfinans}

 

Invoice_OCR

string

{res:itgen_fnx_invoice_ocr}

 

Invoice_OfferReference

string

{res:itgen_fnx_invoice_offerreference}

 

Invoice_OrderReference

string

{res:itgen_fnx_invoice_orderreference}

 

Invoice_OrganisationNumber

string

{res:itgen_fnx_invoice_organisationnumber}

 

Invoice_OurReference

string(50)

{res:itgen_fnx_invoice_ourreference}

 

Invoice_OutboundDate

datetime

{res:itgen_fnx_invoice_outbounddate}

 

Invoice_PaymentWay

string

{res:itgen_fnx_invoice_paymentway}

 

Invoice_Phone1

string(1024)

{res:itgen_fnx_invoice_phone1}

 

Invoice_Phone2

string(1024)

{res:itgen_fnx_invoice_phone2}

 

Invoice_PriceList

string

{res:itgen_fnx_invoice_pricelist}

 

Invoice_PrintTemplate

string

{res:itgen_fnx_invoice_printtemplate}

 

Invoice_Project

string

{res:itgen_fnx_invoice_project}

 

Invoice_Remarks

string(1024)

{res:itgen_fnx_invoice_remarks}

 

Invoice_Reminders

int32

{res:itgen_fnx_invoice_reminders}

 

Invoice_RoundOff

double

{res:itgen_fnx_invoice_roundoff}

 

Invoice_Sent

boolean

{res:itgen_fnx_invoice_sent}

 

Invoice_TaxReduction

int32

{res:itgen_fnx_invoice_taxreduction}

 

Invoice_TaxReductionType

string

{res:itgen_fnx_invoice_taxreductiontype}

 

Invoice_TermsOfDelivery

string

{res:itgen_fnx_invoice_termsofdelivery}

 

Invoice_TermsOfPayment

string

{res:itgen_fnx_invoice_termsofpayment}

 

Invoice_TimeBasisReference

int32

{res:itgen_fnx_invoice_timebasisreference}

 

Invoice_Total

double

{res:itgen_fnx_invoice_total}

 

Invoice_TotalToPay

double

{res:itgen_fnx_invoice_totaltopay}

 

Invoice_TotalVAT

double

{res:itgen_fnx_invoice_totalvat}

 

Invoice_VATIncluded

boolean

{res:itgen_fnx_invoice_vatincluded}

 

Invoice_VoucherNumber

int32

{res:itgen_fnx_invoice_vouchernumber}

 

Invoice_VoucherSeries

string

{res:itgen_fnx_invoice_voucherseries}

 

Invoice_VoucherYear

int32

{res:itgen_fnx_invoice_voucheryear}

 

Invoice_WarehouseReady

boolean

{res:itgen_fnx_invoice_warehouseready}

 

Invoice_WayOfDelivery

string

{res:itgen_fnx_invoice_wayofdelivery}

 

Invoice_YourOrderNumber

string(75)

{res:itgen_fnx_invoice_yourordernumber}

 

Invoice_YourReference

string(50)

{res:itgen_fnx_invoice_yourreference}

 

Invoice_ZipCode

string(1024)

{res:itgen_fnx_invoice_zipcode}

 

 

03-06-2025 18:15 Version 24.1.110-BETA+5438

X

Important Safety and Usage Information

Intended Use and Limitations: This software, developed by Invantive, is designed to support a variety of business and information technology data processing functions, such as accounting, financial reporting an sales reporting. It is important to note that this software is not designed, tested, or approved for use in environments where malfunction or failure could lead to life-threatening situations or severe physical or environmental damage. This includes, but is not limited to:

  • Nuclear facilities: The software should not be used for operations or functions related to the control, maintenance, or operation of nuclear facilities.
  • Defense and Military Applications: This software is not suitable for use in defense-related applications, including but not limited to weaponry control, military strategy planning, or any other aspects of national defense.
  • Aviation: The software is not intended for use in the operation, navigation, or communication systems of any aircraft or air traffic control environments.
  • Healthcare and Medicine Production: This software should not be utilized for medical device operation, patient data analysis for critical health decisions, pharmaceutical production, or medical research where its failure or malfunction could impact patient health.
  • Chemical and Hazardous Material Handling: This software is not intended for the management, control, or operational aspects of chemical plants or hazardous material handling facilities. Any malfunction in software used in these settings could result in dangerous chemical spills, explosions, or environmental disasters.
  • Transportation and Traffic Control Systems: The software should not be used for the control, operation, or management of transportation systems, including railway signal controls, subway systems, or traffic light management. Malfunctions in such critical systems could lead to severe accidents and endanger public safety.
  • Energy Grid and Utility Control Systems: This software is not designed for the control or operation of energy grid systems, including electrical substations, renewable energy control systems, or water utility control systems. The failure of software in these areas could lead to significant power outages, water supply disruptions, or other public utility failures, potentially endangering communities and causing extensive damage.
  • Other High-Risk Environments: Any other critical infrastructure and environments where a failure of the software could result in significant harm to individuals or the environment.

User Responsibility: Users must ensure that they understand the intended use of the software and refrain from deploying it in any setting that falls outside of its designed purpose. It is the responsibility of the user to assess the suitability of the software for their intended application, especially in any scenarios that might pose a risk to life, health, or the environment.

Disclaimer of Liability: Invantive disclaims any responsibility for damage, injury, or legal consequences resulting from the use or misuse of this software in prohibited or unintended applications.

  
Disclaimer