getCommerceStoreByStoreidProductByKeyWithHttpInfo 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.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> getCommerceStoreByStoreidProductByKeyWithHttpInfo(String storeid, String key,) async {
// ignore: prefer_const_declarations
final path = r'/v1/commerce/store/{storeid}/product/{key}'
.replaceAll('{storeid}', storeid)
.replaceAll('{key}', key);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}