Customers/Create webhook get customer IP

davydovct
Shopify Partner
18 0 2

Hello, i'm using customers/create webhook in my app and i'm wondering why you don't pass customer's IP address to webhook?

https://help.shopify.com/en/api/reference/customers/customer

Or maybe there are any other possibilities to get a customer's IP during registration?

Replies 3 (3)

Ryan
Shopify Staff
499 42 120

Hi there @davydovct,

 

Webhooks only return the contents of the resource and we don't store IP address on the customer resources as per the docs.

Ryan | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

davydovct
Shopify Partner
18 0 2

Why? Orders response has "browser-ip" for example

Ryan
Shopify Staff
499 42 120

I don't have a specific reason why some parameters aren't on individual resources unfortunately.  In this case customers doesn't include an IP therefore the webhook doesn't either.

Ryan | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog