Carrier Service API callback does not send mail when user is logged in

Shopify Partner
221 0 13

Hello, 

 

I've been testing out the Carrier Service API for some time now and I'm noticing if the user is logged in the store then the Carrier Service Callback does not send the users e-mail. This is super frustrating, I'm not sure if its only me, but I'm guessing this is not how it is suppose to work. I need the e-mail to be able to pull the customers info and based on the tags he has offer a "special" type of shipping. Is there a way to be sure which user information Im getting besides the email? 

 

Has anybody come accross this problem? 

 

Also I was wondering I was not able to properly test the callback on Draft Orders Checkout. Could anyone confirm if Carrier Service API works on Draft Orders as well? 

Entrepreneur, Developer, Geek, Gamer and very passionate about WEB development! :P

Need help with your Shopify Store? Contact me: jfeuchter@gmail.com :D
1 Like
Shopify Partner
221 0 13

Hello? Could someone from the Shopify Staff confirm this please? Should the email be empty on the Shopify Carrier Service Callback if the person is logged in? 

Entrepreneur, Developer, Geek, Gamer and very passionate about WEB development! :P

Need help with your Shopify Store? Contact me: jfeuchter@gmail.com :D
0 Likes
Shopify Partner
221 0 13

Still no response? D: I sent a mail to support-partners@shopify.com but no response yet. 

Entrepreneur, Developer, Geek, Gamer and very passionate about WEB development! :P

Need help with your Shopify Store? Contact me: jfeuchter@gmail.com :D
0 Likes
Shopify Partner
7 0 0

Hey, I don't get the email passed in the call as well. Need to be able to get the customers email to get their tags. Let me know what you do find out.

0 Likes
Shopify Partner
221 0 13

@Michael_C4 

 

I mailed the partners support mail see if they could help me and this was their response:

 


@Matt wrote:

Going off the documentation it explicitly states "Other values remain as null and are not sent to the callback URL," (which includes email) so I would default to following that behaviour. I can't say for certain why the null email is included in the example, but I'll follow up with our documentation specialists to make that more clear when I have a definite answer.

Matt | Shopify Technical Support

On the documentation HERE, it does say that any null variables on the CallBack are always null. This is pretty sad, I was hoping for it to be a bug, but apparently that is the expected behavior. I do hope this gets added later on Im asking Matt how can we ask for this to be looked on by the developers on Shopify to add it since there are several cases where the email is sent (when the user is as a visitor.) and this would be super useful for developers to have and give better shipping prices and more functionalities for Shopify Store Owners. Ill update if I get a positive answer from the Partners Support. 

 

If you know of a workaround I would like to hear :P

 

Cheers!

Entrepreneur, Developer, Geek, Gamer and very passionate about WEB development! :P

Need help with your Shopify Store? Contact me: jfeuchter@gmail.com :D
0 Likes
Shopify Partner
1704 47 149

Odd.

If your doing something custom perhaps either on the front end A) generate a token B ) get the logged in customer.email,  and sending it through as a LIP?

 

edit: when possible purge it after use to limit inadvertent sharing of such information

 

 

 

Problem Solved? ✔️Accept the solution so you can help others.
Confused? Busy? ? Get me to solve it paull.newton+shopifyforum@gmail.com.
Buy me a coffee? ☕ paypal.me/paulnewton or donate to eff.org
0 Likes
Highlighted
Shopify Partner
221 0 13

@PaulNewton How would I generate a token send it via de Carrier Shipping Callback? Cause that is the main problem, I need a way to get the information from the customer when the callback to my Shipping Calculator is done. And Carrier Shipping only sends a limited amount of information. What is worse is that even the information on the product different, the price is always the original even if it has a discount on the cart. Meaning I can't check which user is via the discount of the products. 

Entrepreneur, Developer, Geek, Gamer and very passionate about WEB development! :P

Need help with your Shopify Store? Contact me: jfeuchter@gmail.com :D
0 Likes
Shopify Partner
1704 47 149

@Jurgen_Feuchter wrote:

@PaulNewton How would I generate a token send it via de Carrier Shipping Callback


 

Not in the sense of an app-auth-token, just something passed through like an id or hash as a line item property that you can use.

I meant "token" in the sense of a convention used for finding the right customer with a backend app that has access to customer info.

Because if you just send customer.email customer.id|customer.tags from the frontend through checkout, as  LIP,  without sanitizing then other services may inadvertently be getting private info.

Problem Solved? ✔️Accept the solution so you can help others.
Confused? Busy? ? Get me to solve it paull.newton+shopifyforum@gmail.com.
Buy me a coffee? ☕ paypal.me/paulnewton or donate to eff.org
0 Likes
Shopify Partner
221 0 13

I was suggested a better workaround, when you recieve the Callback from Shopify Carrier Service, you can actually call the /admin/checkouts.json endpoint to check the abandoned checkouts and run the list down until you get a match (on my case I check the name and address1 are the same just to be sure) on the data and there you have it, the checkouts call will have all the information you need from the customer, items and address. Its a bit messy but it works. Word of advice the checkouts endpoint brigns the orders ordered from oldes to newest, so what I did is get the last 2 days worth of abandoned checkouts cause sometimes they are returning customers and the abandoned checkout might a bit farther down the line. So just use the or "created_at_min" to get the last two days. Hope this helps anyone who need its :D 

 

Cheers!

Entrepreneur, Developer, Geek, Gamer and very passionate about WEB development! :P

Need help with your Shopify Store? Contact me: jfeuchter@gmail.com :D
1 Like
Shopify Partner
1704 47 149

Hilarious that one backend


@Jurgen_Feuchter wrote:

I was suggested a better workaround, when you receive the Callback from Shopify Carrier Service, you can actually call the /admin/checkouts.json endpoint to check the abandoned checkouts and run the list down until you get a match (on my case I check the name and address1 are the same just to be sure) on the data and there you have it, the checkouts call will have all the information you need from the customer, items and address. Its a bit messy but it works. Word of advice the checkouts endpoint brigns the orders ordered from oldes to newest, so what I did is get the last 2 days worth of abandoned checkouts cause sometimes they are returning customers and the abandoned checkout might a bit farther down the line. So just use the or "created_at_min" to get the last two days. Hope this helps anyone who need its :D 

 

Cheers!


That seems fragile, expect it to change.
Hilarious though one endpoint is sterile but dumpsterdiving another endpoint gets results.

Problem Solved? ✔️Accept the solution so you can help others.
Confused? Busy? ? Get me to solve it paull.newton+shopifyforum@gmail.com.
Buy me a coffee? ☕ paypal.me/paulnewton or donate to eff.org
0 Likes