Skip to content

getProduct

getProduct

Definition

Get the product with passed productId

Signature

ts
export async function getProduct(
  productId: string,
  params: unknown = null,
  contextInstance: ShopwareApiInstance = defaultInstance,
): Promise<ProductResponse>

Parameters

NameTypeDescription
productId
string
params
contextInstance
ShopwareApiInstance

Return type

ts
Promise<ProductResponse>

Usage example

WARNING

Example is generated automatically. Sometimes it's required to be adjusted to your needs.

Open in StackBlitz