Aktuellen Rechnungsstand abrufen

GET /accounting/invoices/current

Response (application/json)

{
    "status": "success",
    "requestID": "f172d6aa-00a2-46a0-8e06-3b928c255a20",
    "message": "success",
    "data": {
        "currentInvoiceTotal": 2.567240648148149,
        "nextInvoiceDate": "2023-07-01T00:00:00.000Z",
        "estimatedInvoiceTotal": 13.718320138888888,
        "positions": {
            "vms": {
                "30071": [
                    {
                        "type": "BILLINGRESTART",
                        "start": "2023-06-09T15:22:13.000Z",
                        "stop": null,
                        "totalRuntime": 523253,
                        "monthlyPrice": 8.39,
                        "totalPrice": 1.6937085918209878
                    }
                ],
                "30073": [
                    {
                        "type": "BILLINGRESTART",
                        "start": "2023-06-09T15:22:13.000Z",
                        "stop": "2023-06-09T16:40:28.000Z",
                        "totalRuntime": 4695,
                        "monthlyPrice": 3.64,
                        "totalPrice": 0.006593287037037037
                    },
                    {
                        "type": "BILLINGRESTART",
                        "start": "2023-06-09T16:40:28.000Z",
                        "stop": "2023-06-10T11:08:18.000Z",
                        "totalRuntime": 66470,
                        "monthlyPrice": 8.39,
                        "totalPrice": 0.21515559413580246
                    }
                ],
                "30074": [
                    {
                        "type": "CREATE",
                        "start": "2023-06-10T11:10:34.000Z",
                        "stop": null,
                        "totalRuntime": 451952,
                        "monthlyPrice": 3.64,
                        "totalPrice": 0.6346856790123457
                    }
                ],
                "30075": [
                    {
                        "type": "CREATE",
                        "start": "2023-06-15T15:25:29.000Z",
                        "stop": "2023-06-15T15:29:21.000Z",
                        "totalRuntime": 232,
                        "monthlyPrice": 3.53,
                        "totalPrice": 0.0003159567901234568
                    },
                    {
                        "type": "BILLINGRESTART",
                        "start": "2023-06-15T15:29:21.000Z",
                        "stop": null,
                        "totalRuntime": 4425,
                        "monthlyPrice": 9.83,
                        "totalPrice": 0.01678153935185185
                    }
                ]
            }
        }
    }
}

cURL

curl "https://live.fireapi.de/accounting/invoices/current" -X GET -H "Content-Type: application/x-www-form-urlencoded" -H "X-FIRE-APIKEY: REPLACE_API-KEY"

Anfrage testen