Answers.Body: <p>After looking at the Commerce docs further, I see I can use the GraphQL API to get information from Commerce. That is, at least for products. Craft 3.5 will allow GraphQL mutations so perhaps that’ll encompass some sort of write API to commerce. If not, I’ll have to create custom endpoints in the Craft app to do the following:</p>
  
  <ul>
  <li>Create customer account</li>
  <li>Edit customer account</li>
  <li>Edit subscription info</li>
  <li>Edit cart</li>
  <li>Checkout</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-15T14:10:02.023Z
Answers.Text: Hi. How'd you get on with this?
Answers.UserDisplayName: Clive Portman
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-06-10T14:07:14.613Z
Answers.LastActivityDate: 2020-06-10T14:07:14.613Z
Answers.UserDisplayName: William
Body: <p>I’m trying to figure out the work involved in using Craft Commerce in a headless setup. Is it possible? I think so. How do I expose the Commerce functionality via an API, instead of through Twig templates? I don’t know.</p>
  
  <p>I’ve done a general Google search, skimmed the Commerce docs, checked NY 17, and checked CraftQuest. I may have missed something. Can anyone point me in the right direction?</p>
  
Tags: <craft3><plugin-craftcommerce3><headless>
Title: Is there a guide for using Craft Commerce headless?
ThreadText: # Is there a guide for using Craft Commerce headless?
  
  (Asked by: username_0 on 2020-06-03)
  
  I’m trying to figure out the work involved in using Craft Commerce in a headless setup. Is it possible? I think so. How do I expose the Commerce functionality via an API, instead of through Twig templates? I don’t know.
  
  I’ve done a general Google search, skimmed the Commerce docs, checked NY 17, and checked CraftQuest. I may have missed something. Can anyone point me in the right direction?
  
  **Tags:** craft3, plugin-craftcommerce3, headless
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2020-06-10. Score: 2
  
  After looking at the Commerce docs further, I see I can use the GraphQL API to get information from Commerce. That is, at least for products. Craft 3.5 will allow GraphQL mutations so perhaps that’ll encompass some sort of write API to commerce. If not, I’ll have to create custom endpoints in the Craft app to do the following:
  
  * Create customer account
  * Edit customer account
  * Edit subscription info
  * Edit cart
  * Checkout
  
  > **Comments:**
  > **username_1**: Hi. How'd you get on with this?  
  
  ---
  
  