Deprecated API calls

Our APP have deprecation notice https://prnt.sc/blGFziGoIGqv
However the changes affects only Order Rest API and includes:

The following customer object properties on the REST Admin API’s Order resource are deprecated:

  • last_order_id
  • last_order_name
  • orders_count
  • total_spent

The following other line item object properties on the REST Admin API’s Order resource are deprecated:

  • origin_location
  • destination_location

The following object property on the REST Admin API’s Order resource is deprecated:

  • total_price_usd

However we are using Orders for creating orders in Shopify and such fields are not included.
Payload attached:

{
   "order":{
      "note_attributes":[
         {
            "name":"Marketplace Order ID",
            "value":"21232-09512356-12342575"
         },
         {
            "name":"Account",
            "value":"eBay UK"
         },
         {
            "name":"Buyer User ID",
            "value":"m123o12r-123-12335"
         },
         {
            "name":"Selling Manager SalesRecordNumber",
            "value":"931233995"
         },
         {
            "name":"Shipping Service",
            "value":"UK_OtherCourierOrDeliveryInternational"
         }
      ],
      "send_receipt":false,
      "send_fulfillment_receipt":false,
      "checkout_id":"1564373912305702",
      "source_identifier":"22-09556-42575",
      "inventory_behaviour":"decrement_ignoring_policy",
      "created_at":"2023-01-09T13:15:32+00:00",
      "currency":"GBP",
      "email":"2d4f311851d06e20e697@members.ebay.com",
      "note":125235,
      "taxes_included":true,
      "financial_status":"paid",
      "fulfillment_status":null,
      "total_tax":"6.98",
      "line_items":[
         {
            "variant_id":"39772366635216",
            "properties":[
               {
                  "name":"ChannelItemID",
                  "value":"362485819112"
               }
            ],
            "quantity":"3",
            "price":"1.65",
            "fulfillment_service":"manual",
            "variant_inventory_management":"shopify",
            "tax_lines":[
               {
                  "price":"0.99",
                  "rate":0.25,
                  "title":"Item VAT"
               }
            ]
         }
      ],
      "customer":{
         "first_name":"Morten",
         "last_name":"Test",
         "email":"2d4f3131232111851d06e20e697@members.ebay.com"
      },
      "billing_address":{
         "first_name":"Morten",
         "address1":"Test",
         "phone":"1234",
         "city":"test",
         "zip":"7250",
         "province":"",
         "country":"Norway",
         "company":"",
         "last_name":"Test",
         "address2":"",
         "name":"Morten TEst",
         "country_code":"NO"
      },
      "shipping_address":{
         "first_name":"Morten",
         "address1":"Test",
         "phone":"123",
         "city":"Test",
         "zip":"7250",
         "province":"",
         "country":"Norway",
         "last_name":"Reitan",
         "address2":"VOEC:NO:2024926",
         "name":"Morten Reitan",
         "country_code":"NO"
      },
      "fulfillments":[
         
      ],
      "shipping_lines":[
         {
            "code":"Ebay UK_OtherCourierOrDeliveryInternational",
            "title":"Ebay UK_OtherCourierOrDeliveryInternational",
            "price":29.97,
            "source":"shopify",
            "tax_lines":[
               {
                  "price":"5.99",
                  "rate":0.25,
                  "title":"Shipping VAT"
               }
            ]
         }
      ],
      "transactions":[
         {
            "kind":"capture",
            "status":"success",
            "currency":"GBP",
            "gateway":"ebay",
            "amount":"34.9200"
         }
      ]
   }
}

Could you please advise why we have received the noticed

Hi @HemiConnect :waving_hand:

The deprecation notices are a direct response to deprecated requests. I’d recommend combing through your entire source code for the keywords origin_location and destination_location as highlighted in the API health report. If you need further assistance with narrowing down the affected stores, please contact us here with an authenticated account with access to this app.

Hope that helps!

@HemiConnect Were you able to resolve the depreciated calls, if you did, what did you have to do?

Hi,

did anyone manage to get the depreciated notice to go away? We upgraded already to 2023-01 Rest API and updated the webhook version also to 2023-01 and are not using those fields in anyways but the notice doesn’t go away

We’re having the exact same problem. We’ve upgraded all API calls to 2023-01 and all webhook versioning, but are still seeing a deprecation notice:

There doesn’t appear to be any associated action item with this deprecation notice either - it does not appear that there’s anything that needs to be changed about the call since either origin_time can be specified or not? What am I missing to make this error go away?

We are facing the same issue. Even though there are no API calls made from our system to Shopify and the custom app is upgraded to Webhook version 2023-07, we are still getting the below response from Deprecated API. Is there any other way to troubleshoot this @ShopifyDevSup ?

{
  "data_updated_at": "2023-10-04T10:59:59.000000Z",
  "deprecated_api_calls": [
    {
      "api_type": "REST",
      "description": "The delivery_category field has been removed from the ShippingLine REST Admin API.",
      "documentation_url": "https:\/\/shopify.dev\/changelog\/removal-of-the-delivery_category-field-on-order-shipping-lines",
      "endpoint": "Order",
      "last_call_at": "2023-10-04T10:55:04.000000Z",
      "migration_deadline": "2024-04-01T15:00:00.000000Z",
      "graphql_schema_name": null,
      "version": "2023-07"
    },
    {
      "api_type": "REST",
      "description": "The gateway, payment_details, and processing_method fields on the Order resource have been removed.\n\n\nThe `orders\/transactions.json` REST endpoint, and the `transactions` GraphQL connection provide correct information per transaction set.\n",
      "documentation_url": "https:\/\/shopify.dev\/changelog\/payment-properties-deprecation-on-the-admin-api-order-resource",
      "endpoint": "Order",
      "last_call_at": "2023-10-04T10:55:04.000000Z",
      "migration_deadline": "2024-01-01T15:00:00.000000Z",
      "graphql_schema_name": null,
      "version": "2023-04"
    },
    {
      "api_type": "REST",
      "description": "The `origin_location` and `destination_location` fields on line items have been deprecated from Admin REST API's Order resource.",
      "documentation_url": "https:\/\/shopify.dev\/changelog\/property-deprecations-in-the-admin-api-order-and-lineitem-resource",
      "endpoint": "Order",
      "last_call_at": "2023-10-04T10:55:04.000000Z",
      "migration_deadline": "2023-07-01T15:00:00.000000Z",
      "graphql_schema_name": null,
      "version": "2022-10"
    },
    {
      "api_type": "REST",
      "description": "The `total_price_usd` field on `Order` has been deprecated from the Admin REST API's Order resource.",
      "documentation_url": "https:\/\/shopify.dev\/changelog\/property-deprecations-in-the-admin-api-order-and-lineitem-resource",
      "endpoint": "Order",
      "last_call_at": "2023-10-04T10:55:04.000000Z",
      "migration_deadline": "2023-07-01T15:00:00.000000Z",
      "graphql_schema_name": null,
      "version": "2022-10"
    }
  ]
}

Hi @rohan_kanungo ,

If you have already reviewed your app’s logging setup to confirm it wasn’t making any requests at the time, I would recommend rotating the app’s credentials (for admin created apps instructions here) to rule out the possibility of the same app’s API access tokens being used in a development or testing environment.

Hope that helps!

i have same issue any solution?