Commit 93a2b49d5f6 for woocommerce
commit 93a2b49d5f66b37da587589946e0c2a6355df8ec
Author: Luigi Teschio <gigitux@gmail.com>
Date: Mon Oct 5 10:04:04 2026 +0200
Document missing REST API order line item fields (#69323)
* Document missing REST API order line item fields
* Add changelog entry for REST API order documentation
diff --git a/docs/apis/rest-api/v2/orders.mdx b/docs/apis/rest-api/v2/orders.mdx
index 8fc694adae7..2dc17b2c1dd 100644
--- a/docs/apis/rest-api/v2/orders.mdx
+++ b/docs/apis/rest-api/v2/orders.mdx
@@ -91,6 +91,7 @@ The orders API allows you to create, view, update, and delete individual, or a b
| `value` | string | Meta value. |
### Order - Line items properties
+
| Attribute | Type | Description |
| -------------- | ------- | ------------------------------------------------------------------------------------------------------------- |
| `id` | integer | Item ID. `READ-ONLY` |
@@ -107,7 +108,16 @@ The orders API allows you to create, view, update, and delete individual, or a b
| `taxes` | array | Line taxes. See [Order - Taxes properties](#order---taxes-properties) `READ-ONLY` |
| `meta_data` | array | Meta data. See [Order - Meta data properties](#order---meta-data-properties) |
| `sku` | string | Product SKU. `READ-ONLY` |
+| `global_unique_id` | string or null | Product GTIN, UPC, EAN or ISBN. An empty string if not set, or `null` if the product no longer exists. `READ-ONLY` |
| `price` | string | Product price. `READ-ONLY` |
+| `image` | object | Main product image. See [Order - Line item image properties](#order---line-item-image-properties). `READ-ONLY` |
+
+### Order - Line item image properties
+
+| Attribute | Type | Description |
+| --------- | ---- | ----------- |
+| `id` | integer or string | Image attachment ID, returned as an integer or numeric string. An empty string or `0` if no image is set; `0` if the product no longer exists. `READ-ONLY` |
+| `src` | string or boolean | Full-size image URL. An empty string if no image is set or the product no longer exists, or `false` if the attachment cannot be resolved. `READ-ONLY` |
### Order - Tax lines properties
| Attribute | Type | Description |
diff --git a/docs/apis/rest-api/v3/orders.mdx b/docs/apis/rest-api/v3/orders.mdx
index ffd1dc31b1f..1d09f343a7f 100644
--- a/docs/apis/rest-api/v3/orders.mdx
+++ b/docs/apis/rest-api/v3/orders.mdx
@@ -113,7 +113,16 @@ The orders API allows you to create, view, update, and delete individual, or a b
| `taxes` | array | Line taxes. See [Order - Tax lines properties](#order---tax-lines-properties) `READ-ONLY` |
| `meta_data` | array | Meta data. See [Order - Meta data properties](#order---meta-data-properties) |
| `sku` | string | Product SKU. `READ-ONLY` |
+| `global_unique_id` | string or null | Product GTIN, UPC, EAN or ISBN. An empty string if not set, or `null` if the product no longer exists. `READ-ONLY` |
| `price` | string | Product price. `READ-ONLY` |
+| `image` | object | Main product image. See [Order - Line item image properties](#order---line-item-image-properties). `READ-ONLY` |
+
+### Order - Line item image properties
+
+| Attribute | Type | Description |
+| --------- | ---- | ----------- |
+| `id` | integer or string | Image attachment ID, returned as an integer or numeric string. An empty string or `0` if no image is set; `0` if the product no longer exists. `READ-ONLY` |
+| `src` | string or boolean | Full-size image URL. An empty string if no image is set or the product no longer exists, or `false` if the attachment cannot be resolved. `READ-ONLY` |
### Order - Tax lines properties
diff --git a/plugins/woocommerce/changelog/docs-rest-api-order-line-item-fields b/plugins/woocommerce/changelog/docs-rest-api-order-line-item-fields
new file mode 100644
index 00000000000..ca82e9f97b7
--- /dev/null
+++ b/plugins/woocommerce/changelog/docs-rest-api-order-line-item-fields
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Document order line item images and product identifiers; no production change.