New Customer not showing on draft order via an API import

odellsgf
New Member
3 0 0

We recently had an API created that imported our customers restaurant orders (GLORIA FOOD APP) into Shopify Draft Orders. It works great except for 1 thing. When we have a NEW CUSTOMER who has never ordered from us before (they are not in the shopify customers database) the order doesn't show up in the Draft Orders. Can anyone give light on why that is happening. Myself and the API developer can't seem to figure it out.

Thanks

Tony

0 Likes
GrahamS
Shopify Staff
Shopify Staff
135 21 30

Hey @odellsgf ,

Could I ask you to provide an x-request-id from a request that resulted in this error? It should be in the return headers. We can check this out to see what might be happening.

Best,

Graham S | API 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
HunkyBill
Shopify Expert
4582 50 519

Usually, the process would be to create the customer first. Customers live in a different system than Orders do, inside Shopify, so they get treated a little differently. So first off, ensure you have created this new customer! If you succeed, then you obviously get a customer ID, and Draft Orders work much much better when you supply a customer ID as opposed to trying to pigeonhole new customer information into the Draft Order directly.

I think if you do that, a one-two punch, you'll have more success with Draft Orders. I know I ran into a lot of troubles when creating Customers, never mind them and Draft Orders, so focus on that aspect is probably for the best. Shopify is finicky with Customers as you probably know.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes
odellsgf
New Member
3 0 0

I have no idea what you are asking for I'm a business owner not a programer. Explanation would be helpful.

0 Likes
odellsgf
New Member
3 0 0

That is useless to us. We are importing an order from another app since Shopify is to lazy to work with restaurants. We can’t ask the customer to create an account on one app and then place their restaurant order on another app.

0 Likes
PaulNewton
Shopify Partner
3123 194 575

@odellsgf wrote:

That is useless to us. We are importing an order from another app since Shopify is to lazy to work with restaurants. We can’t ask the customer to create an account on one app and then place their restaurant order on another app.


This is the shopify API and SDK subforum a place specifically for Shopify App development technical details.


@odellsgf wrote:

We recently had an API created that imported


If this is not your expertise then connect with whoever created that API to be the one to guide this issue.

 

Problem Solved? ✔️Accept and ? Like the solution so you can help others.
Buy me a coffee ☕ paypal.me/paulnewton or donate to eff.org
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com
HunkyBill
Shopify Expert
4582 50 519

So sorry for wasting your time. I wish you the best in fixing lazy Shopify!

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes