set_order_metafield
Create or update an order's metafield with specified key, value, and optional namespace and type, using upsert.
Instructions
Create or update an order metafield using metafieldsSet (upsert).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | The numeric Shopify order ID (or GID). | |
| namespace | No | Metafield namespace. | |
| key | Yes | Metafield key. | |
| value | Yes | Metafield value. | |
| type | No | Metafield type (required when creating new). |