- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Random string in REST API request
We are trying to do load testing using JMeter tool. Somehow the below API is not working. Can you please clarify how the random string ('38ad050a4cbaa4a13d4bf54466e8afa5') in it is getting generated. In case if we have to generate it ourselves using program, which method has to be called in Magento 2?
http://example.com/rest/default/V1/guest-carts/38ad050a4cbaa4a13d4bf54466e8afa5/estimate-shipping-methods
--------
Give Kudos if it helped or if problem is solved Accept it as a solution
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Random string in REST API request
Hello kalyanchakri
http://example.com/rest/default/V1/guest-carts/38ad050a4cbaa4a13d4bf54466e8afa5/estimate-shipping-methods
This random string mask_id "38ad050a4cbaa4a13d4bf54466e8afa5" which is save in "quote_id_mask" table. You can get this mask_id from quote ID.
Hope It will help to solve problem then please Accept as Solution
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Random string in REST API request
Hello kalyanchakri
http://example.com/rest/default/V1/guest-carts/38ad050a4cbaa4a13d4bf54466e8afa5/estimate-shipping-methods
This random string mask_id "38ad050a4cbaa4a13d4bf54466e8afa5" which is save in "quote_id_mask" table. You can get this mask_id from quote ID.
Hope It will help to solve problem then please Accept as Solution
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Random string in REST API request
Hi @prakash786,
Thanks for your help. I can see that field in the table. I think from here I can find how to retrieve it for a customer. If you have any ready snippet please share.
--------
Give Kudos if it helped or if problem is solved Accept it as a solution