PATCH

Bulk Update Orders


Updates multiple orders' archived status.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Events - all permissions
Manage Orders
Learn more about app permissions.
Endpoint
PATCH
https://www.wixapis.com/events/v1/events/{eventId}/orders

Path Params
eventIdstringRequired

Event ID.

Body Params
orderNumberArray <string>minLength 1maxLength 36minItems 1maxItems 100

fieldsFields

Set of fields to update.


archivedboolean

Whether to archive the order.

Response Object
ordersArray <Order>

Updated orders.

Bulk Update Orders Example 1
Request
cURL
curl -X PATCH 'https://api.wix.com/events/v1/events/619d52c0-c93b-4155-a55c-108048f20b3f/orders' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH TOKEN>' \ -d @- << EOF { "orderNumber": [ "FM9X-EHKF-ZO" ], "fields": { "paths": [ "archived" ] }, "archived": false } EOF
Response
JSON
{}
Errors
428Failed Precondition

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?