# File content

## Invoice (Faktura/Kreditnota)

The invoice file contain these columns

<table><thead><tr><th width="150">Field</th><th>Field name</th><th width="150">Required</th><th width="150" data-type="number">Length</th><th>Comment</th></tr></thead><tbody><tr><td>F1</td><td>Transaction code</td><td>Yes</td><td>1</td><td>Fixed value: 1 or 9 (Invoice/Credit note)</td></tr><tr><td>F2</td><td>Customer no.</td><td>Yes</td><td>4</td><td>Fixed value: Given by SG Finans</td></tr><tr><td>F3</td><td>Debtor no.</td><td>Yes</td><td>9</td><td>Customer number</td></tr><tr><td>F4</td><td>Invoice no.</td><td>Yes</td><td>8</td><td>Invoice number</td></tr><tr><td>F5</td><td>Invoice date</td><td>Yes</td><td>6</td><td>Invoice date, YYMMDD</td></tr><tr><td>F6</td><td>Due date</td><td>Yes</td><td>6</td><td>Due date, YYMMDD</td></tr><tr><td>F7</td><td>Amount</td><td>Yes</td><td>11</td><td>Amount, in ører </td></tr><tr><td>F8</td><td>Discount/terms<br>Reference to invoice</td><td>No</td><td>5</td><td>Days/discount (Invoice)<br>Invoice credited (Credit note)</td></tr><tr><td>F9</td><td>Not in use</td><td>No</td><td>10</td><td></td></tr><tr><td>F10</td><td>Order no.</td><td>No</td><td>15</td><td>Free text about invoice</td></tr><tr><td>F11</td><td>Comment</td><td>No</td><td>25</td><td>Comment to invoice</td></tr><tr><td>F12</td><td>Sales person no.</td><td>No</td><td>4</td><td></td></tr><tr><td>F13</td><td>Project no.</td><td>No</td><td>7</td><td></td></tr><tr><td>F14</td><td>Currency code</td><td>No</td><td>3</td><td>Eg. NOK</td></tr><tr><td>F15</td><td>Currency amount</td><td>No</td><td>11</td><td></td></tr><tr><td>F16</td><td>Not in use</td><td>No</td><td>3</td><td></td></tr></tbody></table>

## Customers (Kunder)

The customer file contains these columns

<table><thead><tr><th width="150">Field</th><th>Field name</th><th width="150">Required</th><th width="150" data-type="number">Length</th><th>Comment</th></tr></thead><tbody><tr><td>K1</td><td>Control character</td><td>Yes</td><td>1</td><td>Fixed value: K</td></tr><tr><td>K2</td><td>Version number</td><td>Yes</td><td>4</td><td>Fixed value: 9409</td></tr><tr><td>K3</td><td>Customer no.</td><td>Yes</td><td>4</td><td>Fixed value, given by SG Finans.</td></tr><tr><td>K4</td><td>Debtor no.</td><td>Yes</td><td>9</td><td>Customer number</td></tr><tr><td>K5</td><td>Organization no./<br>Date of birth</td><td>Yes</td><td>11</td><td>Customer organization number</td></tr><tr><td>K6</td><td>Last name/<br>Company name</td><td>Yes</td><td>35</td><td>Can not start using AS etc</td></tr><tr><td>K7</td><td>First name</td><td>No</td><td>20</td><td></td></tr><tr><td>K8</td><td>Address</td><td>Yes</td><td>30</td><td>Postal address</td></tr><tr><td>K9</td><td>Zip code</td><td>Yes</td><td>4</td><td></td></tr><tr><td>K10</td><td>Post place</td><td>Yes</td><td>23</td><td></td></tr><tr><td>K11</td><td>Contact person</td><td>No</td><td>20</td><td></td></tr><tr><td>K12</td><td>Telephone no.</td><td>No</td><td>12</td><td></td></tr><tr><td>K13</td><td>Country</td><td>No</td><td>20</td><td>Name of country</td></tr><tr><td>K14</td><td>Country code, alpha2</td><td>Yes</td><td>2</td><td></td></tr><tr><td>K15</td><td>Country code, number</td><td>Yes</td><td>3</td><td></td></tr><tr><td>K16</td><td>Bank giro number</td><td>No</td><td>11</td><td></td></tr><tr><td>K17</td><td>District no./ <br>Ssalesperson no.</td><td>No</td><td>4</td><td></td></tr><tr><td>K18</td><td>Name 2</td><td>No</td><td>35</td><td></td></tr><tr><td>K19</td><td>Currency code</td><td>Yes</td><td>3</td><td>Eg. NOK</td></tr><tr><td>K20</td><td>Not used</td><td>No</td><td>3</td><td></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.milientsoftware.com/help/moment-by-topic/integrations/file-exports/file-export-accounting-system/factoring/sg-finans/file-content.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
