Use both Storefront and Admin API?

Solved
RobertSWE
New Member
7 0 0

Hi!

I've built a headless ecommerce website using Storefront Graphql API.
However, I would like to create a Customer without an account (Email subscription), which only be done using Admin API.

Is it a common pattern to use both Admin and Storefront API in a headless solution?

What is your thoughts regarding this?

0 Likes
c10s
Shopify Partner
23 6 5

This is an accepted solution.

It's common, however you will need to use the Admin API server-side and not on the client like you would with the Storefront API.

0 Likes