SendRegning

Get entries

Verison: 1.0 (read more)

Get salesledger entries

1
GET /sales-ledger

Available query parameters

invoiceNumber - limits the result to entries for given invoice

recipientNumber - limits the result to entries for given recipient

If both query params are specified resource will return CONFLICT response. If no query param specified resource will return all salesledger entries.

If recipientNumber is provided it’s possible to add format=XLS query param to the url to generate excel report with entries for given recipient

Response

HTTP/1.1 200 OK

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
[
    {
        "date": "2010-04-29",
        "amount": 1724.50,
        "description": "Faktura",
        "_links": {
            "invoice": {
                "uri": "/invoices/7"
            },
            "recipient": {
                "uri": "/recipients/1"
            }
        }
    },
    {
        "date": "2010-04-29",
        "amount": -1724.50,
        "description": "Betaling",
        "_links": {}
    },
    {
        "date": "2015-02-02",
        "amount": 44.55,
        "description": "Kreditnota",
        "_links": {
            "creditNote": {
                "uri": "/invoices/credit-notes/7"
            },
            "recipient": {
                "uri": "/recipients/1"
            }
        }
    },
    {
        "date": "2015-02-02",
        "amount": 44.55,
        "description": "Purregebyr",
        "_links": {
            "dunning": {
                "uri": "/dunnings/7"
            },
            "recipient": {
                "uri": "/recipients/1"
            }
        }
    }
]