getCommerceStoreByStoreidWithHttpInfo method

Future<Response> getCommerceStoreByStoreidWithHttpInfo(
  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.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> getCommerceStoreByStoreidWithHttpInfo(String storeid,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/commerce/store/{storeid}'
    .replaceAll('{storeid}', storeid);

  // 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,
  );
}