Headless commerce store using Svelte + Shopify for B2B and B2C

I recently started a headless e-commerce project using Svelte for the front-end and the Shopify API in the backend. As it is my first time using Shopify, I’m not entirely sure what features I can use via the Storefront API. I would like my site to have the following features without having to buy Shopify Plus:

  • Customer accounts for tracking orders

  • Affiliate codes (I found several apps that let you do this within the Shopify Website Builder but I wasn’t sure whether I could interact with these via the API?)

  • B2B bulk discounts if the wholesale section of the website is viewed, otherwise showing B2C pricing

I have found resources to achieve all of these goals in a Shopify store however I am struggling to find resources proving these features can be accessed via the API / on custom store fronts. It would be great if someone could point me in the right direction.

Thank you all for the help in advance :slightly_smiling_face: