Is there a way to create a new order through API without an API key? #4959
-
This recent issue reminded me of a case I encountered recently where we needed to generate a new guest order and add items to it. Since we don't have a logged-in user in that case, we don't have an API key with which we can call the create order API. This is possible through the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@forkata I think If that didn't work, it was maybe because of |
Beta Was this translation helpful? Give feedback.
@forkata I think
POST /orders
is allowed even for non-authenticated users, seesolidus/api/spec/requests/spree/api/orders_spec.rb
Line 38 in aa3063e
If that didn't work, it was maybe because of
Spree::Api::Config.requires_authentication
, which forces authentication on all endpoints?