{
  "name": "Cancel confirmed Wix order",
  "description": "Cancel only the application-authorized order after explicit customer confirmation and merchant eligibility checks; verify saved cancellation and handle refunds separately.",
  "httpMethod": "post",
  "url": "https://www.wixapis.com/ecom/v1/orders/{order_id}/cancel",
  "headers": [
    {
      "key": "Authorization",
      "value": "{authorization}"
    },
    {
      "key": "wix-site-id",
      "value": "YOUR_WIX_SITE_GUID"
    },
    {
      "key": "Content-Type",
      "value": "application/json"
    }
  ],
  "queryParameters": [],
  "body": {
    "type": "raw-input",
    "contentType": "json",
    "content": "{\"restockAllItems\":true,\"sendOrderCanceledEmail\":false}"
  }
}
