Transactions

List and read posted transactions, parse free text into a draft, and create, correct or delete transactions.

Overview

Listing returns posted, non-archived transactions. Use page for offset pagination or after for cursor pagination; the two are mutually exclusive.

Parsing turns natural-language text into a canonical transaction draft using the workspace context. It does not create anything, so review the draft before posting it.

Creating posts one withdrawal, deposit or transfer. The account requirements depend on the type, and an Idempotency-Key header makes the request safe to retry. The categories endpoint lists the categories that can be assigned.

Updating changes the category, description, date or account of a posted transaction and keeps every other field. Deleting removes it. Both need the revision from the latest read as expected_revision and an Idempotency-Key header.

Required scopes

  • transactions:read — Read posted transactions and categories, and parse transaction text into a draft.
  • transactions:create — Create transactions.
  • transactions:update — Change the category, description, date or account of transactions.
  • transactions:delete — Delete transactions.

See Scopes for how scopes are granted.

Typical workflow

  1. List transaction categories
  2. Parse transaction text
  3. Create a transaction
  4. Get a transaction
  5. Update a transaction
  6. Delete a transaction

Endpoints

List transaction categories

Transactionsv1transactions:read

Returns active categories that can be assigned while parsing or creating transactions.

Parameters

API parameters
NameInType Description
pagequerynumberOptional One-based result page. <page>
limitquerynumberOptional Maximum resources returned per page. <limit>
group_idquerystringOptional Return active categories from this category group only. <group_id>

Code examples

curl --request GET \
  --url 'https://api.tetri.app/api/v1/programmatic/categories?page=<page>&limit=<limit>&group_id=<group_id>' \
  --header 'Authorization: Bearer $TETRI_API_TOKEN'

Responses

200Active transaction categories and pagination metadata.
{
  "data": [
    {
      "type": "categories",
      "id": "<uuid>",
      "attributes": {
        "version": 0,
        "created_by_user_id": "<uuid>",
        "group_id": "<uuid>",
        "name": "Groceries",
        "icon_name": "shopping-cart",
        "icon_url": "https://cdn.tetri.app/icons/abc.webp",
        "accent_color": "emerald",
        "is_archived": false,
        "is_system": false,
        "aliases": [
          "coffee",
          "latte",
          "starbucks"
        ],
        "order": 0,
        "tx_count": 42,
        "recent_tx_count": 12,
        "created_at": "2026-07-12T12:00:00Z",
        "updated_at": "2026-07-12T12:00:00Z",
        "spent_agg": "<string>",
        "earned_agg": "<string>",
        "created_by": {}
      }
    }
  ],
  "meta": {
    "pagination": "<string>"
  }
}
400Request parameters or payload failed validation. Inspect `code` and `details`.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
401The personal access token is missing, invalid, expired, or revoked.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
403The token lacks the required scope or no longer has workspace access.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
429The credential exceeded its request rate limit.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}

List transactions

Transactionsv1transactions:read

Returns posted, non-archived transactions with offset or cursor pagination.

Parameters

API parameters
NameInType Description
typequerywithdrawal | deposit | transfer | loan_paymentOptional Return only transactions with this journal type. withdrawal
startquerystringOptional Inclusive start of the financial date range. 2026-07-01
endquerystringOptional Inclusive end of the financial date range. 2026-07-31
pagequerynumberOptional One-based offset page. Mutually exclusive with `after`; omit it for cursor pagination. <page>
limitquerynumberOptional Maximum transactions returned per page. <limit>
queryquerystringOptional Case-insensitive transaction description search. coffee
account_idquerystringOptional Return transactions that include this account. <account_id>
category_idquerystringOptional Return transactions assigned to this category. <category_id>
afterquerystringOptional Opaque cursor returned as `meta.next_cursor`. Mutually exclusive with `page`. <opaque-cursor>

Code examples

curl --request GET \
  --url 'https://api.tetri.app/api/v1/programmatic/transactions?type=withdrawal&start=2026-07-01&end=2026-07-31&page=<page>' \
  --header 'Authorization: Bearer $TETRI_API_TOKEN'

Responses

200Posted transactions with offset pagination metadata, or cursor metadata when `after` is supplied.
{
  "data": [
    {
      "type": "transactions",
      "id": "<uuid>",
      "attributes": {
        "revision": "2026-07-12T12:00:00Z",
        "group_title": "<string>",
        "execution_status": "scheduled",
        "executed_at": "2026-07-12T12:00:00Z",
        "archived_at": "2026-07-12T12:00:00Z",
        "is_archived": false,
        "created_by": {},
        "transactions": [
          {
            "transaction_journal_id": "<uuid>",
            "type": "withdrawal",
            "date": "2026-07-12T12:00:00Z",
            "occurred_at": "2026-07-12T12:00:00Z",
            "business_date": "2026-07-12",
            "timezone": "Europe/Tbilisi",
            "description": "Grocery shopping",
            "amount": "42.50",
            "foreign_amount": "45.00",
            "foreign_currency_code": "EUR",
            "foreign_currency_symbol": "€",
            "currency_code": "USD",
            "currency_symbol": "$",
            "currency_decimal_places": 2,
            "source_id": "<uuid>",
            "source_name": "<string>",
            "source_type": "asset",
            "destination_id": "<uuid>",
            "destination_name": "<string>",
            "destination_type": "expense",
            "category_id": "<uuid>",
            "category_name": "<string>",
            "budget_id": "<uuid>",
            "budget_name": "<string>",
            "tags": [
              "<string>"
            ],
            "notes": "<string>",
            "last_reconciled_at": "2026-07-12",
            "reconciled": false,
            "status": "posted",
            "estimated_rate": "1.05",
            "pending_rate_quote": {},
            "final_rate": "1.058",
            "settled_at": "2026-07-12T12:00:00Z",
            "splits": [
              {
                "id": "<uuid>",
                "amount": "42.50",
                "category_id": "<uuid>",
                "note": "<string>",
                "tag_ids": [
                  "<uuid>"
                ]
              }
            ],
            "has_splits": false,
            "remainder": "0.00"
          }
        ]
      }
    }
  ],
  "meta": "<string>"
}
400Request parameters or payload failed validation. Inspect `code` and `details`.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
401The personal access token is missing, invalid, expired, or revoked.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
403The token lacks the required scope or no longer has workspace access.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
429The credential exceeded its request rate limit.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}

Create a transaction

Transactionsv1transactions:create

Creates one withdrawal, deposit, or transfer. The request is replay-safe per PAT and idempotency key.

Parameters

API parameters
NameInType Description
Idempotency-KeyheaderstringRequired Unique 16–128 character retry key. Reuse it only when retrying the identical request. tx_20260722_01J2Y8M4R1

Request body

application/json

One posted withdrawal, deposit, or transfer. Account requirements depend on `type`.

{
  "type": "withdrawal",
  "date": "2026-07-12T12:00:00.000Z",
  "amount": "12.50",
  "description": "Lunch",
  "source_account_id": "<asset-account-id>"
}

Code examples

curl --request POST \
  --url 'https://api.tetri.app/api/v1/programmatic/transactions' \
  --header 'Authorization: Bearer $TETRI_API_TOKEN' \
  --header 'Idempotency-Key: tx_20260722_01J2Y8M4R1' \
  --header 'Content-Type: application/json' \
  --data '{ "type": "withdrawal", "date": "2026-07-12T12:00:00.000Z", "amount": "12.50", "description": "Lunch", "source_account_id": "<asset-account-id>" }'

Responses

201Transaction created. The response includes cache side effects and mutation metadata.
{
  "data": {
    "type": "transactions",
    "id": "<uuid>",
    "attributes": {
      "revision": "2026-07-12T12:00:00Z",
      "group_title": "<string>",
      "execution_status": "scheduled",
      "executed_at": "2026-07-12T12:00:00Z",
      "archived_at": "2026-07-12T12:00:00Z",
      "is_archived": false,
      "created_by": {},
      "transactions": [
        {
          "transaction_journal_id": "<uuid>",
          "type": "withdrawal",
          "date": "2026-07-12T12:00:00Z",
          "occurred_at": "2026-07-12T12:00:00Z",
          "business_date": "2026-07-12",
          "timezone": "Europe/Tbilisi",
          "description": "Grocery shopping",
          "amount": "42.50",
          "foreign_amount": "45.00",
          "foreign_currency_code": "EUR",
          "foreign_currency_symbol": "€",
          "currency_code": "USD",
          "currency_symbol": "$",
          "currency_decimal_places": 2,
          "source_id": "<uuid>",
          "source_name": "<string>",
          "source_type": "asset",
          "destination_id": "<uuid>",
          "destination_name": "<string>",
          "destination_type": "expense",
          "category_id": "<uuid>",
          "category_name": "<string>",
          "budget_id": "<uuid>",
          "budget_name": "<string>",
          "tags": [
            "<string>"
          ],
          "notes": "<string>",
          "last_reconciled_at": "2026-07-12",
          "reconciled": false,
          "status": "posted",
          "estimated_rate": "1.05",
          "pending_rate_quote": {},
          "final_rate": "1.058",
          "settled_at": "2026-07-12T12:00:00Z",
          "splits": [
            {
              "id": "<uuid>",
              "amount": "42.50",
              "category_id": "<uuid>",
              "note": "<string>",
              "tag_ids": [
                "<uuid>"
              ]
            }
          ],
          "has_splits": false,
          "remainder": "0.00"
        }
      ]
    }
  },
  "meta": {
    "accounts_created": [
      {
        "wallet_id": "<uuid>",
        "account_id": "<uuid>",
        "currency_id": "<uuid>"
      }
    ]
  },
  "side_effects": [
    {
      "domain": "wallets",
      "id": "<string>",
      "action": "upsert",
      "data": {}
    }
  ]
}
400Request parameters or payload failed validation. Inspect `code` and `details`.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
401The personal access token is missing, invalid, expired, or revoked.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
403The token lacks the required scope or no longer has workspace access.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
409The idempotency key was reused with a different request or the resource state conflicts.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
429The credential exceeded its request rate limit.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}

Get a transaction

Transactionsv1transactions:read

Returns one posted transaction from the PAT workspace.

Parameters

API parameters
NameInType Description
idpathstringRequired Transaction journal identifier. <id>

Code examples

curl --request GET \
  --url 'https://api.tetri.app/api/v1/programmatic/transactions/<id>' \
  --header 'Authorization: Bearer $TETRI_API_TOKEN'

Responses

200The requested posted transaction.
{
  "data": {
    "type": "transactions",
    "id": "<uuid>",
    "attributes": {
      "revision": "2026-07-12T12:00:00Z",
      "group_title": "<string>",
      "execution_status": "scheduled",
      "executed_at": "2026-07-12T12:00:00Z",
      "archived_at": "2026-07-12T12:00:00Z",
      "is_archived": false,
      "created_by": {},
      "transactions": [
        {
          "transaction_journal_id": "<uuid>",
          "type": "withdrawal",
          "date": "2026-07-12T12:00:00Z",
          "occurred_at": "2026-07-12T12:00:00Z",
          "business_date": "2026-07-12",
          "timezone": "Europe/Tbilisi",
          "description": "Grocery shopping",
          "amount": "42.50",
          "foreign_amount": "45.00",
          "foreign_currency_code": "EUR",
          "foreign_currency_symbol": "€",
          "currency_code": "USD",
          "currency_symbol": "$",
          "currency_decimal_places": 2,
          "source_id": "<uuid>",
          "source_name": "<string>",
          "source_type": "asset",
          "destination_id": "<uuid>",
          "destination_name": "<string>",
          "destination_type": "expense",
          "category_id": "<uuid>",
          "category_name": "<string>",
          "budget_id": "<uuid>",
          "budget_name": "<string>",
          "tags": [
            "<string>"
          ],
          "notes": "<string>",
          "last_reconciled_at": "2026-07-12",
          "reconciled": false,
          "status": "posted",
          "estimated_rate": "1.05",
          "pending_rate_quote": {},
          "final_rate": "1.058",
          "settled_at": "2026-07-12T12:00:00Z",
          "splits": [
            {
              "id": "<uuid>",
              "amount": "42.50",
              "category_id": "<uuid>",
              "note": "<string>",
              "tag_ids": [
                "<uuid>"
              ]
            }
          ],
          "has_splits": false,
          "remainder": "0.00"
        }
      ]
    }
  }
}
400Request parameters or payload failed validation. Inspect `code` and `details`.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
401The personal access token is missing, invalid, expired, or revoked.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
403The token lacks the required scope or no longer has workspace access.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
404The resource does not exist in the token workspace or is not visible to this API.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
429The credential exceeded its request rate limit.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}

Update a transaction

Transactionsv1transactions:update

Changes the category, description, date or account of one posted transaction; every other field is kept. Read `revision` first and send it as `expected_revision`. Transactions with amount splits are rejected, and only a withdrawal or deposit can change its account. The request is replay-safe per PAT and idempotency key.

Parameters

API parameters
NameInType Description
idpathstringRequired Transaction journal identifier. <id>
Idempotency-KeyheaderstringRequired Unique 16–128 character retry key. Reuse it only when retrying the identical request. tx_20260722_01J2Y8M4R1

Request body

application/json

The fields to change and the `revision` from the latest read. Omitted fields keep their value; `category_id: null` removes the category.

{
  "expected_revision": "2026-07-12T12:00:00.000Z",
  "category_id": "<category-id>"
}

Code examples

curl --request PATCH \
  --url 'https://api.tetri.app/api/v1/programmatic/transactions/<id>' \
  --header 'Authorization: Bearer $TETRI_API_TOKEN' \
  --header 'Idempotency-Key: tx_20260722_01J2Y8M4R1' \
  --header 'Content-Type: application/json' \
  --data '{ "expected_revision": "2026-07-12T12:00:00.000Z", "category_id": "<category-id>" }'

Responses

200Transaction updated. The response includes cache side effects and mutation metadata.
{
  "data": {
    "type": "transactions",
    "id": "<uuid>",
    "attributes": {
      "revision": "2026-07-12T12:00:00Z",
      "group_title": "<string>",
      "execution_status": "scheduled",
      "executed_at": "2026-07-12T12:00:00Z",
      "archived_at": "2026-07-12T12:00:00Z",
      "is_archived": false,
      "created_by": {},
      "transactions": [
        {
          "transaction_journal_id": "<uuid>",
          "type": "withdrawal",
          "date": "2026-07-12T12:00:00Z",
          "occurred_at": "2026-07-12T12:00:00Z",
          "business_date": "2026-07-12",
          "timezone": "Europe/Tbilisi",
          "description": "Grocery shopping",
          "amount": "42.50",
          "foreign_amount": "45.00",
          "foreign_currency_code": "EUR",
          "foreign_currency_symbol": "€",
          "currency_code": "USD",
          "currency_symbol": "$",
          "currency_decimal_places": 2,
          "source_id": "<uuid>",
          "source_name": "<string>",
          "source_type": "asset",
          "destination_id": "<uuid>",
          "destination_name": "<string>",
          "destination_type": "expense",
          "category_id": "<uuid>",
          "category_name": "<string>",
          "budget_id": "<uuid>",
          "budget_name": "<string>",
          "tags": [
            "<string>"
          ],
          "notes": "<string>",
          "last_reconciled_at": "2026-07-12",
          "reconciled": false,
          "status": "posted",
          "estimated_rate": "1.05",
          "pending_rate_quote": {},
          "final_rate": "1.058",
          "settled_at": "2026-07-12T12:00:00Z",
          "splits": [
            {
              "id": "<uuid>",
              "amount": "42.50",
              "category_id": "<uuid>",
              "note": "<string>",
              "tag_ids": [
                "<uuid>"
              ]
            }
          ],
          "has_splits": false,
          "remainder": "0.00"
        }
      ]
    }
  },
  "meta": {
    "accounts_created": [
      {
        "wallet_id": "<uuid>",
        "account_id": "<uuid>",
        "currency_id": "<uuid>"
      }
    ]
  },
  "side_effects": [
    {
      "domain": "wallets",
      "id": "<string>",
      "action": "upsert",
      "data": {}
    }
  ]
}
400Request parameters or payload failed validation. Inspect `code` and `details`.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
401The personal access token is missing, invalid, expired, or revoked.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
403The token lacks the required scope or no longer has workspace access.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
404The resource does not exist in the token workspace or is not visible to this API.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
409The idempotency key was reused with a different request or the resource state conflicts.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
429The credential exceeded its request rate limit.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}

Delete a transaction

Transactionsv1transactions:delete

Soft-deletes one posted transaction. Read `revision` first and send it as the `expected_revision` query parameter. The request is replay-safe per PAT and idempotency key.

Parameters

API parameters
NameInType Description
idpathstringRequired Transaction journal identifier. <id>
expected_revisionquerystringRequired The `revision` returned by the latest read of this transaction. A stale value is rejected with 409. <expected_revision>
Idempotency-KeyheaderstringRequired Unique 16–128 character retry key. Reuse it only when retrying the identical request. tx_20260722_01J2Y8M4R1

Code examples

curl --request DELETE \
  --url 'https://api.tetri.app/api/v1/programmatic/transactions/<id>?expected_revision=<expected_revision>' \
  --header 'Authorization: Bearer $TETRI_API_TOKEN' \
  --header 'Idempotency-Key: tx_20260722_01J2Y8M4R1'

Responses

200Transaction deleted.
{
  "data": {
    "id": "<uuid>",
    "deleted": true
  }
}
400Request parameters or payload failed validation. Inspect `code` and `details`.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
401The personal access token is missing, invalid, expired, or revoked.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
403The token lacks the required scope or no longer has workspace access.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
404The resource does not exist in the token workspace or is not visible to this API.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
409The idempotency key was reused with a different request or the resource state conflicts.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
429The credential exceeded its request rate limit.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}

Parse transaction text

Transactionsv1transactions:read

Parses natural-language text into a canonical transaction draft using the PAT workspace context.

Request body

application/json

Natural-language input plus optional locale, timezone, date anchor, and current form context.

{
  "text": "wolt 42 gel yesterday",
  "locale": "en",
  "timezone": "Asia/Tbilisi",
  "reference_date": "2026-07-22"
}

Code examples

curl --request POST \
  --url 'https://api.tetri.app/api/v1/programmatic/transactions/parse' \
  --header 'Authorization: Bearer $TETRI_API_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{ "text": "wolt 42 gel yesterday", "locale": "en", "timezone": "Asia/Tbilisi", "reference_date": "2026-07-22" }'

Responses

200Canonical natural-language transaction draft parse.
{
  "data": {
    "type": "nl_transaction_parse",
    "id": null,
    "attributes": {
      "normalized_text": "wolt 42 gel yesterday",
      "tokens": [
        {
          "index": 0,
          "raw": "wolt",
          "normalized": "wolt",
          "start": 0,
          "end": 4,
          "kind": "word"
        }
      ],
      "candidates": [
        {
          "id": "amount:1:2:42",
          "field": "amount",
          "value": "42",
          "label": "42",
          "source": "static",
          "match_kind": "exact_alias",
          "span_start": 1,
          "span_end": 2,
          "score": 1,
          "metadata": {}
        }
      ],
      "selected": [
        {
          "id": "amount:1:2:42",
          "field": "amount",
          "value": "42",
          "label": "42",
          "source": "static",
          "match_kind": "exact_alias",
          "span_start": 1,
          "span_end": 2,
          "score": 1,
          "metadata": {}
        }
      ],
      "draft": {
        "type": "withdrawal",
        "amount": "42",
        "currency_id": "<uuid>",
        "currency_code": "GEL",
        "date": "2026-07-12",
        "occurred_at": "2026-07-12T12:00:00Z",
        "timezone": "Asia/Tbilisi",
        "source_wallet_id": "<uuid>",
        "source_account_id": "<uuid>",
        "destination_wallet_id": "<uuid>",
        "destination_account_id": "<uuid>",
        "category_id": "<uuid>",
        "tags": [
          "<string>"
        ],
        "description": "wolt"
      },
      "confidence": "high",
      "missing_fields": [
        {
          "field": "amount",
          "reason": "missing",
          "can_use_default": false
        }
      ],
      "alternatives": [
        {
          "field": "amount",
          "candidates": [
            {
              "id": "amount:1:2:42",
              "field": "amount",
              "value": "42",
              "label": "42",
              "source": "static",
              "match_kind": "exact_alias",
              "span_start": 1,
              "span_end": 2,
              "score": 1,
              "metadata": {}
            }
          ]
        }
      ],
      "warnings": [
        "invalid_local_time"
      ],
      "dictionary_version": "nl-tx-v5-2026-07-17"
    }
  }
}
400Request parameters or payload failed validation. Inspect `code` and `details`.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
401The personal access token is missing, invalid, expired, or revoked.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
403The token lacks the required scope or no longer has workspace access.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}
429The credential exceeded its request rate limit.
{
  "statusCode": 400,
  "code": "PROGRAMMATIC_PAGINATION_MODE_CONFLICT",
  "message": "after and page are mutually exclusive",
  "details": {
    "errors": {
      "limit": [
        "max"
      ]
    }
  },
  "request_id": "8cf64dcc-0f73-4f8d-a845-3d80c1040475"
}

Getting startedGetting startedMake your first authenticated Tetri API v1 request.Budgets API: endpoints and examplesBudgets API: endpoints and examplesRead budgets together with their status for a period date. List budgets, Get a budget.Goals API: endpoints and examplesGoals API: endpoints and examplesRead savings goals and their progress. List goals, Get a goal.