Transactions

Update transaction

Set idApp to match a transaction to an app (this marks it mapped); pass idApp: null to unmatch.<br/><br/>Set mappingStatus: "archived" to archive a transaction. Archived transactions are not returned by GET /transactions.<br/><br/>To unmatch and reset the status, send both idApp: null and mappingStatus: "unknown".<br/><br/>amount.value is in minor currency units (e.g., cents) and overrides the original amount; the currency is unchanged.<br/><br/>transactionDate overrides the transaction date (ISO 8601, e.g. 2022-02-03).<br/><br/>Returns only the fields affected by the update (id, idApp, mappingStatus, transactionDate).<br/><br/>

<p><ul><li>Rate limit: 100 requests per minute</li></ul></p>
put/transactions/{idTransaction}

Request

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

Path parameters

idTransactioninteger required

Unique transaction identifier

Request body

idAppinteger

App to match the transaction to. Pass null to unmatch. Setting an app marks the transaction mapped.

mappingStatus'archived' | 'unknown' | 'ignored'

New mapping status. archived archives the transaction; unknown/ignored unmatch it. To match a transaction to an app, set idApp instead (this marks it mapped).

transactionDatestring date-time

Date of the transaction

Example request

{
  "idApp": 1000,
  "mappingStatus": "archived",
  "transactionDate": "2022-02-03",
  "amount": {
    "value": 130000
  }
}

Response

Updated transaction

Example response

{
  "transaction": {
    "id": 1000,
    "idApp": 1000,
    "mappingStatus": "mapped",
    "transactionDate": "2022-02-03"
  }
}

Changes

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