Creates a new transaction type for the authenticated user.
POST
/v2/transactions/types
curl \
--request POST 'https://api.pre.transactiondesk.com/v2/transactions/types' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"name":"Rental Property"}'
Request examples
{
"name": "Rental Property"
}
Response examples (200)
{
"id": "ee9d3620-9b2f-437d-b522-3c785dbbfacd"
}
Response examples (400)
{
"code": 400,
"message": "Request was not valid.",
"details": [
"string"
]
}
Response examples (401)
{
"code": 401,
"message": "Unauthorized. The user is not authenticated.",
"details": []
}