Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: Orders created through Draft Order API are not visible on StoreFront

Orders created through Draft Order API are not visible on StoreFront

SyedAbdullah
Visitor
3 0 0

Greetings,

We are creating Orders for Wholesale Customers using Shopify Draft Order API

Problem:
If we apply the wholesale pricing to order through Shopify Admin then the order is displayed on storefront but when the same wholesale pricing is applied through the API, the orders are not being displayed on the storefront under customer order history (Wholesale Channel).

We have thousands of Draft orders which cannot be processed through the Admin individually so, how can we create the Orders which will be displayed on StoreFront without manual processing from the admin.

Regards,
Syed Abdullah

Replies 3 (3)

HunkyBill
Shopify Partner
4853 60 568

Just to be clear here, you are actually completing the Draft Orders you create with the API so that they actually exist as orders right? Because if they are not orders, of course they won't show up in the order history for the customer. Just checking... can you confirm?

 

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

@HunkyBill  On Frontend, I can see both Draft and Completed orders only if Wholesale pricing is applied through the admin.
for instance, Order# 5, 6, and 18 are still Draft Orders but they are visible on Frontend as Wholesale pricing was applied through Admin (Screenshot attached)
The orders that have Wholesale pricing applied through the Admin.The orders that have Wholesale pricing applied through the Admin.


I have tried completing the Draft Orders and they are listed in Admin under orders as well but they are not being displayed on StoreFront unless I apply Wholesale Pricing through Admin instead of the API.

HunkyBill
Shopify Partner
4853 60 568

My guess then is that wholesale flag from Shopify is not wired up to anything in the API, so you are out of luck until they wire that in as an attribute.

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