SendRegning

Update recurring invoice

Verison: 1.0 (read more)
1
PUT /recurring/{number}
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
{
    "name": "Monthly rent of apartment",
    "comment": "Ground floor, 75 square meters, Bogstadveien 12",
    "dueDate": "lastThisMonth|firstNextMonth*|lastNextMonth|oneWeek|twoWeeks|threeWeeks|fortyFiveDays|oneMonth|twoMonths|threeMonths|halfYear|oneYear",
    "shipment": {
        "preferred": "ehf|agiro|email|paper|emailAndPaper",
        "fallback": "notfication|email|paper*",
        "frequency": "week|secondWeek|thirdWeek|month*|secondMonth|quarter|halfYear|year",
        "copyEmail": "myCopyEmail@sendregning.no",
        "smsMessage": "sms notification"
        "dates": {
            "next": "YYYY-MM-DD",
            "stop": "YYYY-MM-DD"
        }
    },
    "invoice": {
        "recipient": {
            "number": 2
        },
        "invoiceText": "Rent of apartment, Bogstadveien 12",
        "orderReference": "SK-123456",
        "ourReference": "4666587",
        "yourReference": "Bogstadveien 12",
        "accountNumber": "12345678901",
        "items": [{
            "number": 1,
            "quantity": 1,
            "productCode": "75",
            "description": "Rent for [month] [year]",
            "unitPrice": 7500.00,
            "discount": 0.00,
            "taxRate": 15
        }, {
            "number": 2,
            "quantity": 1.00,
            "productCode": "2",
            "description": "Electricity for [month] [year]",
            "unitPrice": 800.00,
            "discount": 0.00,
            "taxRate": 25
        }],
        "interpolation": {
            "date": "dueDate*|sendDate",
            "offsetDays": 0
        }
    }
}

smsMessage property is optional and can be provided only if template recipient has a mobile number specified.

Response

HTTP/1.1 200 OK