CarrierService destination email null

Sid
Shopify Expert
25 1 4

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?

 

 

 

indiesk
Tourist
6 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?

0 Likes
_JCC_
Shopify Staff
Shopify Staff
158 21 27

@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

0 Likes
Sid
Shopify Expert
25 1 4

@_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..

0 Likes
developer123
New Member
1 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

0 Likes
Sid
Shopify Expert
25 1 4

@_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.

0 Likes