Create a new payee
POST/v1/payees
Create a new payee
Request
- application/json
Body
required
name string
Example:
Swiggy
autoCategoryId uuid
Example:
01926b84-93cb-75b9-b445-a5a744f7a59f
rules
object
includes string[]
Example:
["ig"]
excludes string[]
Example:
["ato"]
startsWith string[]
Example:
["swi"]
endsWith string[]
Example:
["ggy"]
Responses
- 201
- 400
- 401
- 500
Success
- application/json
- Schema
- Example (from schema)
Schema
id uuid
Example:
01926b84-93cb-75b9-b445-a5a744f7a59f
name string
Example:
Swiggy
autoCategoryId uuid
Example:
01926b84-93cb-75b9-b445-a5a744f7a59f
rules
object
includes string[]
Example:
["ig"]
excludes string[]
Example:
["ato"]
startsWith string[]
Example:
["swi"]
endsWith string[]
Example:
["ggy"]
createdAt date-time
Example:
2024-10-07T01:02:03Z
updatedAt date-time
Example:
2024-10-07T01:02:03Z
{
"id": "01926b84-93cb-75b9-b445-a5a744f7a59f",
"name": "Swiggy",
"autoCategoryId": "01926b84-93cb-75b9-b445-a5a744f7a59f",
"rules": {
"includes": [
"ig"
],
"excludes": [
"ato"
],
"startsWith": [
"swi"
],
"endsWith": [
"ggy"
]
},
"createdAt": "2024-10-07T01:02:03Z",
"updatedAt": "2024-10-07T01:02:03Z"
}
Bad request
Unauthenticated
Internal Error
Loading...