FROM CACHE - en_header

CarrierService destination email null

Sid
Shopify Expert
30 2 6

I am setting up an private app related to custom shipping.  And always get null value on email of destination object. Even try with logged customer, email value always be a null. https://prnt.sc/uniuw8

https://shopify.dev/docs/admin-api/rest/reference/shipping-and-fulfillment/carrierservice i see a email field but never get value on it.

is there any restrictrion on this API?

 

 

 

Replies 8 (8)
indiesk
Tourist
7 0 2

I'm having the very same problem. The email field for destination is always null, no matter what. Is this intended or a bug, Shopify?

_JCC_
Shopify Staff
Shopify Staff
178 25 35

@Sid & @indiesk,

This is expected behaviour. The email field will always be null when you receive the carrier service request from Shopify.

From the Shopify dev docs page for the Carrier Service API

For API-created carrier services, you should use only the following shipping address fields:

  • address1
  • address2
  • city
  • zip
  • province
  • country

Other values remain asnulland are not sent to the callback URL.

Regards,

John

John C | Developer Support @ 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 Shopify.dev or the Shopify Web Design and Development Blog

Sid
Shopify Expert
30 2 6

@_JCC_ 

 

Thanks for your reply but if there need shipping based on customer group, can it possible send either customer email or customer id if possible.

 

Another thing in the line items array. Is it possible to get product type, tag or collection ID etc..

developer123
Shopify Partner
2 0 0

Hi,

I already face the same problem. I didn't get the email address in the response.
I just get the below array in response.

Array
(
[rate] => Array
(
[origin] => Array
(
[country] => CA
[postal_code] => R3G 2X1
[province] => MB
[city] => Winnipeg
[name] =>
[address1] => 1041 Erin St
[address2] =>
[address3] =>
[phone] =>
[fax] =>
[email] =>
[address_type] =>
[company_name] => devgoodlocal
)

[destination] => Array
(
[country] => CA
[postal_code] => R3B0S1
[province] => MB
[city] => Winnipeg
[name] => Test Customer
[address1] => 225 McDermot
[address2] =>
[address3] =>
[phone] =>
[fax] =>
[email] =>
[address_type] =>
[company_name] =>
)

[items] => Array
(
[0] => Array
(
[name] => Water Bottle - Red
[sku] => WB01
[quantity] => 1
[grams] => 1000
[price] => 999
[vendor] => devgoodlocal
[requires_shipping] => 1
[taxable] => 1
[fulfillment_service] => manual
[properties] => Array
(
)

[product_id] => 6249829695655
[variant_id] => 38057661169831
)

)

[currency] => CAD
[locale] => en
)

)

So, Let us know how can we get it or do we have any other solution to get the customer details

Sid
Shopify Expert
30 2 6

@_JCC_ 

 

In case you return Customer ID will be a solution as well, all time Shopify creates customer or select customer if use exact email, And if Shopify send customer ID then app can check wither user from any group or not.

If possible.

sharathchandra1
New Member
1 0 1

Facing the same issue for more than a year. Please help me if your able to find a solution to get email id and from checkout

Sid
Shopify Expert
30 2 6

Shopify does not listen to this issue!!!! Even unaccepted behaviors with location-based shipping origin.

developer123
Shopify Partner
2 0 0

Hi john,

 

can you please explain why this will always be null? you have a lot of upset shopify partners according to this thread. some who havent been helped in over a year.

 

shopify = not good