Product Created
Trigger for a FourthWall product being created
Variables
The following variables will be populated when this trigger executes:
Description | ||
---|---|---|
fw.createdAt | DateTime | DateTime of when the product was created |
fw.description | string | Description Example: desc |
fw.images[#] | string | Image urls Example: https://cdn.staging.fourthwall.com/customization/sh_7ad0c438-beda-4779-a885-0dc325a755c1/5a125858-0e0c-4099-996f-db61cbd62f8e.jpeg |
fw.name | string | Name Example: New T-shirt |
fw.productId | string | Product Id Example: cc5d40e3-9f67-4e5d-8530-1d3f738ca915 |
fw.shopId | string | Shop Id Example: sh_7ad0c438-beda-4779-a885-0dc325a755c1 |
fw.slug | string | Slug name Example: new-t-shirt |
fw.state | string | State Example: AVAILABLE |
fw.updatedAt | DateTime | DateTime of when the product was updated |
fw.variants[#].attributes.color | string | Color Example: White |
fw.variants[#].attributes.colorSwatch | string | Hex color Example: #FFFFFF |
fw.variants[#].attributes.description | string | Description Example: White, S |
fw.variants[#].attributes.size | string | Size Example: S |
fw.variants[#].attributes.weight | string | Weight Example: 1 |
fw.variants[#].currencyCode | string | Currency code Example: USD |
fw.variants[#].id | string | Id Example: e3c12d65-a3aa-417e-a289-dabf71a87194 |
fw.variants[#].image | string | Image url Example: https://cdn.staging.fourthwall.com/customization/sh_7ad0c438-beda-4779-a885-0dc325a755c1/5a125858-0e0c-4099-996f-db61cbd62f8e.jpeg |
fw.variants[#].name | string | Variant Name Example: New T-shirt |
fw.variants[#].sku | string | SKU Example: Z3YD-8CTV00S |
fw.variants[#].stock | string | Current stock |
fw.variants[#].unitPrice | number | Unit price Example: 5 |
fw.variants[0].stockType | string | Stock Type Example: UNLIMITED |