Modify batch of orders

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://restapi.wyzio.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Wyzio MCP server": {
    "url": "https://restapi.wyzio.com/mcp"
  }
}

Close
POST /api-v1/orders/batch

Updates multiple orders in a single request.

Headers

  • WEAL-TOKEN Required

    API token (can be retrieved from account settings)

  • TARGET-ORGANIZATION-ID

    ID of organization, for which the operation must be performed

application/json

Body Required

  • id integer

    Entity ID. If negative value, a new entity will be created

  • contactId integer

    Client contact ID

  • orderId string

    Internal order number / code

  • name string

    Order name

  • description string

    Order description

  • parentOrderId integer

    Parent order ID. Send -1 to indicate no parent

  • department integer

    Business unit (department) ID

  • vatRateId integer

    VAT rate ID. Send null or -1 for no VAT

  • currencyId integer

    Currency ID

  • requestedPaymentTerms string

    Requested payment terms in days

  • orderValidity string

    Order validity in days

  • minimumAmountToInvoice string

    Minimum invoiceable amount as string

  • ourContactId integer

    Our contact ID

  • yourContactId integer

    Your contact ID (client's internal contact)

  • isTimesheetsEnabled boolean

    Whether timesheets are enabled for this order

  • timesheetsAccountId integer

    Timesheets chart of accounts ID

  • fixedAmount string

    Fixed amount for TIMESHEET_FIXED type

  • timesheetsVatRateId integer

    VAT rate ID for fixed timesheets

  • timesheetsVat string

    VAT amount for fixed timesheets

  • timesheetsTotalPrice string

    Total price for fixed timesheets

  • timesheetsDescription string

    Description for timesheet element

  • timesheetsLongDescription string

    Long description for timesheet element

  • timesheetsDiscount number

    Discount for timesheet element as BigDecimal

  • timesheetsDepartmentId integer

    Department ID for timesheet element

  • timesheetsOfficeId integer

    Office ID for timesheet element

  • isExpensesEnabled boolean

    Whether expenses are enabled for this order

  • isDisbursementFeeEnabled boolean

    Whether disbursement fee is enabled

  • disbursementDepartmentId integer

    Department ID for disbursement element

  • disbursementOfficeId integer

    Office ID for disbursement element

  • expensesDepartmentId integer

    Department ID for expenses element

  • expensesOfficeId integer

    Office ID for expenses element

  • office integer

    Primary office ID

  • clientAddressId integer

    Client address ID for delivery

  • address object

    Delivery address for an order

    Hide address attributes Show address attributes object
    • id integer

      Entity ID. If negative value, a new entity will be created

    • name string

      Address label / name

    • line1 string

      Address line 1

    • line2 string

      Address line 2

    • city string

      City

    • region object

      Region

      Hide region attribute Show region attribute object
      • id integer

        Region ID

    • countryCode2 string

      ISO 3166-1 alpha-2 country code

    • countryId integer

      Country ID

    • postCode string

      Postal code

    • houseNumber string

      House number

    • toTheAttentionOf string

      To the attention of

    • position integer(int32)

      Position order

    • service string

      Service label

  • validated boolean

    Whether the order is validated

  • paymentAccountId integer

    Payment chart of accounts ID

  • validatorUserIdsSize integer

    Validator user IDs size

  • validatorUserIds array[integer(int32)]

    Validator user IDs array

  • systemValidated boolean

    Whether validated by the system

  • hasProformaInvoice boolean

    Whether there is a proforma invoice

  • warnings string

    JSON-stringified warnings map. Send null to clear

  • organizationId integer

    Organization ID

  • yourReference string

    Your reference string

  • clientName string

    Client name (for display in context without a separate lookup)

  • periodicityConfiguration object

    Periodicity configuration for recurring orders

    Hide periodicityConfiguration attributes Show periodicityConfiguration attributes object
    • id integer

      Entity ID. If negative value, a new entity will be created

    • startDate string

      Start date (format dd/MM/yyyy)

    • endDate string

      End date (format dd/MM/yyyy)

    • periodicityType string Required

      Periodicity type. NONE disables recurring invoicing

      Values are NONE, DAILY, WEEKLY, BI_WEEKLY, EVERY_MONTH, EVERY_2_MONTH, EVERY_3_MONTH, EVERY_4_MONTH, EVERY_6_MONTH, or ANNUAL.

    • dayOfWeek string

      Day of week the invoice is generated on, when applicable

      Values are MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, or SUNDAY.

    • invoicingTime string

      When during the period the invoice is generated

      Values are FIRST_DAY, LAST_DAY, FIRST_WORKING_DAY, or LAST_WORKING_DAY.

    • orderId integer

      Order ID this periodicity belongs to

  • communicationEmail string

    Communication email for this order

  • orderEmail string

    Order email address

  • includedArticles array[object]

    Article line within an order (includedArticles)

    Hide includedArticles attributes Show includedArticles attributes object

    Article line within an order (includedArticles)

    • id integer

      Entity ID. If negative value, a new entity will be created

    • tempId integer

      Temporary negative ID used when this article is new. Must match id if id < 0

    • orderId integer

      Order ID this article belongs to

    • articleId integer

      Article ID

    • description string

      Description override

    • longDescription string

      Long description

    • price string

      Unit price as string

    • amount string

      Quantity as string

    • discount string

      Discount percentage as string. Defaults to 0

    • totalNet string

      Net total as string

    • vatRateId integer

      VAT rate ID. Send null or -1 for no VAT

    • vat string

      VAT amount as string

    • totalPrice string

      Total price including VAT as string

    • shipments array[object]

      Shipment records for this article line

      Hide shipments attributes Show shipments attributes object
      • id integer

        Entity ID. If negative value, a new entity will be created

      • shipmentDate string

        Shipment date (format dd/MM/yyyy)

      • articleId integer

        Article ID

      • quantity string

        Quantity as string

      • totalCost number

        Total cost

      • generatedStockMovementId integer

        ID of the stock movement generated for this shipment

      • officeId integer

        Office ID

      • orderArticleId integer

        Order article ID this shipment belongs to

      • salesInvoiceLineId integer

        Sales invoice line ID this shipment was billed through

    • departmentId integer

      Department ID

    • officeId integer

      Office ID

  • orderLines array[object]

    Free-text line within an order (orderLines)

    Hide orderLines attributes Show orderLines attributes object

    Free-text line within an order (orderLines)

    • id integer

      Entity ID. If negative value, a new entity will be created

    • tempId integer

      Temporary negative ID used when this line is new. Must match id if id < 0

    • orderId integer

      Order ID this line belongs to

    • description string

      Line description

    • longDescription string

      Long description

    • saleAccountId integer

      Chart of accounts (sale account) ID

    • price string

      Unit price as string

    • amount string

      Quantity as string

    • discount string

      Discount percentage as string. Defaults to 0

    • totalNet string

      Net total as string

    • vatRateId integer

      VAT rate ID. Send null or -1 for no VAT

    • vat string

      VAT amount as string

    • totalPrice string

      Total price including VAT as string

    • departmentId integer

      Department ID

    • officeId integer

      Office ID

  • orderElementsLayoutLines array[object]

    Layout line for ordering/grouping order elements and tasks. Recursive structure: children have the same shape. Used for both orderElementsLayoutLines and tasks.

    Hide orderElementsLayoutLines attributes Show orderElementsLayoutLines attributes object

    Layout line for ordering/grouping order elements and tasks. Recursive structure: children have the same shape. Used for both orderElementsLayoutLines and tasks.

    • id integer

      Entity ID. If negative value, a new entity will be created

    • name string

      Display name of the group or section

    • parentId integer

      Parent layout line ID

    • position integer(int32)

      Position among siblings

    • lineType string

      Line type

      Values are ARTICLE, ORDER_LINE, TIMESHEET, TIMESHEET_FIXED, EXPENSES, DISBURSEMENT, or HEADER.

    • orderElementId integer

      ID of the order element (article or line) this layout entry refers to

    • children array

      Child layout lines (recursive)

  • tasks array[object]

    Task within an order's timesheet task tree (recursive)

    Hide tasks attributes Show tasks attributes object

    Task within an order's timesheet task tree (recursive)

    • id integer

      Entity ID. If negative value, a new entity will be created

    • name string Required

      Task name

    • rate number

      Hourly rate

    • parentId integer

      Parent task ID

    • position integer(int32)

      Position among siblings

    • children array

      Child tasks (recursive)

    • archived boolean

      Whether the task is archived

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • items array[object]
      Hide items attributes Show items attributes object
      • errorCode object
        Hide errorCode attributes Show errorCode attributes object
        • errorCode string

          Values are NO_ERROR, NOT_IMPLEMENTED_YET, CONTACT_NOT_FOUND, FIELD_REQUIRED, VALIDATION_ERROR, DUPLICATION_ERROR, UNIQUE_CONSTRAINT_VIOLATION, WRONG_PASSWORD_FORMAT, WRONG_PASSWORD, ACTION_DENIED, NOT_FOUND, EXPECTED_ONE_FILE, UNIQUE_VIOLATION, CONTENT_EMPTY, INVALID_TYPE, CONVERSION_ERROR, FILE_PARSE_EXCEPTION, or IN_USE.

        • errorDetailValues array[object]
          Hide errorDetailValues attributes Show errorDetailValues attributes object
          • errorCode string
          • fieldName string
          • data string
          • isSevere boolean
      • freshData

        Refreshed domain data

      • freshRow

        Refreshed table row data

      • possibleWorkflows array[object]
        Hide possibleWorkflows attributes Show possibleWorkflows attributes object
        • id integer(int64)
        • name string
      • error boolean
      • severeError boolean
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

POST /api-v1/orders/batch
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}]}]'
Request examples
# 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
      }
    ]
  }
]
Response examples (200)
{
  "items": [
    {
      "errorCode": {
        "errorCode": "NO_ERROR",
        "errorDetailValues": [
          {
            "errorCode": "string",
            "fieldName": "string",
            "data": "string",
            "isSevere": true
          }
        ]
      },
      "possibleWorkflows": [
        {
          "id": 42,
          "name": "string"
        }
      ],
      "error": true,
      "severeError": true
    }
  ]
}