Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Customer Fields not available by test purchase

Customer Fields not available by test purchase

Tenarius
Shopify Partner
16 1 2

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)

Luke_K
Shopify Staff
402 66 102

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. 

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