Create a new transaction
POST/v1/accounts/:id/transactions
Create a new transaction
Request
Path Parameters
id uuidrequired
ID of Account
Query Parameters
q string
Search query for transactions
page int64
Page number
limit int64
Number of transactions per page
- application/json
Body
required
payeeId uuid
Example:
01926b84-93cb-75b9-b445-a5a744f7a59f
categoryId uuid
Example:
01926b84-93cb-75b9-b445-a5a744f7a59f
name string
Example:
House Party Food
notes string
Example:
Sample markdown notes
credit float
Example:
12.25
debit float
Example:
10.49
clearedAt date-time
Example:
2024-10-07T01:02:03Z
Responses
- 201
- 400
- 401
- 500
Success
- application/json
- Schema
- Example (from schema)
Schema
id uuid
Example:
01926b84-93cb-75b9-b445-a5a744f7a59f
accountId uuid
Example:
01926b84-93cb-75b9-b445-a5a744f7a59f
payeeId uuid
Example:
01926b84-93cb-75b9-b445-a5a744f7a59f
payeeName string
Example:
Swiggy
categoryId uuid
Example:
01926b84-93cb-75b9-b445-a5a744f7a59f
categoryName string
Example:
Online Food
name string
Example:
House Party Food
notes string
Example:
Sample markdown notes
credit float
Example:
12.25
debit float
Example:
10.49
clearedAt date-time
Example:
2024-10-07T01:02:03Z
createdAt date-time
Example:
2024-10-07T01:02:03Z
updatedAt date-time
Example:
2024-10-07T01:02:03Z
{
"id": "01926b84-93cb-75b9-b445-a5a744f7a59f",
"accountId": "01926b84-93cb-75b9-b445-a5a744f7a59f",
"payeeId": "01926b84-93cb-75b9-b445-a5a744f7a59f",
"payeeName": "Swiggy",
"categoryId": "01926b84-93cb-75b9-b445-a5a744f7a59f",
"categoryName": "Online Food",
"name": "House Party Food",
"notes": "Sample markdown notes",
"credit": 12.25,
"debit": 10.49,
"clearedAt": "2024-10-07T01:02:03Z",
"createdAt": "2024-10-07T01:02:03Z",
"updatedAt": "2024-10-07T01:02:03Z"
}
Bad request
Unauthenticated
Internal Error
Loading...