Updates multiple orders in a single request.
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
-
Client contact ID
-
Internal order number / code
-
Order name
-
Order description
-
Parent order ID. Send -1 to indicate no parent
-
Business unit (department) ID
-
VAT rate ID. Send null or -1 for no VAT
-
Currency ID
-
Requested payment terms in days
-
Order validity in days
-
Minimum invoiceable amount as string
-
Our contact ID
-
Your contact ID (client's internal contact)
-
Whether timesheets are enabled for this order
-
Timesheets chart of accounts ID
-
Fixed amount for TIMESHEET_FIXED type
-
VAT rate ID for fixed timesheets
-
VAT amount for fixed timesheets
-
Total price for fixed timesheets
-
Description for timesheet element
-
Long description for timesheet element
-
Discount for timesheet element as BigDecimal
-
Department ID for timesheet element
-
Office ID for timesheet element
-
Whether expenses are enabled for this order
-
Whether disbursement fee is enabled
-
Department ID for disbursement element
-
Office ID for disbursement element
-
Department ID for expenses element
-
Office ID for expenses element
-
Primary office ID
-
Client address ID for delivery
-
Delivery address for an order
-
Whether the order is validated
-
Payment chart of accounts ID
-
Validator user IDs size
-
Validator user IDs array
-
Whether validated by the system
-
Whether there is a proforma invoice
-
JSON-stringified warnings map. Send null to clear
-
Organization ID
-
Your reference string
-
Client name (for display in context without a separate lookup)
-
Periodicity configuration for recurring orders
-
Communication email for this order
-
Order email address
-
Article line within an order (includedArticles)
-
Free-text line within an order (orderLines)
-
Layout line for ordering/grouping order elements and tasks. Recursive structure: children have the same shape. Used for both orderElementsLayoutLines and tasks.
-
Task within an order's timesheet task tree (recursive)
curl \
--request POST 'https://wyzio.app/api-v1/orders/batch' \
--header "Content-Type: application/json" \
--data '[{"id":12345678,"contactId":12345678,"orderId":"ORD-2026-001","name":"Website Redesign","description":"Full redesign of the company website","parentOrderId":-1,"department":12345678,"vatRateId":12345678,"currencyId":12345678,"requestedPaymentTerms":30,"orderValidity":30,"minimumAmountToInvoice":100.0,"ourContactId":12345678,"yourContactId":12345678,"isTimesheetsEnabled":false,"timesheetsAccountId":12345678,"fixedAmount":5000.0,"timesheetsVatRateId":12345678,"timesheetsVat":400.0,"timesheetsTotalPrice":5400.0,"timesheetsDescription":"Monthly consulting","timesheetsLongDescription":"string","timesheetsDiscount":0.0,"timesheetsDepartmentId":12345678,"timesheetsOfficeId":12345678,"isExpensesEnabled":false,"isDisbursementFeeEnabled":false,"disbursementDepartmentId":12345678,"disbursementOfficeId":12345678,"expensesDepartmentId":12345678,"expensesOfficeId":12345678,"office":12345678,"clientAddressId":12345678,"address":{"id":12345678,"name":"Main Office","line1":123,"line2":"Suite 4B","city":"Geneva","region":{"id":206},"countryCode2":"CH","countryId":12345678,"postCode":1200,"houseNumber":42,"toTheAttentionOf":"John Doe","position":1,"service":"HR"},"validated":false,"paymentAccountId":12345678,"validatorUserIdsSize":2,"validatorUserIds":[42],"systemValidated":false,"hasProformaInvoice":false,"warnings":{"FIELD":"WARNING_CODE"},"organizationId":12345678,"yourReference":"PO-2026-100","clientName":"John Doe","periodicityConfiguration":{"id":12345678,"startDate":"01/01/2026","endDate":"31/12/2026","periodicityType":"MONTHLY","dayOfWeek":"MONDAY","invoicingTime":"START_OF_PERIOD","orderId":12345678},"communicationEmail":"contact@example.com","orderEmail":"orders@example.com","includedArticles":[{"id":12345678,"tempId":-1,"orderId":12345678,"articleId":12345678,"description":"Custom widget","longDescription":"string","price":100.0,"amount":5.0,"discount":10.0,"totalNet":450.0,"vatRateId":12345678,"vat":35.1,"totalPrice":485.1,"shipments":[{"id":12345678,"shipmentDate":"01/06/2026","articleId":12345678,"quantity":10.0,"totalCost":250.0,"generatedStockMovementId":12345678,"officeId":12345678,"orderArticleId":12345678,"salesInvoiceLineId":12345678}],"departmentId":12345678,"officeId":12345678}],"orderLines":[{"id":12345678,"tempId":-1,"orderId":12345678,"description":"Project management fee","longDescription":"string","saleAccountId":12345678,"price":200.0,"amount":1.0,"discount":0.0,"totalNet":200.0,"vatRateId":12345678,"vat":15.6,"totalPrice":215.6,"departmentId":12345678,"officeId":12345678}],"orderElementsLayoutLines":[{"id":12345678,"name":"Services","parentId":12345678,"position":1,"lineType":"ARTICLE","orderElementId":12345678,"children":[]}],"tasks":[{"id":12345678,"name":"Development","rate":100.0,"parentId":12345678,"position":1,"children":[],"archived":false}]}]'
# Headers
# Payload
[
{
"id": 12345678,
"contactId": 12345678,
"orderId": "ORD-2026-001",
"name": "Website Redesign",
"description": "Full redesign of the company website",
"parentOrderId": -1,
"department": 12345678,
"vatRateId": 12345678,
"currencyId": 12345678,
"requestedPaymentTerms": 30,
"orderValidity": 30,
"minimumAmountToInvoice": 100.0,
"ourContactId": 12345678,
"yourContactId": 12345678,
"isTimesheetsEnabled": false,
"timesheetsAccountId": 12345678,
"fixedAmount": 5000.0,
"timesheetsVatRateId": 12345678,
"timesheetsVat": 400.0,
"timesheetsTotalPrice": 5400.0,
"timesheetsDescription": "Monthly consulting",
"timesheetsLongDescription": "string",
"timesheetsDiscount": 0.0,
"timesheetsDepartmentId": 12345678,
"timesheetsOfficeId": 12345678,
"isExpensesEnabled": false,
"isDisbursementFeeEnabled": false,
"disbursementDepartmentId": 12345678,
"disbursementOfficeId": 12345678,
"expensesDepartmentId": 12345678,
"expensesOfficeId": 12345678,
"office": 12345678,
"clientAddressId": 12345678,
"address": {
"id": 12345678,
"name": "Main Office",
"line1": 123,
"line2": "Suite 4B",
"city": "Geneva",
"region": {
"id": 206
},
"countryCode2": "CH",
"countryId": 12345678,
"postCode": 1200,
"houseNumber": 42,
"toTheAttentionOf": "John Doe",
"position": 1,
"service": "HR"
},
"validated": false,
"paymentAccountId": 12345678,
"validatorUserIdsSize": 2,
"validatorUserIds": [
42
],
"systemValidated": false,
"hasProformaInvoice": false,
"warnings": {
"FIELD": "WARNING_CODE"
},
"organizationId": 12345678,
"yourReference": "PO-2026-100",
"clientName": "John Doe",
"periodicityConfiguration": {
"id": 12345678,
"startDate": "01/01/2026",
"endDate": "31/12/2026",
"periodicityType": "MONTHLY",
"dayOfWeek": "MONDAY",
"invoicingTime": "START_OF_PERIOD",
"orderId": 12345678
},
"communicationEmail": "contact@example.com",
"orderEmail": "orders@example.com",
"includedArticles": [
{
"id": 12345678,
"tempId": -1,
"orderId": 12345678,
"articleId": 12345678,
"description": "Custom widget",
"longDescription": "string",
"price": 100.0,
"amount": 5.0,
"discount": 10.0,
"totalNet": 450.0,
"vatRateId": 12345678,
"vat": 35.1,
"totalPrice": 485.1,
"shipments": [
{
"id": 12345678,
"shipmentDate": "01/06/2026",
"articleId": 12345678,
"quantity": 10.0,
"totalCost": 250.0,
"generatedStockMovementId": 12345678,
"officeId": 12345678,
"orderArticleId": 12345678,
"salesInvoiceLineId": 12345678
}
],
"departmentId": 12345678,
"officeId": 12345678
}
],
"orderLines": [
{
"id": 12345678,
"tempId": -1,
"orderId": 12345678,
"description": "Project management fee",
"longDescription": "string",
"saleAccountId": 12345678,
"price": 200.0,
"amount": 1.0,
"discount": 0.0,
"totalNet": 200.0,
"vatRateId": 12345678,
"vat": 15.6,
"totalPrice": 215.6,
"departmentId": 12345678,
"officeId": 12345678
}
],
"orderElementsLayoutLines": [
{
"id": 12345678,
"name": "Services",
"parentId": 12345678,
"position": 1,
"lineType": "ARTICLE",
"orderElementId": 12345678,
"children": []
}
],
"tasks": [
{
"id": 12345678,
"name": "Development",
"rate": 100.0,
"parentId": 12345678,
"position": 1,
"children": [],
"archived": false
}
]
}
]
{
"items": [
{
"errorCode": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"possibleWorkflows": [
{
"id": 42,
"name": "string"
}
],
"error": true,
"severeError": true
}
]
}