Azazie
Azazie's own Build Your Own Bridesmaid Dress configurator (azazie.com/pages/build-your-own-bridesmaid-dress) — getBuildYourOwnConfig reads one style's…
Azazie's own Build Your Own Bridesmaid Dress configurator (azazie.com/pages/build-your-own-bridesmaid-dress) — getBuildYourOwnConfig reads one style's real live price plus every color, fabric and size it ships in, straight off the site's own product-data host.
Domain: azazie.com
Also known as: Azazie, azazie.com
Call it directly
bowmark.providers.azazie.search(query: string): Promise<AzazieSearchResults>
bowmark.providers.azazie.getBuildYourOwnConfig(goodsId: string | number): Promise<AzazieBuildYourOwnConfig>Functions
| Function | What it does |
|---|---|
search | Searches Azazie's catalog by free text (style, color, fabric, occasion) and returns matching dress styles with URLs. |
getBuildYourOwnConfig | Reads one bridesmaid-dress style's full Build Your Own configuration off Azazie's own product-data host — the real live price, every solid + floral color option (each with its own… |
Types
interface AzazieSearchResult {
id: string;
name: string;
url: string;
}
interface AzazieSearchResults {
results: AzazieSearchResult[];
}
interface AzazieColorOption {
key: string;
name: string;
colorId: number;
styleId: number;
hex: string | null;
isFloral: boolean;
isNew: boolean;
isClearance: boolean;
}
interface AzazieSizeOption {
key: string;
name: string;
styleId: number;
isPlusSize: boolean;
}
interface AzazieFabricOption {
key: string;
name: string;
styleId: number;
}
interface AzazieBuildYourOwnConfig {
goodsId: number;
name: string;
subTitle: string;
category: string;
price: number;
compareAtPrice: number | null;
selectedColor: string;
selectedFabric: string;
colors: AzazieColorOption[];
sizes: AzazieSizeOption[];
fabrics: AzazieFabricOption[];
hasCustomSizing: boolean;
isPlusSizeAvailable: boolean;
goodsUrl: string;
}Examples
// What colors and sizes does the Zeya bridesmaid dress ship in, and what does it cost?
const dress = await bowmark.providers.azazie.getBuildYourOwnConfig(1052702);
return { name: dress.name, price: dress.price, colors: dress.colors.map(c => c.name), sizes: dress.sizes.map(s => s.name) };