Discussing APIs and development related to customers, discounts, and order management.
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
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?
@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)
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.
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.