Identify B2B and web orders through JSON payload

Shopify Partner
1 0 0

How can I identify if an order is B2B or web from order JSON payload?

Reply 1 (1)
1 0 0

I utilize Shopify Flow to auto-tag all B2B Orders with "wholeseller" and filter from there. 


WHEN order is created THEN Check IFCompany is not empty and exists THEN add "wholeseller" tag to the order


Contains order tag "wholeseller" = B2B

Doesn't contain order tag "wholeseller" = WEB