Every other API order request returns deprecation warning for the exact same request

Every other API order request returns deprecation warning for the exact same request

edev
Shopify Partner
1 0 0
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"
Reply 1 (1)

garyrgilbert
Shopify Partner
431 41 181

Hi there,

 

I'm pretty sure you can ignore it if you are not relying on anything that is being deprecated. Its a deprecation warning telling you that something is not going to be there in the future and that you should probably upgrade at some point.  Stress on "at some point" at the very latest by 2023-07 🙂 then they will automatically push you to the last supported version anyway,

 

Cheers,

Gary

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution