unable to call guest cart glue api in b2b marketplace demo shop
http://glue.us.spryker.local/guest-carts
Answers
-
any idea how to call guest cart glue api
0 -
Good morning (here :)) @NarenderLingoju!
First of all, let me give you a suggestion: when requesting help for things like this, I'd recommend providing as much information to help someone (like me) reproduce the issue and see clear details on what you're doing exactly.
For instance, in this situation, the full request would be helpful (i.e. curl command, use something like postman if you don't know how to build it), of course, you should scrap away any private data, but keep the structure so it's more detailed.
Regarding your issue:
I would guess maybe you're not providing the Guest Customer unique id? I think that endpoint will not return any data if you don't provide it with at least a guest customer, or suffix a cart id to the request.You can use the following Header Key:
X-Anonymous-Customer-Unique-Id
Here's the docs:
You can use it like this ( remember to add authentication):curl --location 'http://glue.us.spryker.local/guest-carts' \ --header 'X-Anonymous-Customer-Unique-Id: 164b-5708-8530'
(you can import this snippet to Postman, or other HTTP helper app)
1 -
Also, I believe this is in the wrong forum section, no?
Can an @admin maybe fix this? ( @Samuel Pais , @fsmeier ?)1 -
@victor.vanherpt Please find below attached screenshot , using b2b demo marketplace shop in local
curl --location --request GET 'http://glue.de.spryker.local/guest-carts/' \--header 'X-Anonymous-Customer-Unique-Id: 164b-5708-8531404 not found
curl --location --request GET 'http://glue.de.spryker.local/guest-carts/' \--header 'X-Anonymous-Customer-Unique-Id: 164b-5708-8531
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,048 βοΈ - Guardians (admin)
Good morning :)
thank you @victor.vanherpt for pointing this out, I move this thread into the right section: Spryker Development.All the best,
Florian
1 -
@NarenderLingoju I can't see a screenshot, but if you say it's 404, I will believe it :).
Try to get a known existing cart by providing it as a path parameter:curl --location 'http://glue.us.spryker.local/guest-carts/c9881d60-2497-5d0f-94ed-b421dbb73d38' \--header 'X-Anonymous-Customer-Unique-Id: 164b-5708-8530'
Of course, change the unique ids to match whatever you have in your database.
If no luck, I'd suggest to use the debugger to see if the desired controller is being triggered and see where/why it is returning 404.1 -
curl --location 'http://glue.us.spryker.local/guest-carts' \ --header 'X-Anonymous-Customer-Unique-Id: 164b-5708-8530'
{ "errors": [ { "status": 404, "detail": "Not Found" } ]}
any one help me on this whether guest will work on b2b marketplace demo setup or not.if not how to enable guest cart glue api's .
Thanks0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,048 βοΈ - Guardians (admin)
I just merged the two topics, likely even complete duplicate. So the comment before mine was from another thread :)
All the best,
Florian
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 65 Spryker News
- 879 Developer Corner
- 743 Spryker Development
- 84 Spryker Dev Environment
- 360 Spryker Releases
- 3 Oryx frontend framework
- 33 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 22 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
- 68 Spryker Safari Questions
- 50 Random