API call to get order by id returns a deprecated header

Hello,

I’m trying to use to Node client to interact with Shopify, instead of using direct HTTP calls.

Our version is July07

However, when I make a simple

https://shopify.dev/api/admin-rest/2022-07/resources/order#get-orders-order-id

I get a header in the response,

X-Shopify-API-Deprecated-Reason: https://shopify.dev/changelog/property-deprecations-in-the-admin-api-order-and-lineitem-resource

Hence the message:

API Deprecation Notice: {
message: ‘https://shopify.dev/changelog/property-deprecations-in-the-admin-api-order-and-lineitem-resource’,
path: ‘https://loccitane-thailand-staging.myshopify.com/admin/api/2022-07/orders/4613032771751.json
}

However, when I try to retrieve all orders for a customers (https://shopify.dev/api/admin-rest/2022-04/resources/customer#get-customers-customer-id-orders) everything goes smoothly :slightly_smiling_face:

What am I missing?

Thanks for your help

Alex

yes, I have a problem as you

Are you resolve it?

Or someone resolve above problem, Please teach me. Thanks so much

Same problem on my end as well. How did you solve it?

1 Like

I’m getting the same issue. I’m only trying to get one specific order by ID. Even if I specify only the id field, the deprecation warning is still present on the request headers.

Hi @ccwebmaster :waving_hand:

I’d recommend reviewing the API deprecation report for your app instead, to identify the requests that need to be updated. For apps created from the partner dashboard, you can leverage the API health report, and for apps created from a merchant’s Admin, you can fetch the report via the deprecated API calls endpoint /admin/api/2023-01/deprecated_api_calls.json.

Hope that helps!