getCommerceStoreByStoreid method

Future<void> getCommerceStoreByStoreid(
  1. String storeid
)

Fetch one storefront

Reads the addressed store from the caller org's own namespaced database, so an id belonging to another tenant is simply absent there and answers 404 rather than leaking its existence. The body is the stored entity including its embedded listing override map. Readable with an admin or store-read token and also with the anonymous published storefront key, which is what lets a logged-out storefront resolve the store it is rendering.

Parameters:

Implementation

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