GET

Description

Retrieves a single supplier invoice external URL connection

URL structure

https://api.fortnox.se/3/supplierinvoiceexternalurlconnections/{Id}

Method

GET

Version

3

Response

By specifying an Id in the URL, a single record will be returned.

<?xml version="1.0" encoding="UTF-8"?>
<SupplierInvoiceExternalURLConnection url="https://api.fortnox.se/3/supplierinvoiceexternalurlconnections/3">
	<Id>3</Id>
	<SupplierInvoiceNumber>15</SupplierInvoiceNumber>
	<ExternalURLConnection>http://example.com/image.jpg</ExternalURLConnection>
</SupplierInvoiceExternalURLConnection>
{
  "SupplierInvoiceExternalURLConnection": {
    "@url": "https://api.fortnox.se/3/supplierinvoiceexternalurlconnections/3",
    "Id": 3,
    "SupplierInvoiceNumber": 15,
    "ExternalURLConnection": "http://example.com/image.jpg"
  }
}

POST

Description

Creates an supplier invoice external URL connection.

URL structure

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

Method

POST

Version

3

Request

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

<?xml version="1.0" encoding="UTF-8"?>
<SupplierInvoiceExternalURLConnection>
	<SupplierInvoiceNumber>10</SupplierInvoiceNumber>
	<ExternalURLConnection>http://example.com/image.jpg</ExternalURLConnection>
</SupplierInvoiceExternalURLConnection>
{
  "SupplierInvoiceExternalURLConnection": {
    "SupplierInvoiceNumber": 10,
    "ExternalURLConnection": "http://example.com/image.jpg"
  }
}

Response

The response should contain the created supplier invoice external URL connection in either JSON or XML.

<?xml version="1.0" encoding="UTF-8"?>
<SupplierInvoiceExternalURLConnection url="https://api.fortnox.se/3/supplierinvoiceexternalurlconnections/4">
	<Id>4</Id>
	<SupplierInvoiceNumber>10</SupplierInvoiceNumber>
	<ExternalURLConnection>http://example.com/image.jpg</ExternalURLConnection>
</SupplierInvoiceExternalURLConnection>
{
  "SupplierInvoiceExternalURLConnection": {
    "@url": "https://api.fortnox.se/3/supplierinvoiceexternalurlconnections/4",
    "Id": 4,
    "SupplierInvoiceNumber": 10,
    "ExternalURLConnection": "http://example.com/image.jpg"
  }
}

PUT

Description

Updates a supplier invoice external URL connection.

URL structure

https://api.fortnox.se/3/supplierinvoiceexternalurlconnections/{Id}

Method

PUT

Version

3

Request

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

<?xml version="1.0" encoding="UTF-8"?>
<SupplierInvoiceExternalURLConnection>
	<SupplierInvoiceNumber>10</SupplierInvoiceNumber>
	<ExternalURLConnection>http://example.com/</ExternalURLConnection>
</SupplierInvoiceExternalURLConnection>
{
  "SupplierInvoiceExternalURLConnection": {
    "SupplierInvoiceNumber": 10,
    "ExternalURLConnection": "http://example.com/"
  }
}

Response

The response should contain the updated supplier invoice external URL connection in either JSON or XML.

<?xml version="1.0" encoding="UTF-8"?>
<SupplierInvoiceExternalURLConnection url="https://api.fortnox.se/3/supplierinvoiceexternalurlconnections/4">
	<Id>4</Id>
	<SupplierInvoiceNumber>10</SupplierInvoiceNumber>
	<ExternalURLConnection>http://example.com/</ExternalURLConnection>
</SupplierInvoiceExternalURLConnection>
{
  "SupplierInvoiceExternalURLConnection": {
    "@url": "https://api.fortnox.se/3/supplierinvoiceexternalurlconnections/4",
    "Id": 4,
    "SupplierInvoiceNumber": 10,
    "ExternalURLConnection": "http://example.com/"
  }
}

DELETE

Description

Removes a supplier invoice external URL connection.

URL structure

https://api.fortnox.se/3/supplierinvoiceexternalurlconnections/{Id}

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
Id Id of the connection Integer R
SupplierInvoiceNumber Supplier invoice number Integer Yes R/W*
ExternalURLConnection URL of the connection String R/W

* Only writable during POST.