Last updated 1 year ago
Get a detail of vendor
success response
const response = await fetch('/vendor-store/vendor-details/{vendorPrefixId}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "message": "Successfully got Vendor details." }
Get list of vendor product
const response = await fetch('/vendor-store/vendor-product-list/{id}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "message": "Successfully got Vendor Product list." }
Vendor details based on category
const response = await fetch('/vendor-store/category-based-vendor-list', { method: 'GET', headers: {}, }); const data = await response.json();
{ "message": "Successfully got count \" or \" Successfully got vendor list based on category" }
Contact seller
const response = await fetch('/vendor-store/contact-seller', { method: 'POST', headers: { "Content-Type": "application/x-www-form-urlencoded" }, body: JSON.stringify({ "country": "text", "email": "text", "name": "text" }), }); const data = await response.json();
{ "name": "text", "email": "text", "country": "text", "requirement": "text", "createdDate": "2024-04-28T22:14:05.636Z", "modifiedDate": "2024-04-28T22:14:05.636Z" }