A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
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
$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);
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