Toshl Developer

Update import

Update an import.

PUT /bank/imports/{id}

Required scope:

Parameters

id *
required
string

Import id.

* denotes required field/parameter.

Request

$ curl https://api.toshl.com/bank/imports/42 \
  -H "Authorization: Bearer T9cE5asGnuyYCCqIZFoWjFHvNbvVqHjl" \
  -H "Content-Type: application/json" \
  -X PUT \
  -d '{json}'

Response

HTTP/1.1 200 OK
Content-Type: application/json

{
  "id": "42",
  "account": "42",
  "modified": "2016-11-11 10:28:10.435",
  "status": "completed",
  "preview": [
    {
      "hints": [
        "date",
        "skip",
        "skip",
        "description",
        "skip",
        "skip",
        "skip",
        "amount",
        "currency"
      ],
      "header": [
        "Date",
        "Value date",
        "Category",
        "Name",
        "Purpose",
        "Account",
        "Bank",
        "Amount",
        "Currency"
      ],
      "rows": [
        [
          "29.7.16",
          "29.7.16",
          "Cleared",
          "Some media",
          "Referenz Mandat Umkbw 007",
          "67832617867832671832",
          "GHJREWZU",
          "-47,89",
          "EUR"
        ],
        [
          "15.7.16",
          "15.7.16",
          "Cleared",
          "International SE",
          "Referenz Mandat 008 Einreicher-ID",
          "6786321678673821321",
          "JKLDSAOPW",
          "-16,00",
          "EUR"
        ],
        [
          "14.7.16",
          "14.7.16",
          "Cleared",
          "Steuerverwaltung NRW",
          "Referenz Verwendungszweck StNr 009",
          "637890321921244321",
          "HJKLDSAI",
          "263,38",
          "EUR"
        ]
      ]
    }
  ],
  "metadata": {
    "expenses": 2,
    "incomes": 1,
    "from": "2016-07-14",
    "to": "2016-07-29"
  },
  "formats": {
    "available": [
      "d/M/y",
      "y/M/d"
    ],
    "selected": "d/M/y",
    "examples": [
      "29.7.16",
      "15.7.16",
      "14.7.16"
    ]
  },
  "filename": "import.csv"
}