Gift Purchase
Trigger for a FourthWall Gift being purchased
Variables
The following variables will be populated when this trigger executes:
Description | ||
---|---|---|
fw.Id | string | Gift Order id Example: giv_voWcDCtfQUygxpuYx1HtNg |
fw.createdAt | DateTime | The DateTime of the purchased gift 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.friendly | string | Friendly id Example: F2LGPYCV |
fw.gifts[0].id | string | Gift id Example: gft_EdJvIXu3SEiXe_QkPavHSA |
fw.gifts[0].orderFriendlyId | string | Friendly order id Example: F2LGPYCV |
fw.gifts[0].orderId | string | Gift order id Example: 7b83a86f-9221-4416-b739-ef88870f999b |
fw.gifts[0].status | string | Status of gift Example: REDEEMED |
fw.gifts[0].winner | string | Gift winner name Example: supporter-username |
fw.gifts[1].id | string | Gift id Example: gft_EdJvIXu3SEiXe_QkPavHSA |
fw.gifts[1].status | string | Gift status Example: AVAILABLE |
fw.gifts[1].winner | string | Winner name Example: winner-1 |
fw.gifts[2].id | string | Gift id Example: gft_EdJvIXu3SEiXe_QkPavHSA |
fw.gifts[2].status | string | Gift status Example: CANCELLED |
fw.gifts[2].winner | string | Winner name Example: winner-2 |
fw.gifts[3].id | string | Gift id Example: gft_EdJvIXu3SEiXe_QkPavHSA |
fw.gifts[3].promotionId | string | Gift promotion id Example: prm_EdJvIXu3SEiXe_QkPavHSA |
fw.gifts[3].status | string | Gift status Example: CHANGED_TO_PROMOTION |
fw.gifts[3].winner | string | Winner name Example: winner-3 |
fw.offer.description | string | Gift product description |
fw.offer.id | string | Gift offer id Example: b2c201d3-8104-4b2a-b2c9-1f6b335b650a |
fw.offer.imageUrl | string | Gift product image url Example: https://cdn.staging.fourthwall.com/customization/sh_7ad0c438-beda-4779-a885-0dc325a755c1/5a125858-0e0c-4099-996f-db61cbd62f8e.jpeg |
fw.offer.name | string | Gift product name Example: New T-shirt |
fw.offer.slug | string | Gift product slug Example: new-t-shirt |
fw.shipping | number | Shipping Cost Example: 5 |
fw.shopId | string | Shop id Example: sh_7ad0c438-beda-4779-a885-0dc325a755c1 |
fw.statmessageus | string | Attached message Example: message from supporter |
fw.subtotal | number | Subtotal Example: 10 |
fw.tax | number | Tax Cost Example: 1 |
fw.total | number | Order total amount Example: 17 |
fw.username | string | Username |