I am using the orders API to retrieve and process orders through an internal ordering system. However, as part of the process I need the card type from the payment_details object. When I call the API and get the order back it comes in as:
“payment_details”: null
The API I am using is admin/api/2023-04/orders.json
Has anyone else started experiencing this issue and if so has anyone managed to get the data to come through. The data seems to have gone missing when I updated to use version 2023-04 of the API.
This property, alongside others, has been removed starting the last release. You should have a warning in the Insights > API Health screen in the App Management screen.
Hello @sam_117
I would like to point out that in Shopify REST api documentation, on the Order resource, payment_details is still listed, even on versions 2023-04 and newer. It is merely marked as deprecated. However, I can see that it is absent from the API responses starting from 2023-04. I know that we should use the transaction resource instead.
However, could I suggest to you to update your docs and remove payment_details from the documentation for order resource starting from api version 2023-04, to avoid any future confusion?
Thank you