This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a product.
Note:
To retrieve a non-visible product (visible: false
), your app must have the required SCOPE.STORES.PRODUCT_READ_ADMIN
permission scope.
function getProduct(
productId: string,
options: GetProductOptions,
): Promise<V3Product>;
Product ID.
import { productsV3 } from "@wix/stores";
async function getProduct(productId, options) {
const response = await productsV3.getProduct(productId, options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.