API Deprecation notice ["url" => "https://test-store.myshopify.com/admin/api/2023-07/orders.json?limit=10&fields=id%2C+financial_status%2C+currency%2C+total_price%2C+total_tax%2C+created_at%2C+updated_at%2C+line_items","reason" => "https://shopify.dev/changelog/property-deprecations-in-the-admin-api-order-and-lineitem-resource"
I’m doing a simple request to retrieve all orders. It’s a test store with 1 order, which gets returned 50% of the time, every other request throws the above warning.
Setup:
-
PHP 8.1
-
Composer package: “shopify/shopify-api”: “^5.1”
$client = new Rest('storeUrl', 'accesstoken');
$query = [
'limit' => 10,
'fields' => 'id, financial_status, currency, total_price, total_tax, created_at, updated_at, line_items'
];
$response = $this->client->get('orders', [], $query);
I’ve checked and the fields I’m fetching do not seem to be deprecated. Any ideas? I even get the warning if i’m only fetching “id”