Use both Storefront and Admin API?

Solved

Use both Storefront and Admin API?

RobertSWE
Tourist
9 0 6

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)

c10s
Shopify Partner
67 12 27

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
67 12 27

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.