What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hi, I would like to create an anonymous shopping cart using the Glue API. There the API tells me I n
Hi, I would like to create an anonymous shopping cart using the Glue API. There the API tells me I need a token. When I call the /Token API, it tells me I have the wrong grant type. The documentation doesn't say anything about the grant type as a parameter or whatever. How do I get a token as Anonymous?
Comments
-
Hi Michael, did you read https://docs.spryker.com/docs/scos/dev/glue-api-guides/202108.0/managing-carts/guest-carts/managing-guest-carts.html#create-a-guest-cart?
https://docs.spryker.com/docs/scos/dev/glue-api-guides/202108.0/managing-carts/guest-carts/managing-guest-cart-items.html#add-items-to-a-guest-cartCreating a guest cart If a guest cart does not exist for the current user, and you send a request to add items, the guest cart is created automatically. Otherwise, the items are added to the existing guest cart.
0 -
But the endpoint is
/guest-carts/{{guest_cart_id}}/guest-cart-items
. Is your {{baseUrl}} includes/guest-carts/{{guest_cart_id}}/
already?0 -
When I make the first call, I don't have a card ID and we use the following URl ({{baseUrl}}/guest-cart-items) because it creates a card and gives me an ID back.
0 -
Hi Michael! Are you using the customer access feature in your project?
If so, adding to cart as guest might be configured to be not allowed.
0 -
Ok, i will check this moment please.
0 -
Yes, we have this plugin active in the backend. I remove the checkboxes and then i have a Spryker\Glue\RestRequestValidator\Processor\Exception\CacheFileNotFoundException - Exception: Validation cache is
enabled, but cache file is not found.
in
/data/vendor/spryker/rest-request-validator/src/Spryker/Glue/RestRequestValidator/Processor/Validator/Configuration/RestRequestValidatorConfigReader.php
(78)0 -
I will restart the docker images and will test it again
0 -
I found the last error. In the main setup missing a step for create the cache for all stores
0 -
After rest-api:build-request-validation-cache is working fine
0 -
Thanks for help and tips
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random