GET

Description

Retrieves a list of supplier invoice file connections or a single supplier invoice file connection.

URL structure

https://api.fortnox.se/3/supplierinvoicefileconnections/{FileId}

Method

GET

Version

3

Response

The supplier invoice file connections register can return a list of records or a single record. By specifying a FileId in the URL, a single record will be returned. Not specifying a FileId will return a list of records.

<?xml version="1.0" encoding="UTF-8"?>
<SupplierInvoiceFileConnections TotalResources="" TotalPages="0" CurrentPage="1">
  <SupplierInvoiceFileConnectionSubset url="https://api.fortnox.se/3/supplierinvoicefileconnections/6ca8f818-1024-4a02-ae37-a6e45c7c8a0c">
    <FileId>6ca8f818-1024-4a02-ae37-a6e45c7c8a0c</FileId>
    <Name>fakt1.png</Name>
    <SupplierInvoiceNumber>1</SupplierInvoiceNumber>
    <SupplierName>Telefoniföretaget AB</SupplierName>
  </SupplierInvoiceFileConnectionSubset>

  [...]

  <SupplierInvoiceFileConnectionSubset url="https://api.fortnox.se/3/supplierinvoicefileconnections/63a69c87-e7d6-418e-9be2-67029254d73f">
    <FileId>63a69c87-e7d6-418e-9be2-67029254d73f</FileId>
    <Name>fakt3.png</Name>
    <SupplierInvoiceNumber>3</SupplierInvoiceNumber>
    <SupplierName>Telefoniföretaget AB</SupplierName>
  </SupplierInvoiceFileConnectionSubset>
</SupplierInvoiceFileConnections>
<?xml version="1.0" encoding="UTF-8"?>
<SupplierInvoiceFileConnection url="https://api.fortnox.se/3/supplierinvoicefileconnections/6ca8f818-1024-4a02-ae37-a6e45c7c8a0c">
  <FileId>6ca8f818-1024-4a02-ae37-a6e45c7c8a0c</FileId>
  <Name>fakt1.png</Name>
  <SupplierInvoiceNumber>1</SupplierInvoiceNumber>
  <SupplierName>Telefoniföretaget AB</SupplierName>
</SupplierInvoiceFileConnection>
{
  "MetaInformation": {
    "@TotalResources": null,
    "@TotalPages": 0,
    "@CurrentPage": 1
  },
  "SupplierInvoiceFileConnections": [
    {
      "@url": "https://api.fortnox.se/3/supplierinvoicefileconnections/6ca8f818-1024-4a02-ae37-a6e45c7c8a0c",
      "FileId": "6ca8f818-1024-4a02-ae37-a6e45c7c8a0c",
      "Name": "fakt1.png",
      "SupplierInvoiceNumber": "1",
      "SupplierName": "Telefoniföretaget AB"
    },

    [...]

    {
      "@url": "https://api.fortnox.se/3/supplierinvoicefileconnections/63a69c87-e7d6-418e-9be2-67029254d73f",
      "FileId": "63a69c87-e7d6-418e-9be2-67029254d73f",
      "Name": "fakt3.png",
      "SupplierInvoiceNumber": "3",
      "SupplierName": "Telefoniföretaget AB"
    }
  ]
}
{
  "SupplierInvoiceFileConnection": {
    "@url": "https://api.fortnox.se/3/supplierinvoicefileconnections/6ca8f818-1024-4a02-ae37-a6e45c7c8a0c",
    "FileId": "6ca8f818-1024-4a02-ae37-a6e45c7c8a0c",
    "Name": "fakt1.png",
    "SupplierInvoiceNumber": "1",
    "SupplierName": "Telefoniföretaget AB"
  }
}

POST

Description

Creates an supplier invoice file connection.

URL structure

https://api.fortnox.se/3/supplierinvoicefileconnections

Method

POST

Version

3

Request

The request body should contain a structure of a supplier invoice file connection, either in JSON or XML.

<?xml version="1.0" encoding="UTF-8"?>
<SupplierInvoiceFileConnection>
  <FileId>6ca8f818-1024-4a02-ae37-a6e45c7c8a0c</FileId>
  <SupplierInvoiceNumber>1</SupplierInvoiceNumber>
</SupplierInvoiceFileConnection>
{
  "SupplierInvoiceFileConnection": {
    "FileId": "6ca8f818-1024-4a02-ae37-a6e45c7c8a0c",
    "SupplierInvoiceNumber": 1
  }
}

Response

The response should contain the created supplier invoice file connection, in either JSON or XML.

<?xml version="1.0" encoding="UTF-8"?>
<SupplierInvoiceFileConnection url="https://api.fortnox.se/3/supplierinvoicefileconnections/6ca8f818-1024-4a02-ae37-a6e45c7c8a0c">
  <FileId>6ca8f818-1024-4a02-ae37-a6e45c7c8a0c</FileId>
  <Name>fakt1.png</Name>
  <SupplierInvoiceNumber>1</SupplierInvoiceNumber>
  <SupplierName>Telefoniföretaget AB</SupplierName>
</SupplierInvoiceFileConnection>
{
  "SupplierInvoiceFileConnection": {
    "@url": "https://api.fortnox.se/3/supplierinvoicefileconnections/6ca8f818-1024-4a02-ae37-a6e45c7c8a0c",
    "FileId": "6ca8f818-1024-4a02-ae37-a6e45c7c8a0c",
    "Name": "fakt1.png",
    "SupplierInvoiceNumber": "1",
    "SupplierName": "Telefoniföretaget AB"
  }
}

DELETE

Description

Removes an supplier invoice file connection.

URL structure

https://api.fortnox.se/3/supplierinvoicefileconnections/{FileId}

Method

DELETE

Version

3

Request

The request body should be empty.

Response

The response body should be empty.

Fields

Field Description Limits Type Searchable Sortable Required R/W
Url Direct URL to the record String R
FileId Id of the file String Yes R/W
Name Name of the file String R
SupplierInvoiceNumber Supplier invoice number String Yes Yes R/W
SupplierName Name of the supplier String R