Gift Purchase

Trigger for a FourthWall Gift being purchased
0.2.3

Variables

The following variables will be populated when this trigger executes:

Description
fw.Idstring

Gift Order id

Example: giv_voWcDCtfQUygxpuYx1HtNg
fw.createdAtDateTime

The DateTime of the purchased gift in UTC

fw.currencystring

Currency

Example: USD
fw.discountnumber

Discount amount that was applied

Example: 2
fw.donationnumber

Donation added to the order

Example: 3
fw.emailstring

Supporter e-mail adress

fw.friendlystring

Friendly id

Example: F2LGPYCV
fw.gifts[0].idstring

Gift id

Example: gft_EdJvIXu3SEiXe_QkPavHSA
fw.gifts[0].orderFriendlyIdstring

Friendly order id

Example: F2LGPYCV
fw.gifts[0].orderIdstring

Gift order id

Example: 7b83a86f-9221-4416-b739-ef88870f999b
fw.gifts[0].statusstring

Status of gift

Example: REDEEMED
fw.gifts[0].winnerstring

Gift winner name

Example: supporter-username
fw.gifts[1].idstring

Gift id

Example: gft_EdJvIXu3SEiXe_QkPavHSA
fw.gifts[1].statusstring

Gift status

Example: AVAILABLE
fw.gifts[1].winnerstring

Winner name

Example: winner-1
fw.gifts[2].idstring

Gift id

Example: gft_EdJvIXu3SEiXe_QkPavHSA
fw.gifts[2].statusstring

Gift status

Example: CANCELLED
fw.gifts[2].winnerstring

Winner name

Example: winner-2
fw.gifts[3].idstring

Gift id

Example: gft_EdJvIXu3SEiXe_QkPavHSA
fw.gifts[3].promotionIdstring

Gift promotion id

Example: prm_EdJvIXu3SEiXe_QkPavHSA
fw.gifts[3].statusstring

Gift status

Example: CHANGED_TO_PROMOTION
fw.gifts[3].winnerstring

Winner name

Example: winner-3
fw.offer.descriptionstring

Gift product description

fw.offer.idstring

Gift offer id

Example: b2c201d3-8104-4b2a-b2c9-1f6b335b650a
fw.offer.imageUrlstring

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.namestring

Gift product name

Example: New T-shirt
fw.offer.slugstring

Gift product slug

Example: new-t-shirt
fw.shippingnumber

Shipping Cost

Example: 5
fw.shopIdstring

Shop id

Example: sh_7ad0c438-beda-4779-a885-0dc325a755c1
fw.statmessageusstring

Attached message

Example: message from supporter
fw.subtotalnumber

Subtotal

Example: 10
fw.taxnumber

Tax Cost

Example: 1
fw.totalnumber

Order total amount

Example: 17
fw.usernamestring

Username