v1
latestOpenAPI 3.0.32026-07-2632131.4 MBAccounting (only available for accounting add-on users)
Create expense
Create expense for provided vendor. The expense will be created only for the specified owner and will not be split between all the listing ownerships.
post/business-models-api/transactions/expenses
Request body
Example request
{
"name": "Maintenance expense",
"categoryId": "123e4567-e89b-12d3-a456-426614174000",
"description": "Bulb replacement",
"amount": 5,
"recognitionDate": "2023-10-27",
"vendorId": "5f4f6e1c1c6e4e001f7e8b4e",
"referenceId": "REF-12345",
"expenseShare": {
"shareSplit": 0.5,
"ownerId": "67166b173907ef3b9bf25fb3",
"listingId": "507f191e810c19729de860ea"
},
"attachments": [
{
"url": "https://cdn.filepicker.io/api/file/bBnKEk8TlmJAUHcLApRx",
"urlThumbnail": "https://cdn.filepicker.io/api/file/bBnKEk8TlmJAUHcLApRx",
"extension": "png",
"fileName": "Invoice copy"
}
]
}Response
Expense created