Commit 6915cd115f7 for woocommerce
commit 6915cd115f7d1c1057197d5ba29bee6182e27712
Author: Cvetan Cvetanov <cvetan.cvetanov@automattic.com>
Date: Thu Jul 16 11:22:05 2026 +0300
Document nullable REST API order parent names (#66660)
diff --git a/docs/apis/rest-api/v2/orders.mdx b/docs/apis/rest-api/v2/orders.mdx
index fab4c38eed1..8fc694adae7 100644
--- a/docs/apis/rest-api/v2/orders.mdx
+++ b/docs/apis/rest-api/v2/orders.mdx
@@ -95,6 +95,7 @@ The orders API allows you to create, view, update, and delete individual, or a b
| -------------- | ------- | ------------------------------------------------------------------------------------------------------------- |
| `id` | integer | Item ID. `READ-ONLY` |
| `name` | string | Product name. |
+| `parent_name` | string or null | Parent product name if the product is a variation; otherwise `null`. |
| `product_id` | integer | Product ID. |
| `variation_id` | integer | Variation ID, if applicable. |
| `quantity` | integer | Quantity ordered. |
diff --git a/docs/apis/rest-api/v3/orders.mdx b/docs/apis/rest-api/v3/orders.mdx
index 066b71fd0e8..e3ef9a3d544 100644
--- a/docs/apis/rest-api/v3/orders.mdx
+++ b/docs/apis/rest-api/v3/orders.mdx
@@ -101,6 +101,7 @@ The orders API allows you to create, view, update, and delete individual, or a b
| -------------- | ------- | --------------------------------------------------------------------------------------------------------------------- |
| `id` | integer | Item ID. `READ-ONLY` |
| `name` | string | Product name. |
+| `parent_name` | string or null | Parent product name if the product is a variation; otherwise `null`. |
| `product_id` | integer | Product ID. |
| `variation_id` | integer | Variation ID, if applicable. |
| `quantity` | integer | Quantity ordered. |