getCommerceStoreByStoreidBundleByKeyWithHttpInfo method
Fetch a bundle as this storefront sells it
Returns the stored bundle with the store's listing for it laid over the top — every non-empty listing field wins, and the currency is forced to the store's own — so the caller reads what this storefront actually sells rather than the catalog-wide record. The overlay is keyed by the item's ID: a listing filed only under a slug or SKU does not reach it, unlike the listing reads, which do fall back to those. 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> getCommerceStoreByStoreidBundleByKeyWithHttpInfo(String storeid, String key,) async {
// ignore: prefer_const_declarations
final path = r'/v1/commerce/store/{storeid}/bundle/{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,
);
}