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-a5a744f7a59fcategoryId uuid
Example:
01926b84-93cb-75b9-b445-a5a744f7a59fname string
Example:
House Party Foodnotes string
Example:
Sample markdown notescredit float
Example:
12.25debit float
Example:
10.49clearedAt date-time
Example:
2024-10-07T01:02:03ZResponses
- 201
- 400
- 401
- 500
Success
- application/json
- Schema
- Example (from schema)
Schema
id uuid
Example:
01926b84-93cb-75b9-b445-a5a744f7a59faccountId uuid
Example:
01926b84-93cb-75b9-b445-a5a744f7a59fpayeeId uuid
Example:
01926b84-93cb-75b9-b445-a5a744f7a59fpayeeName string
Example:
SwiggycategoryId uuid
Example:
01926b84-93cb-75b9-b445-a5a744f7a59fcategoryName string
Example:
Online Foodname string
Example:
House Party Foodnotes string
Example:
Sample markdown notescredit float
Example:
12.25debit float
Example:
10.49clearedAt date-time
Example:
2024-10-07T01:02:03ZcreatedAt date-time
Example:
2024-10-07T01:02:03ZupdatedAt 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...