Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 replies, has 0 voices.

Last updated by Shekhar Bhandari 5 months ago.

Assisted by: Shekhar Bhandari.

Author Posts
November 12, 2025 at 10:28 am

salesC-2

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?

November 14, 2025 at 3:25 am #17577042

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Just to let you know that the issue is now escalated to our developers.

You can continue to use the WorkArround I shared earlier.

Thanks