Development discussions around Shopify APIs
Hi,
I have made a few test purchases in my DEV shop and am currently trying to test the customer endpoint. I noticed that some fields are showing as 'null':
last_order_id last_order_name
total_spent
Are these fields only available when real purchases are made?
Here are the docs:
https://shopify.dev/api/admin-rest/2021-10/resources/customer#resource_object
Some greets
Hey @Tenarius
I took into a look into this and for orders that are placed on a test gateway on development store, I can confirm those values would be null be default - so it's expected behaviour there.
If needing to test with real payments (in which the aforementioned values would be populated with data), then the store can be transferred to a paid plan. Feel free to check out the docs here - it run through the options when testing orders on dev stores. Hope that explains at least! Thanks.
User | RANK |
---|---|
10 | |
4 | |
3 | |
3 | |
3 |
We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023