1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88 | [{
"number": 12,
"name": "Monthly rent of apartment",
"comment": "Ground floor, 75 square meters, Bogstadveien 12",
"created": "YYYY-MM-DD",
"dueDate": "firstNextMonth",
"shipment": {
"preferred": "ehf|agiro|email|paper|emailAndPaper",
"fallback": "notfication|email|paper*",
"frequency": "week|secondWeek|thirdWeek|month*|secondMonth|quarter|halfYear|year",
"copyEmail": "myCopyEmail@sendregning.no",
"dates": {
"start": "YYYY-MM-DD",
"stop": "YYYY-MM-DD",
"next": "YYYY-MM-DD"
}
},
"invoice": {
"invoiceText": "Rent of apartment, Bogstadveien 12",
"orderNumber": "SK-123456",
"ourReference": "4666587",
"yourReference": "Bogstadveien 12",
"recipient": {
"number": 2,
"name": "Ola Nordmann"
},
"items": [{
"number": 1,
"quantity": 1.00,
"productCode": "75",
"description": "Rent for [month] [year]",
"unitPrice": 7500.00,
"discount": 0.00,
"taxRate": 15,
"total": 8625.00,
"totalWithoutTax": 7500.00
}, {
"number": 2,
"quantity": 1.00,
"productCode": "2",
"description": "Electricity for [month] [year]",
"unitPrice": 800.00,
"discount": 0.00,
"taxRate": 25,
"total": 1000.00,
"totalWithoutTax": 800.00
}],
"tax": {
"15": 1125.00,
"25": 257.50
},
"total": 9912.50,
"interpolation": {
"date": "dueDate",
"offsetDays": 0
}
},
"_links": {
"self": {
"uri": "/recurring/12"
},
"delete": {
"uri": "/recurring/12"
},
"stop": {
"uri": "/recurring/12/stop"
},
"recipient": {
"uri": "/recipient/2",
"name": "Ola Nordmann"
},
"invoices": [{
"number": 22,
"invoiceDate": "YYYY-MM-DD",
"dueDate": "YYYY-MM-DD",
"total": 9912.50,
"balance": 0.00,
"uri": "/invoices/22"
}, {
"number": 32,
"invoiceDate": "YYYY-MM-DD",
"dueDate": "YYYY-MM-DD",
"total": 9912.50,
"balance": 0.00,
"uri": "/invoices/32"
}]
}
}]
|