curl --request POST \
--url https://api.ai2fin.com/api/bank/transactions \
--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
}
'{
"transaction": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"date": "2023-11-07T05:31:56Z",
"description": "<string>",
"amount": 123,
"type": "debit",
"categoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category": {
"id": "<string>",
"name": "<string>",
"icon": "<string>",
"color": "<string>",
"isTaxDeductible": true,
"taxCategory": "<string>",
"defaultGstRate": 123
},
"merchant": "<string>",
"isTaxDeductible": true,
"businessUsePercentage": 50,
"gstAmount": 123,
"gstRate": 123,
"gstIncluded": true
}
}Manually add a new bank transaction
curl --request POST \
--url https://api.ai2fin.com/api/bank/transactions \
--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
}
'{
"transaction": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"date": "2023-11-07T05:31:56Z",
"description": "<string>",
"amount": 123,
"type": "debit",
"categoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category": {
"id": "<string>",
"name": "<string>",
"icon": "<string>",
"color": "<string>",
"isTaxDeductible": true,
"taxCategory": "<string>",
"defaultGstRate": 123
},
"merchant": "<string>",
"isTaxDeductible": true,
"businessUsePercentage": 50,
"gstAmount": 123,
"gstRate": 123,
"gstIncluded": true
}
}JWT token obtained from /api/auth/login endpoint
Transaction created successfully
Show child attributes