Table of Contents
Registering new cash sale
Cash sales are used when you receive payment at the time of sale, for instance a shop
There are several ways to find the right URL to post new items to. In this example we will fetch all products, and then
find the self
relation under _links
.
Exchange #1
Request
GET https://.../url-1
Accept: application/hal+json, application/vnd.error+json
Response
200 OK
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Type: application/hal+json;charset=UTF-8
Date: ...
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Transfer-Encoding: chunked
X-Request-ID: <random UUID>
{
"_links": {
"self": {
"href": "https://.../url-1"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/sales": [
{
"_links": {
"self": {
"href": "https://.../url-2"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-3"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-4"
},
"alternate": {
"href": "https://.../url-5",
"type": "text/html"
}
},
"date": "2018-09-10",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-66171",
"paid": false,
"lines": [
{
"description": "Papir",
"netPrice": 6000,
"vat": 1500,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Webcam",
"netPrice": 174900,
"vat": 43725,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Ziploc-pose",
"netPrice": 5500,
"vat": 1375,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Papir",
"netPrice": 6000,
"vat": 1500,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Harddisk",
"netPrice": 146500,
"vat": 36625,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-6"
},
{
"_links": {
"self": {
"href": "https://.../url-7"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-8"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-9"
},
"alternate": {
"href": "https://.../url-10",
"type": "text/html"
}
},
"date": "2018-12-09",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-70948",
"paid": false,
"lines": [
{
"description": "Batterieleminator",
"netPrice": 9900,
"vat": 2475,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Minnekort EyeFi",
"netPrice": 532800,
"vat": 133200,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Teleskopstige",
"netPrice": 99500,
"vat": 24875,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Tastatur og mus",
"netPrice": 62500,
"vat": 15625,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "GSM Strømstyrer",
"netPrice": 119900,
"vat": 29975,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-11"
},
{
"_links": {
"self": {
"href": "https://.../url-12"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-13"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-14"
},
"alternate": {
"href": "https://.../url-15",
"type": "text/html"
}
},
"date": "2018-04-13",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-31699",
"paid": false,
"lines": [
{
"description": "Kabel-utstyr",
"netPrice": 55600,
"vat": 13900,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Wlan-adapter",
"netPrice": 31700,
"vat": 7925,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-16"
},
{
"_links": {
"self": {
"href": "https://.../url-17"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-18"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-19"
},
"alternate": {
"href": "https://.../url-20",
"type": "text/html"
}
},
"date": "2018-06-06",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-68780",
"paid": false,
"lines": [
{
"description": "Ziploc-pose",
"netPrice": 5500,
"vat": 1375,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-21"
},
{
"_links": {
"self": {
"href": "https://.../url-22"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-23"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-24"
},
"alternate": {
"href": "https://.../url-25",
"type": "text/html"
}
},
"date": "2018-07-13",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-10337",
"paid": false,
"lines": [
{
"description": "Transformator",
"netPrice": 15900,
"vat": 3975,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Trådløs router",
"netPrice": 271700,
"vat": 67925,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Ledninger",
"netPrice": 31000,
"vat": 7750,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-26"
},
{
"_links": {
"self": {
"href": "https://.../url-27"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-28"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-29"
},
"alternate": {
"href": "https://.../url-30",
"type": "text/html"
}
},
"date": "2018-05-03",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-34423",
"paid": false,
"lines": [
{
"description": "Batterilader",
"netPrice": 22800,
"vat": 5700,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-31"
},
{
"_links": {
"self": {
"href": "https://.../url-32"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-33"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-34"
},
"alternate": {
"href": "https://.../url-35",
"type": "text/html"
}
},
"date": "2018-12-11",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-68746",
"paid": false,
"lines": [
{
"description": "GSM Strømstyrer",
"netPrice": 119900,
"vat": 29975,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Fugeskum",
"netPrice": 5500,
"vat": 1375,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Ziploc-pose",
"netPrice": 5500,
"vat": 1375,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-36"
},
{
"_links": {
"self": {
"href": "https://.../url-37"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-38"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-39"
},
"alternate": {
"href": "https://.../url-40",
"type": "text/html"
}
},
"date": "2018-05-08",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-63373",
"paid": false,
"lines": [
{
"description": "Serviceavgift regnskap",
"netPrice": 27000,
"vat": 6750,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "IOMega ekstern hdd",
"netPrice": 99800,
"vat": 24950,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Serviceavgift regnskap",
"netPrice": 3000,
"vat": 750,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Internett-radio",
"netPrice": 147800,
"vat": 36950,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Samsung SSD",
"netPrice": 69900,
"vat": 17475,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-41"
},
{
"_links": {
"self": {
"href": "https://.../url-42"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-43"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-44"
},
"alternate": {
"href": "https://.../url-45",
"type": "text/html"
}
},
"date": "2018-10-13",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-26443",
"paid": false,
"lines": [
{
"description": "Serviceavgift regnskap",
"netPrice": 8000,
"vat": 2000,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Harddisk",
"netPrice": 146500,
"vat": 36625,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Webcam",
"netPrice": 174900,
"vat": 43725,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Ziploc-pose",
"netPrice": 5500,
"vat": 1375,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Basestasjon",
"netPrice": 83800,
"vat": 20950,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-46"
},
{
"_links": {
"self": {
"href": "https://.../url-47"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-48"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-49"
},
"alternate": {
"href": "https://.../url-50",
"type": "text/html"
}
},
"date": "2018-12-06",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-67350",
"paid": false,
"lines": [
{
"description": "Batterieleminator",
"netPrice": 9900,
"vat": 2475,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "GSM Strømstyrer",
"netPrice": 149300,
"vat": 37325,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-51"
},
{
"_links": {
"self": {
"href": "https://.../url-52"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-53"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-54"
},
"alternate": {
"href": "https://.../url-55",
"type": "text/html"
}
},
"date": "2018-12-01",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-38317",
"paid": false,
"lines": [
{
"description": "IPcam Bjøberg",
"netPrice": 245500,
"vat": 61375,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Tastatur og mus",
"netPrice": 62500,
"vat": 15625,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-56"
},
{
"_links": {
"self": {
"href": "https://.../url-57"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-58"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-59"
},
"alternate": {
"href": "https://.../url-60",
"type": "text/html"
}
},
"date": "2018-02-05",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-22649",
"paid": false,
"lines": [
{
"description": "Fugeskum",
"netPrice": 5500,
"vat": 1375,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Serviceavgift regnskap",
"netPrice": 3000,
"vat": 750,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Samsung SSD",
"netPrice": 69900,
"vat": 17475,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Samsung SSD",
"netPrice": 69900,
"vat": 17475,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-61"
},
{
"_links": {
"self": {
"href": "https://.../url-62"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-63"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-64"
},
"alternate": {
"href": "https://.../url-65",
"type": "text/html"
}
},
"date": "2018-08-10",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-29302",
"paid": false,
"lines": [
{
"description": "Teleskopstige",
"netPrice": 99500,
"vat": 24875,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "GSM Strømstyrer",
"netPrice": 149300,
"vat": 37325,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-66"
},
{
"_links": {
"self": {
"href": "https://.../url-67"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-68"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-69"
},
"alternate": {
"href": "https://.../url-70",
"type": "text/html"
}
},
"date": "2018-09-03",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-86808",
"paid": false,
"lines": [
{
"description": "Ziploc-pose",
"netPrice": 5500,
"vat": 1375,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Webhotell",
"netPrice": 42000,
"vat": 10500,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Kabel-utstyr",
"netPrice": 55600,
"vat": 13900,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Hammer",
"netPrice": 69900,
"vat": 17475,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Batterilader",
"netPrice": 22800,
"vat": 5700,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-71"
},
{
"_links": {
"self": {
"href": "https://.../url-72"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-73"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-74"
},
"alternate": {
"href": "https://.../url-75",
"type": "text/html"
}
},
"date": "2018-02-03",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-77241",
"paid": false,
"lines": [
{
"description": "Minnekort EyeFi",
"netPrice": 532800,
"vat": 133200,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Fugeskum",
"netPrice": 5500,
"vat": 1375,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-76"
},
{
"_links": {
"self": {
"href": "https://.../url-77"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-78"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-79"
},
"alternate": {
"href": "https://.../url-80",
"type": "text/html"
}
},
"date": "2018-07-05",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-66026",
"paid": false,
"lines": [
{
"description": "Bærbar PC",
"netPrice": 907800,
"vat": 226950,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-81"
},
{
"_links": {
"self": {
"href": "https://.../url-82"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-83"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-84"
},
"alternate": {
"href": "https://.../url-85",
"type": "text/html"
}
},
"date": "2018-09-12",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-3053",
"paid": false,
"lines": [
{
"description": "Teleskopstige",
"netPrice": 99500,
"vat": 24875,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "GSM Strømstyrer",
"netPrice": 149300,
"vat": 37325,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Teleskopstige",
"netPrice": 99500,
"vat": 24875,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "IPcam Bjøberg",
"netPrice": 245500,
"vat": 61375,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Webcam",
"netPrice": 174900,
"vat": 43725,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-86"
},
{
"_links": {
"self": {
"href": "https://.../url-87"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-88"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-89"
},
"alternate": {
"href": "https://.../url-90",
"type": "text/html"
}
},
"date": "2018-03-06",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-95017",
"paid": false,
"lines": [
{
"description": "GSM Strømstyrer",
"netPrice": 149300,
"vat": 37325,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-91"
},
{
"_links": {
"self": {
"href": "https://.../url-92"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-93"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-94"
},
"alternate": {
"href": "https://.../url-95",
"type": "text/html"
}
},
"date": "2018-09-06",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-38761",
"paid": false,
"lines": [
{
"description": "Minnekort EyeFi",
"netPrice": 532800,
"vat": 133200,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Porto",
"netPrice": 8100,
"vat": 2025,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Serviceavgift regnskap",
"netPrice": 27000,
"vat": 6750,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-96"
},
{
"_links": {
"self": {
"href": "https://.../url-97"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-98"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-99"
},
"alternate": {
"href": "https://.../url-100",
"type": "text/html"
}
},
"date": "2018-07-13",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-72414",
"paid": false,
"lines": [
{
"description": "Serviceavgift regnskap",
"netPrice": 27000,
"vat": 6750,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Samsung SSD",
"netPrice": 69900,
"vat": 17475,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Batterilader",
"netPrice": 22800,
"vat": 5700,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-101"
},
{
"_links": {
"self": {
"href": "https://.../url-102"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-103"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-104"
},
"alternate": {
"href": "https://.../url-105",
"type": "text/html"
}
},
"date": "2018-08-05",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-30468",
"paid": false,
"lines": [
{
"description": "Harddisk",
"netPrice": 146500,
"vat": 36625,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Batterieleminator",
"netPrice": 9900,
"vat": 2475,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "GSM Strømstyrer",
"netPrice": 119900,
"vat": 29975,
"account": "3000",
"vatType": "HIGH"
},
{
"description": "Tastatur og mus",
"netPrice": 62500,
"vat": 15625,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-106"
},
{
"_links": {
"self": {
"href": "https://.../url-107"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-108"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-109"
},
"alternate": {
"href": "https://.../url-110",
"type": "text/html"
}
},
"date": "2018-08-08",
"kind": "EXTERNAL_INVOICE",
"identifier": "2018-1200",
"paid": false,
"lines": [
{
"description": "Domeneshop",
"netPrice": 42500,
"vat": 10625,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-111"
},
{
"_links": {
"self": {
"href": "https://.../url-112"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-113"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-114"
},
"alternate": {
"href": "https://.../url-115",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-116"
}
},
"identifier": "1",
"downloadUrl": "https://.../url-117"
}
]
},
"date": "2015-12-25",
"kind": "INVOICE",
"identifier": "2",
"paid": false,
"lines": [
{
"description": "Alternativ beskrivelse (produkt=Testprodukt #1)",
"netPrice": 11600,
"vat": 1740,
"account": "3030",
"vatType": "MEDIUM"
}
],
"customer": "https://.../url-16"
},
{
"_links": {
"self": {
"href": "https://.../url-118"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-119"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-120"
},
"alternate": {
"href": "https://.../url-121",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-122"
}
},
"identifier": "2",
"downloadUrl": "https://.../url-123"
}
]
},
"date": "2015-12-25",
"kind": "INVOICE",
"identifier": "3",
"paid": false,
"lines": [
{
"description": "Alternativ beskrivelse (produkt=Testprodukt #2)",
"netPrice": 62070,
"vat": 15518,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-46"
},
{
"_links": {
"self": {
"href": "https://.../url-124"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-125"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-126"
},
"alternate": {
"href": "https://.../url-127",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-128"
}
},
"identifier": "3",
"downloadUrl": "https://.../url-129"
}
]
},
"date": "2015-12-25",
"kind": "INVOICE",
"identifier": "4",
"paid": false,
"lines": [
{
"description": "Alternativ beskrivelse (produkt=Testprodukt #3)",
"netPrice": 4011,
"vat": 602,
"account": "3030",
"vatType": "MEDIUM"
}
],
"customer": "https://.../url-31"
},
{
"_links": {
"self": {
"href": "https://.../url-130"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-131"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-132"
},
"alternate": {
"href": "https://.../url-133",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-134"
}
},
"identifier": "4",
"downloadUrl": "https://.../url-135"
}
]
},
"date": "2015-12-25",
"kind": "INVOICE",
"identifier": "5",
"paid": false,
"lines": [
{
"description": "Testprodukt #4",
"netPrice": 449232,
"vat": 112308,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-96"
},
{
"_links": {
"self": {
"href": "https://.../url-136"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-137"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-138"
},
"alternate": {
"href": "https://.../url-139",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-140"
}
},
"identifier": "5",
"downloadUrl": "https://.../url-141"
}
]
},
"date": "2015-12-25",
"kind": "INVOICE",
"identifier": "6",
"paid": false,
"lines": [
{
"description": "Testprodukt #5",
"netPrice": 5625,
"vat": 844,
"account": "3030",
"vatType": "MEDIUM"
}
],
"customer": "https://.../url-11"
},
{
"_links": {
"self": {
"href": "https://.../url-142"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-143"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-144"
},
"alternate": {
"href": "https://.../url-145",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-146"
}
},
"identifier": "6",
"downloadUrl": "https://.../url-147"
}
]
},
"date": "2015-12-25",
"kind": "INVOICE",
"identifier": "7",
"paid": false,
"lines": [
{
"description": "Alternativ beskrivelse (produkt=Testprodukt #6)",
"netPrice": 1486,
"vat": 372,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-148"
},
{
"_links": {
"self": {
"href": "https://.../url-149"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-150"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-151"
},
"alternate": {
"href": "https://.../url-152",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-153"
}
},
"identifier": "7",
"downloadUrl": "https://.../url-154"
}
]
},
"date": "2015-12-25",
"kind": "INVOICE",
"identifier": "8",
"paid": false,
"lines": [
{
"description": "Testprodukt #7",
"netPrice": 786156,
"vat": 117923,
"account": "3030",
"vatType": "MEDIUM"
}
],
"customer": "https://.../url-26"
},
{
"_links": {
"self": {
"href": "https://.../url-155"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-156"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-157"
},
"alternate": {
"href": "https://.../url-158",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-159"
}
},
"identifier": "8",
"downloadUrl": "https://.../url-160"
}
]
},
"date": "2015-12-25",
"kind": "INVOICE",
"identifier": "9",
"paid": false,
"lines": [
{
"description": "Alternativ beskrivelse (produkt=Testprodukt #8)",
"netPrice": 10696,
"vat": 2674,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-51"
},
{
"_links": {
"self": {
"href": "https://.../url-161"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-162"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-163"
},
"alternate": {
"href": "https://.../url-164",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-165"
}
},
"identifier": "9",
"downloadUrl": "https://.../url-166"
}
]
},
"date": "2015-12-25",
"kind": "INVOICE",
"identifier": "10",
"paid": false,
"lines": [
{
"description": "Testprodukt #9",
"netPrice": 12033,
"vat": 1805,
"account": "3030",
"vatType": "MEDIUM"
}
],
"customer": "https://.../url-6"
},
{
"_links": {
"self": {
"href": "https://.../url-167"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-168"
},
"alternate": {
"href": "https://.../url-169",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-170"
}
},
"amount": 125,
"account": "1920:10001"
}
]
},
"date": "2015-01-02",
"kind": "CASH_SALE",
"identifier": "abc123",
"paid": true,
"lines": [
{
"description": "Description",
"netPrice": 100,
"vat": 25,
"account": "3000",
"vatType": "HIGH"
}
]
},
{
"_links": {
"self": {
"href": "https://.../url-171"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-172"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-173"
},
"alternate": {
"href": "https://.../url-174",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-175"
}
},
"identifier": "10",
"downloadUrl": "https://.../url-176"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "11",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 180,
"vat": 45,
"account": "3030",
"vatType": "HIGH"
}
],
"customer": "https://.../url-177"
},
{
"_links": {
"self": {
"href": "https://.../url-178"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-179"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-180"
},
"alternate": {
"href": "https://.../url-181",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-182"
}
},
"identifier": "11",
"downloadUrl": "https://.../url-183"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "12",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 180,
"vat": 45,
"account": "3030",
"vatType": "HIGH"
}
],
"customer": "https://.../url-177"
},
{
"_links": {
"self": {
"href": "https://.../url-184"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-185"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-186"
},
"alternate": {
"href": "https://.../url-187",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-188"
}
},
"identifier": "12",
"downloadUrl": "https://.../url-189"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "13",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 180,
"vat": 45,
"account": "3030",
"vatType": "HIGH"
}
],
"customer": "https://.../url-177"
},
{
"_links": {
"self": {
"href": "https://.../url-190"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-191"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-192"
},
"alternate": {
"href": "https://.../url-193",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-194"
}
},
"identifier": "13",
"downloadUrl": "https://.../url-195"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "14",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 180,
"vat": 45,
"account": "3030",
"vatType": "HIGH"
}
],
"customer": "https://.../url-177"
},
{
"_links": {
"self": {
"href": "https://.../url-196"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-197"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-198"
},
"alternate": {
"href": "https://.../url-199",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-200"
}
},
"identifier": "14",
"downloadUrl": "https://.../url-201"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "15",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 180,
"vat": 45,
"account": "3030",
"vatType": "HIGH"
}
],
"customer": "https://.../url-177"
},
{
"_links": {
"self": {
"href": "https://.../url-202"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-203"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-204"
},
"alternate": {
"href": "https://.../url-205",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-206"
}
},
"identifier": "15",
"downloadUrl": "https://.../url-207"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "16",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 100,
"vat": 25,
"account": "3030",
"vatType": "HIGH"
}
],
"customer": "https://.../url-208"
},
{
"_links": {
"self": {
"href": "https://.../url-209"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-210"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-211"
},
"alternate": {
"href": "https://.../url-212",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-213"
}
},
"identifier": "16",
"downloadUrl": "https://.../url-214"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "17",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 100,
"vat": 25,
"account": "3030",
"vatType": "HIGH"
}
],
"customer": "https://.../url-208"
},
{
"_links": {
"self": {
"href": "https://.../url-215"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-216"
},
"alternate": {
"href": "https://.../url-217",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-218"
}
},
"amount": 125,
"account": "1920:10001"
}
]
},
"date": "2015-01-02",
"kind": "CASH_SALE",
"identifier": "abc123",
"paid": true,
"lines": [
{
"description": "Description",
"netPrice": 100,
"vat": 25,
"account": "3000",
"vatType": "HIGH"
}
]
},
{
"_links": {
"self": {
"href": "https://.../url-219"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-220"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-221"
},
"alternate": {
"href": "https://.../url-222",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-223"
}
},
"amount": 125,
"account": "1920:10001"
}
]
},
"date": "2015-01-02",
"kind": "EXTERNAL_INVOICE",
"identifier": "abc123",
"paid": true,
"lines": [
{
"description": "Description",
"netPrice": 100,
"vat": 25,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-224"
},
{
"_links": {
"self": {
"href": "https://.../url-225"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-226"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-227"
},
"alternate": {
"href": "https://.../url-228",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-229"
}
},
"identifier": "17",
"downloadUrl": "https://.../url-230"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "18",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 180,
"vat": 45,
"account": "3030",
"vatType": "HIGH"
}
],
"customer": "https://.../url-177"
},
{
"_links": {
"self": {
"href": "https://.../url-231"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-232"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-233"
},
"alternate": {
"href": "https://.../url-234",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-235"
}
},
"identifier": "18",
"downloadUrl": "https://.../url-236"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "19",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3030",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-237"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-238"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-239"
},
"alternate": {
"href": "https://.../url-240",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-241"
}
},
"identifier": "19",
"downloadUrl": "https://.../url-242"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "20",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3030",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-243"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-244"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-245"
},
"alternate": {
"href": "https://.../url-246",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-247"
}
},
"identifier": "20",
"downloadUrl": "https://.../url-248"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "21",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3030",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-249"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-250"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-251"
},
"alternate": {
"href": "https://.../url-252",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-253"
}
},
"amount": 12300,
"account": "4000",
"currency": "EUR",
"currencyAmount": 1230
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-254"
}
},
"identifier": "21",
"downloadUrl": "https://.../url-255"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "22",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3030",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-256"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-257"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-258"
},
"alternate": {
"href": "https://.../url-259",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-260"
}
},
"amount": 12300,
"account": "4000",
"currency": "EUR",
"currencyAmount": 1230
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-261"
}
},
"identifier": "22",
"downloadUrl": "https://.../url-262"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "23",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3030",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-263"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-264"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-265"
},
"alternate": {
"href": "https://.../url-266",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-267"
}
},
"amount": 12300,
"account": "4000",
"currency": "EUR",
"currencyAmount": 1230
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-268"
}
},
"identifier": "23",
"downloadUrl": "https://.../url-269"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "24",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3030",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-270"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-271"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-272"
},
"alternate": {
"href": "https://.../url-273",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-274"
}
},
"identifier": "25",
"downloadUrl": "https://.../url-275"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "26",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3030",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-276"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-277"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-278"
},
"alternate": {
"href": "https://.../url-279",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-280"
}
},
"amount": 123,
"account": "4000",
"currency": "EUR",
"currencyAmount": 8
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-281"
}
},
"identifier": "24",
"downloadUrl": "https://.../url-282"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "25",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3030",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-283"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-284"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-285"
},
"alternate": {
"href": "https://.../url-286",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-287"
}
},
"amount": 1440,
"account": "1920:10001",
"currency": "EUR",
"currencyAmount": 180
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-288"
}
},
"identifier": "38",
"downloadUrl": "https://.../url-289"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "39",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3000",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-290"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-291"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-292"
},
"alternate": {
"href": "https://.../url-293",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-294"
}
},
"amount": 123,
"account": "1920:10001",
"currency": "EUR",
"currencyAmount": 8
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-295"
}
},
"identifier": "26",
"downloadUrl": "https://.../url-296"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "27",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3030",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-297"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-298"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-299"
},
"alternate": {
"href": "https://.../url-300",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-301"
}
},
"amount": 1230,
"account": "1920:10001",
"currency": "EUR",
"currencyAmount": 80
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-302"
}
},
"identifier": "27",
"downloadUrl": "https://.../url-303"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "28",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3030",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-304"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-305"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-306"
},
"alternate": {
"href": "https://.../url-307",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-308"
}
},
"amount": 1440,
"account": "1920:10001",
"currency": "EUR",
"currencyAmount": 180
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-309"
}
},
"identifier": "39",
"downloadUrl": "https://.../url-310"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "40",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3000",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-311"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-312"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-313"
},
"alternate": {
"href": "https://.../url-314",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-315"
}
},
"amount": 1440,
"account": "1920:10001",
"currency": "EUR",
"currencyAmount": 180
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-316"
}
},
"identifier": "28",
"downloadUrl": "https://.../url-317"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "29",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3030",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-318"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-319"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-320"
},
"alternate": {
"href": "https://.../url-321",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-322"
}
},
"amount": 1440,
"account": "1920:10001",
"currency": "EUR",
"currencyAmount": 180
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-323"
}
},
"identifier": "29",
"downloadUrl": "https://.../url-324"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "30",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3030",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-325"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-326"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-327"
},
"alternate": {
"href": "https://.../url-328",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-329"
}
},
"amount": 1440,
"account": "1920:10001",
"currency": "EUR",
"currencyAmount": 180
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-330"
}
},
"identifier": "40",
"downloadUrl": "https://.../url-331"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "41",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3000",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-332"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-333"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-334"
},
"alternate": {
"href": "https://.../url-335",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-336"
}
},
"amount": 1440,
"account": "1920:10001",
"currency": "EUR",
"currencyAmount": 180
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-337"
}
},
"identifier": "30",
"downloadUrl": "https://.../url-338"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "31",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3000",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-339"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-340"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-341"
},
"alternate": {
"href": "https://.../url-342",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-343"
}
},
"amount": 1440,
"account": "1920:10001",
"currency": "EUR",
"currencyAmount": 180
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-344"
}
},
"identifier": "31",
"downloadUrl": "https://.../url-345"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "32",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3030",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-346"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-347"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-348"
},
"alternate": {
"href": "https://.../url-349",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-350"
}
},
"amount": 1440,
"account": "1920:10001",
"currency": "EUR",
"currencyAmount": 180
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-351"
}
},
"identifier": "41",
"downloadUrl": "https://.../url-352"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "42",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3000",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-353"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-354"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-355"
},
"alternate": {
"href": "https://.../url-356",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-357"
}
},
"amount": 1440,
"account": "1920:10001",
"currency": "EUR",
"currencyAmount": 180
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-358"
}
},
"identifier": "32",
"downloadUrl": "https://.../url-359"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "33",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3000",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-360"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-361"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-362"
},
"alternate": {
"href": "https://.../url-363",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-364"
}
},
"amount": 1440,
"account": "1920:10001",
"currency": "EUR",
"currencyAmount": 180
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-365"
}
},
"identifier": "33",
"downloadUrl": "https://.../url-366"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "34",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3030",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-367"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-368"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-369"
},
"alternate": {
"href": "https://.../url-370",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-371"
}
},
"amount": 1440,
"account": "1920:10001",
"currency": "EUR",
"currencyAmount": 180
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-372"
}
},
"identifier": "42",
"downloadUrl": "https://.../url-373"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "43",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3000",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-374"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-375"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-376"
},
"alternate": {
"href": "https://.../url-377",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-378"
}
},
"amount": 1440,
"account": "1920:10001",
"currency": "EUR",
"currencyAmount": 180
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-379"
}
},
"identifier": "34",
"downloadUrl": "https://.../url-380"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "35",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3000",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-381"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-382"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-383"
},
"alternate": {
"href": "https://.../url-384",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-385"
}
},
"amount": 1440,
"account": "1920:10001",
"currency": "EUR",
"currencyAmount": 180
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-386"
}
},
"identifier": "35",
"downloadUrl": "https://.../url-387"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "36",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3030",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-388"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-389"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-390"
},
"alternate": {
"href": "https://.../url-391",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-392"
}
},
"amount": 1440,
"account": "1920:10001",
"currency": "EUR",
"currencyAmount": 180
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-393"
}
},
"identifier": "43",
"downloadUrl": "https://.../url-394"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "44",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3000",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-395"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-396"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-397"
},
"alternate": {
"href": "https://.../url-398",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-399"
}
},
"amount": 1440,
"account": "1920:10001",
"currency": "EUR",
"currencyAmount": 180
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-400"
}
},
"identifier": "36",
"downloadUrl": "https://.../url-401"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "37",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3000",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-402"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-403"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-404"
},
"alternate": {
"href": "https://.../url-405",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-406"
}
},
"amount": 1440,
"account": "1920:10001",
"currency": "EUR",
"currencyAmount": 180
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-407"
}
},
"identifier": "37",
"downloadUrl": "https://.../url-408"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "38",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3000",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-409"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-410"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-411"
},
"alternate": {
"href": "https://.../url-412",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-413"
}
},
"amount": 1440,
"account": "1920:10001",
"currency": "EUR",
"currencyAmount": 180
}
],
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-414"
}
},
"identifier": "44",
"downloadUrl": "https://.../url-415"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "45",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 1627,
"vat": 407,
"account": "3000",
"vatType": "HIGH",
"netPriceInCurrency": 180,
"vatInCurrency": 45
}
],
"customer": "https://.../url-177",
"currency": "EUR"
},
{
"_links": {
"self": {
"href": "https://.../url-416"
},
"https://fiken.no/api/v1/rel/payments": {
"href": "https://.../url-417"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-418"
},
"alternate": {
"href": "https://.../url-419",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/attachments": [
{
"_links": {
"self": {
"href": "https://.../url-420"
}
},
"identifier": "45",
"downloadUrl": "https://.../url-421"
}
]
},
"date": "2015-01-02",
"kind": "INVOICE",
"identifier": "46",
"paid": false,
"lines": [
{
"description": "Description",
"netPrice": 180,
"vat": 45,
"account": "3000",
"vatType": "HIGH"
}
],
"customer": "https://.../url-177"
}
]
}
}
Here the link to post to is https://.../url-1
, so we post our new cash sale there:
Exchange #2
Request
POST https://.../url-1
Accept: application/hal+json, application/vnd.error+json
Content-Type: application/hal+json
{
"date": "2015-01-02",
"identifier": "abc123",
"kind": "CASH_SALE",
"paymentDate": "2015-01-02",
"paymentAccount": "1920:10001",
"lines": [
{
"netPrice": 100,
"vat": 25,
"vatType": "HIGH",
"description": "Description"
}
]
}
Response
201 Created
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Length: ...
Date: ...
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Location: https://.../url-422
X-Request-ID: <random UUID>
Exchange #3
Request
GET https://.../url-422
Accept: application/hal+json, application/vnd.error+json
Response
200 OK
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Length: ...
Content-Type: application/hal+json;charset=UTF-8
Date: ...
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-Request-ID: <random UUID>
{
"_links": {
"self": {
"href": "https://.../url-422"
},
"https://fiken.no/api/v1/rel/attachments": {
"href": "https://.../url-423"
},
"alternate": {
"href": "https://.../url-424",
"type": "text/html"
}
},
"_embedded": {
"https://fiken.no/api/v1/rel/payments": [
{
"_links": {
"self": {
"href": "https://.../url-425"
}
},
"amount": 125,
"account": "1920:10001"
}
]
},
"date": "2015-01-02",
"kind": "CASH_SALE",
"identifier": "abc123",
"paid": true,
"lines": [
{
"description": "Description",
"netPrice": 100,
"vat": 25,
"account": "3000",
"vatType": "HIGH"
}
]
}
We now have a new sale created, and the url of that sale is https://.../url-422