Skip to main content
PUT
/
api
/
bank
/
transactions
/
{id}
Update transaction
curl --request PUT \
  --url https://api.ai2fin.com/api/bank/transactions/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "date": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "amount": 123,
  "type": "debit",
  "categoryId": "<string>",
  "merchant": "<string>",
  "gstAmount": 123,
  "gstRate": 123,
  "gstIncluded": true
}'

Authorizations

Authorization
string
header
required

JWT token obtained from /api/auth/login endpoint

Path Parameters

id
string
required

Body

application/json
date
string<date-time>
required
description
string
required
amount
number
required
type
enum<string>
required
Available options:
debit,
credit
categoryId
string
merchant
string
gstAmount
number
gstRate
number
gstIncluded
boolean

Response

200

Transaction updated successfully