getCommerceStoreByStoreidListingByKey method

Future<void> getCommerceStoreByStoreidListingByKey(
  1. String storeid,
  2. String key
)

Fetch one listing override, by item id or by its slug or SKU

Looks the key up in the store's listing map first and, failing that, matches it against each listing's slug and then its SKU — so a storefront holding only a product's URL slug can still resolve the override. That fallback is unique to the listing reads; the item overlay routes match by id alone. A key matching none of the three is 404, as is a store id outside the caller org's namespace. Readable with an admin token or the anonymous published storefront key.

Parameters:

Implementation

Future<void> getCommerceStoreByStoreidListingByKey(String storeid, String key,) async {
  final response = await getCommerceStoreByStoreidListingByKeyWithHttpInfo(storeid, key,);
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}