Updates multiple expenses. Returns 200 on success, or 400 if any entry fails validation.
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
Body
Required
-
Entity ID. If negative value, a new entity will be created
-
Whether this expense should be rebilled to the client
-
Expense description / memo
-
Expense date (format dd/MM/yyyy)
-
Merchant name. This as a plain string. If a merchant with this name does not exist, one will be created.
-
Net amount in the original currency, as string
-
VAT amount in the original currency, as string
-
Total amount in the original currency, as string
-
Total amount in the company's currency, as string
-
Payment type
Values are
OWN_RESOURCESorCOMPANY_RESOURCES. -
Currency ID
-
Chart of accounts (expense category) ID
-
Department ID
-
Order ID this expense is attributed to
-
Client (contact) ID associated with the order
-
VAT rate ID. Use null for "Manual" type VAT entries.
-
Receipt document file ID. Taken from the uploaded document's fileId
-
Office ID
curl \
--request POST 'https://wyzio.app/api-v1/expenses/batch' \
--header "Content-Type: application/json" \
--data '[{"id":12345678,"reBill":false,"description":"Client lunch","date":"01/06/2026","merchant":"Starbucks","currencyNetAmount":100.0,"currencyVatAmount":20.0,"currencyTotalAmount":120.0,"companyCurrencyTotalAmount":120.0,"paymentType":"CREDIT_CARD","currencyId":12345678,"chartOfAccountsId":12345678,"departmentId":12345678,"orderId":12345678,"orderClientId":12345678,"vatRateId":12345678,"receiptDocumentFileId":12345678,"officeId":12345678}]'
# Headers
# Payload
[
{
"id": 12345678,
"reBill": false,
"description": "Client lunch",
"date": "01/06/2026",
"merchant": "Starbucks",
"currencyNetAmount": 100.0,
"currencyVatAmount": 20.0,
"currencyTotalAmount": 120.0,
"companyCurrencyTotalAmount": 120.0,
"paymentType": "CREDIT_CARD",
"currencyId": 12345678,
"chartOfAccountsId": 12345678,
"departmentId": 12345678,
"orderId": 12345678,
"orderClientId": 12345678,
"vatRateId": 12345678,
"receiptDocumentFileId": 12345678,
"officeId": 12345678
}
]
{
"items": [
{
"errorCode": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"possibleWorkflows": [
{
"id": 42,
"name": "string"
}
],
"error": true,
"severeError": true
}
]
}