Order Placed
Trigger for a FourthWall Order being placed
Variables
The following variables will be populated when this trigger executes:
Description | ||
---|---|---|
fw.checkoutId | string | Check out id |
fw.createdAt | DateTime | The DateTime of the placed order in UTC |
fw.currency | string | Currency Example: USD |
fw.discount | number | Discount amount that was applied Example: 2 |
fw.donation | number | Donation added to the order Example: 3 |
fw.email | string | Supporter e-mail adress Example: [email protected] |
fw.emailMarketingOptIn | boolean | If user opted in to email marketing |
fw.friendly | string | Friendly id Example: F2LGPYCV |
fw.orderId | string | Order id |
fw.shipping | number | Shipping Cost Example: 5 |
fw.shopId | string | Shop id Example: sh_7ad0c438-beda-4779-a885-0dc325a755c1 |
fw.source | string | Type of FourthWall webhook Example: ORDER |
fw.statmessageus | string | Attached message Example: message from supporter |
fw.status | string | Order status Example: COMPLETED |
fw.subtotal | number | Subtotal Example: 10 |
fw.tax | number | Tax Cost Example: 1 |
fw.total | number | Order total amount Example: 17 |
fw.updatedAt | DateTime | The DateTime of the updated status in UTC |
fw.username | string | Username |
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[#].currencyCode | string | Currency code Example: USD |
fw.variants[#].id | string | Product id Example: b2c201d3-8104-4b2a-b2c9-1f6b335b650a |
fw.variants[#].image | string | Url of first product image Example: https://cdn.staging.fourthwall.com/customization/sh_7ad0c438-beda-4779-a885-0dc325a755c1/5a125858-0e0c-4099-996f-db61cbd62f8e.jpeg |
fw.variants[#].name | string | Product name Example: New T-shirt |
fw.variants[#].quantity | string | Quantity Example: 2 |
fw.variants[#].sku | string | SKU Example: Z3YD-8CTV00S |
fw.variants[#].stock | string | Current stock |
fw.variants[#].unitPrice | number | Unit price Example: 5 |