Skip to main content

Method Signature

client.productData.getProduct(params: GetProductParams): Promise<any>
Retrieves comprehensive product data from a supplier’s catalog, including product details, parts, colors, sizes, and specifications.

Parameters

productId
string
required
The unique identifier for the product in the supplier’s system
localizationCountry
string
required
The country code for localization (e.g., US for United States, CA for Canada)
localizationLanguage
string
required
The language code for localization (e.g., en for English, fr for French)
partId
string
Optional specific part identifier to retrieve data for a single part variant
colorName
string
Optional color name to filter product data by specific color

Returns

Product
object
The complete product data object containing all product information

Example

import { PromoStandards } from 'promostandards-sdk-js';

const client = new PromoStandards.Client({
  id: 'your_account_id',
  password: 'your_password',
  endpoints: [
    {
      type: 'ProductData',
      version: '2.0.0',
      url: 'https://supplier.com/productData'
    }
  ]
});

// Get complete product information
const product = await client.productData.getProduct({
  productId: 'ITEM-12345',
  localizationCountry: 'US',
  localizationLanguage: 'en'
});

console.log(product);

// Get product data for a specific part
const specificPart = await client.productData.getProduct({
  productId: 'ITEM-12345',
  localizationCountry: 'US',
  localizationLanguage: 'en',
  partId: 'ITEM-12345-BLK-L'
});

// Get product data filtered by color
const redProducts = await client.productData.getProduct({
  productId: 'ITEM-12345',
  localizationCountry: 'US',
  localizationLanguage: 'en',
  colorName: 'Red'
});

PromoStandards Documentation

For more details on the Product Data service, refer to the official PromoStandards documentation: Product Data Service 2.0.0

Build docs developers (and LLMs) love