I am trying to figure out if it is possible to do a checkout via API for Drupal commerce 2. In Drupal 7 there was a module Commerce Services Resources.

I found some posts, but they don't answer my question:

I also found a not finished / maintained repository containing some web apis doing similar stuff, https://github.com/solody/commerce_checkout_api

  • What do you needed out of an API here? A "checkout" in Commerce 2.x essentially requires populating an order object and updating its status to placed. Are you looking for more granular APIs for various parts of the form itself? e.g. do you need a Commerce 2.x API to validate a coupon? format an address form? etc. – Ryan Szrama May 13 at 15:43
  • I want to develop a single page application which is using the different APIs from searching products over creating an order object to adding payments. – CSchulz May 14 at 20:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.