# PATCH /orders/:order_id

**Resource:** [Orders](./orders.md)  
**MCP tool:** `update_order`  
**Scopes:** `ecommerce:write`  
**Write operation:** yes

Update an ecommerce order's status, fulfillment_status, notes, or shipping address.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `order_id` | path | string | yes |  |
| `status` | body | string | no |  |
| `fulfillment_status` | body | string | no |  |
| `payment_status` | body | string | no |  |
| `notes` | body | string | no |  |
| `shipping_address` | body | object | no |  |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X PATCH   "https://api.trustpager.com/functions/v1/api/v1/orders/:order_id"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"status":"...","fulfillment_status":"...","payment_status":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`