timdorr / tesla-api

🚘 A Ruby gem and unofficial documentation of Tesla's JSON API for the Model S, 3, X, and Y.

Home Page:https://tesla-api.timdorr.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Charge invoice PDFs

grantmac opened this issue · comments

The GET /api/1/dx/charging/history endpoint give us access to charging history.

In the response is:

"invoices": [
    {
        "fileName": "XXXXXXXXX-GB.pdf",
        "contentId": "e32ec779-78ee-490c-bce6-XXXXXXX",
        "invoiceType": "IMMEDIATE"
    }
],

Can we access those pdfs?

Looking exactly for that!

I would like to write a script to download all invoice PDFs in a time period 👍

TeslaLogger can download all PDF invoices, see here https://github.com/superfloh247/TeslaLogger