Parsings

Parse manually

<div>Use the following code snippet to parse an expense file with manual column matching:</div> <code class="hljs">curl -X PUT -d '{"parseConfig":{"idFile":"{FILE_ID}","transactionDateColumn":"A","descriptionColumn":"B", "amountColumn":"C", "dateFormat": "DD/MM/YYYY", "currencyColumn":"D"}}' -H "Authorization: Bearer API_KEY" -H "Content-Type: application/json" "https://api.toriihq.com/v1.0/parsings/manual"</code> <ul> <li>Date format must be identical for all transactions</li> <li> You should only send one of these parameters: <i>currencyColumn</i> or <i>currency</i> <div>Use <mark>currency</mark> when all the transactions are of the same currency</div> <div>Use <mark>currencyColumn</mark> when the transactions are of different currencies</div> </li> </ul> <hr /> <h3>IMPORTANT</h3> <p><strong>After sending a parse request, make sure to poll <code>https://api.toriihq.com/v1.0/parsings/{PARSING_ID}</code> to verify that the request was successful</strong></p> <p><ul><li>Rate limit: 200 requests per minute</li></ul></p>
put/parsings/manual

Request

  • Base URL
    https://api.toriihq.com/v1.0
  • Auth
    API key in header Authorization

Request body

Example request

{
  "parseConfig": {
    "transactionDateColumn": "A",
    "descriptionColumn": "B",
    "amountColumn": "C",
    "dateFormat": "DD/MM/YYYY",
    "currencyColumn": "D",
    "reportingUserColumn": "E",
    "currency": "USD",
    "idFile": 1000
  }
}

Response

Parsing ID

idinteger

Unique parsing identifier

Example response

{
  "id": 1000
}

Changes

No recorded changes to this operation across all 1 revision of this API.