Use both Storefront and Admin API?

Solved
RobertSWE
Tourist
9 0 1

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?

Accepted Solution (1)

Accepted Solutions
c10s
Shopify Partner
65 12 13

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.

View solution in original post

Reply 1 (1)
c10s
Shopify Partner
65 12 13

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.