I would like to have the proper cURL command for getting all pending orders with the products' custom attributes in Magento 2 REST API. I use this, but there are no custom attributes on the products in the result.
curl -X GET -H "Authorization: Bearer xxxxxxxxxxxxxxxxxxxx" -H "Cache-Control: no-cache" 'http://xxxxxx.xxx/index.php/rest/V1/orders?searchCriteria[filter_groups][filters][field]=status&searchCriteria[filter_groups][filters][value]=pending'
What am I doing wrong? I get everything but not the product attributes and the custom product attributes.