Create a new expense on a building.
Bazimo API (v1)
Languages
Servers
https://doc-api.bazimo.fr/
BodyenumNames: ["Insurance","Litigation","Contract","WorkOrder","OfficeTax","PropertyTax","Other"]
- application/json-patch+json
- application/json
- text/json
- application/*+json
Enum12345699
- https://doc-api.bazimo.fr/api/tenant/{tenantId_path}/expense/createExpense
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://doc-api.bazimo.fr/api/tenant/{tenantId_path}/expense/createExpense' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"billedOn": "string",
"billingEndDate": "string",
"billingStartDate": "string",
"buildingId": "fee3295a-6e55-45b0-a091-7b4de7e39de7",
"comment": "string",
"contractId": "dbf32426-cf38-4818-9c6e-3230d889fa51",
"contractorId": "8e641c22-41f4-4818-ae43-d2cb9b53e3d7",
"supplierBankDetailsId": "11b9a205-e776-4fc2-abb9-1db4a152895d",
"legalOwnerBankAccountId": "450dbb29-672e-4618-bf16-158f3a6d5955",
"details": [
{
"allocationKeyId": "5401842c-871d-48e3-9973-c9cfbf868ecf",
"amountVat": 0.1,
"amountWithoutVat": 0.1,
"taxSystem": 0,
"endDate": "string",
"expenseCategoryId": "21b21134-1430-4366-8ef8-91dd30d54041",
"expenseChargebackType": 1,
"label": "string",
"number": "string",
"startDate": "string",
"workLineCode": "string"
}
],
"disbursementForecastDate": "string",
"entryDate": "string",
"label": "string",
"mediaId": "5a8ffac5-2288-485d-b463-90c3cd9941ad",
"number": "string",
"redditionMode": 1,
"type": 1,
"workLineCode": "string",
"workOrderId": "50150040-5a5c-4c26-9d75-30728d69a42e",
"taxFillingMode": 1
}'BodyenumNames: ["Insurance","Litigation","Contract","WorkOrder","OfficeTax","PropertyTax","Other"]
- application/json-patch+json
- application/json
- text/json
- application/*+json
Enum12345699
- https://doc-api.bazimo.fr/api/tenant/{tenantId_path}/expense/updateExpense
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://doc-api.bazimo.fr/api/tenant/{tenantId_path}/expense/updateExpense' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"billedOn": "string",
"billingEndDate": "string",
"billingStartDate": "string",
"comment": "string",
"contractId": "dbf32426-cf38-4818-9c6e-3230d889fa51",
"contractorId": "8e641c22-41f4-4818-ae43-d2cb9b53e3d7",
"details": [
{
"allocationKeyId": "5401842c-871d-48e3-9973-c9cfbf868ecf",
"amountVat": 0.1,
"amountWithoutVat": 0.1,
"taxSystem": 0,
"endDate": "string",
"expenseCategoryId": "21b21134-1430-4366-8ef8-91dd30d54041",
"expenseChargebackType": 1,
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"label": "string",
"number": "string",
"startDate": "string",
"workLineCode": "string"
}
],
"disbursementForecastDate": "string",
"entryDate": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"label": "string",
"mediaId": "5a8ffac5-2288-485d-b463-90c3cd9941ad",
"number": "string",
"redditionMode": 1,
"taxFillingMode": 1,
"supplierBankDetailsId": "11b9a205-e776-4fc2-abb9-1db4a152895d",
"legalOwnerBankAccountId": "450dbb29-672e-4618-bf16-158f3a6d5955",
"type": 1,
"workOrderId": "50150040-5a5c-4c26-9d75-30728d69a42e"
}'- https://doc-api.bazimo.fr/api/tenant/{tenantId_path}/expense/payExpense
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://doc-api.bazimo.fr/api/tenant/{tenantId_path}/expense/payExpense' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"settledAt": "string"
}'- https://doc-api.bazimo.fr/api/tenant/{tenantId_path}/expense/setAsReadyToPayExpense
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://doc-api.bazimo.fr/api/tenant/{tenantId_path}/expense/setAsReadyToPayExpense' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}'- https://doc-api.bazimo.fr/api/tenant/{tenantId_path}/expense/getExpensesByBuildingId
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://doc-api.bazimo.fr/api/tenant/{tenantId_path}/expense/getExpensesByBuildingId' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"buildingId": "fee3295a-6e55-45b0-a091-7b4de7e39de7",
"datatable": {
"sort": {
"sortBy": 1,
"sortMode": 1
},
"pagination": {
"page": 0,
"rowsPerPage": 0
},
"filters": {},
"search": {
"value": "string"
}
},
"period": {
"periodEndAt": "string",
"periodStartAt": "string"
}
}'Response
No response example- https://doc-api.bazimo.fr/api/tenant/{tenantId_path}/expense/getAllExpenses
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://doc-api.bazimo.fr/api/tenant/{tenantId_path}/expense/getAllExpenses' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"datatable": {
"sort": {
"sortBy": 1,
"sortMode": 1
},
"pagination": {
"page": 0,
"rowsPerPage": 0
},
"filters": {},
"search": {
"value": "string"
}
},
"period": {
"periodEndAt": "string",
"periodStartAt": "string"
}
}'Response
No response example- https://doc-api.bazimo.fr/api/tenant/{tenantId_path}/expense/getExpenseById
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://doc-api.bazimo.fr/api/tenant/{tenantId_path}/expense/getExpenseById' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}'Response
No response example- https://doc-api.bazimo.fr/api/tenant/{tenantId_path}/expense/setExpenseMediaId
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://doc-api.bazimo.fr/api/tenant/{tenantId_path}/expense/setExpenseMediaId' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"expenseId": "a2142719-090a-410b-ad70-ea5efeb1c9dc",
"invoicePdfUrl": "string"
}'