Customer Fields not available by test purchase

Tenarius
Tourist
10 0 0

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

Reply 1 (1)
L_J_K
Shopify Staff
363 54 65

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. 

| API Support @ Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!