Background of the issue:
I am trying to fetch all orders using our invoicing system via REST API, specifically from the URL hidden link. By default, the ordered product name, including variations like color and size, should appear in the line_items.name attribute in the REST API response. This is my answer to the closed ticket at https://wpml.org/forums/topic/product-variations-removed-from-ordered-product-name-in-rest-api/. The products are not all translated, since they will not be used in all languages. I have translated all variations and I have translated the product the order 10601 is about but still the variations are missing in the REST API response.
Symptoms:
The ordered product name, including variations like color and size, is missing in the line_items.name attribute in the REST API response.
Questions:
Why are product variations missing from the ordered product name in the REST API response?
How can I ensure that product variations appear in the REST API response?