getCommerceStoreByStoreidProductByKey method
Fetch a product as this storefront sells it
Returns the stored product with the store's listing for it laid over the top — non-empty listing fields replace the catalog values and the currency is forced to the store's own — which is what lets two storefronts sell the same catalog product at their own price, name and media. The overlay is keyed by the product's ID, so a listing filed only under a slug or SKU does not apply here. An unknown store or key is 404. Readable with an admin token or the anonymous published storefront key.
Parameters:
Implementation
Future<void> getCommerceStoreByStoreidProductByKey(String storeid, String key,) async {
final response = await getCommerceStoreByStoreidProductByKeyWithHttpInfo(storeid, key,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
}