WMC Purchase Emails
Summary / TL:DR: This article will introduce you to WMC Purchase Emails in Blueshift.
Capability
Send a notification email through Blueshift when a customer has placed an order through a WMC order form.
Description
When a customer places an order through a WMC order form, the application will send an event to Blueshift containing the details of the order. This event then triggers a confirmation email in Blueshift
Â
If there is a path in the WMC journey that includes an upsell to be the next purchase, WMC will wait 30 minutes before sending the event to Blueshift whether the customer takes it or not. This is by design in the case that the customer goes back and takes the upsell instead of the original order.
Blueshift Event Name
wmc_purchase
Event Payload Parameters
Â
Parameter | Description |
---|---|
event | wmc_purchase |
wmc_order_number | Order number generated by WMC |
order_id | Unique id generated by the order |
total | Total amount of the transaction |
shipping | Cost of shipping |
tax | Tax amount that was applied to the transaction |
domain | The URL the customer came from in WMC |
order_date | Date and timestamp of when the order was placed |
retailer_customer_id | Concatenation of [Advantage billTo customer number]-[Advantage billTo emailId] |
owning_org | Code for the legal entity associated with the product/item |
ip | IP address collected from the customer |
order_type | The type of order as classified in WMC |
customer_first_name | First name of the customer |
customer_last_name | Last name of the customer |
wmc_order_name | Name of the WMC order form |
currency | Currency type associated with the transaction |
payment_type | Type of payment used for order (CC, Direct Debit, etc.) |
cc_last_digit | Last four digits of the credit card that was used to place the order |
item_number | Item associated with the order |
promo_code | Promo code associated with the order |
premium_set | Premium set associated with the order |
choice_name | The name of the choice that is associated with the order |
choice_code | Choice code associated with the order |
choice_type | Type of choice associated with the order (CIR, AMB, PRO) |
choice_price | Price assigned to the choice |
choice_quantity | Number of choices associated with the order |
item_description | Description of the item |
term_length | The number of issues included in the CIR order |
renewal_flag | Indicates whether a renewal notice should be sent to the subscriber |
query_string_promoCode | Promo code associated with the order |
query_string_COF_IsChecked | Whether or not the Card on File checkbox is checked |
journey_custom_fields | Any custom fields defined at the journey level |
creative_custom_fields | Any custom fields defined at the creative level |
password | new = password required new account existing = password required existing account not required = password not required |
shipping_info_FirstName | ShipTo first name |
shipping_info_LastName | ShipTo last name |
shipping_info_PhoneNumber | ShipTo phone number |
shipping_info_Address1 | ShipTo address 1 |
shipping_info_Address2` | ShipTo address 2 |
shipping_info_Address3 | ShipTo address 3 |
shipping_info_Company | ShipTo company |
shipping_info_Zip | ShiTo zip code |
shipping_info_City | ShipTo city |
shipping_info_Country | ShipTo country |
shipping_info_State | ShipTo state |
billing_info_FirstName | BillTo first name |
billing_info_LastName | BillTo last name |
billing_info_PhoneNumber | BillTo phone number |
billing_info_Address1 | BillTo address 1 |
billing_info_Address2` | BillTo address 2 |
billing_info_Address3 | BillTo address 3 |
billing_info_Company | BillTo company |
billing_info_Zip | ShiTo zip code |
billing_info_City | BillTo city |
billing_info_Country | BillTo country |
billing_info_State | BillTo state |
Email address used to place the order | |
effort_campaign_code | Campaign code assigned to the effort |
jounrey_campaign_code | Campaign code assigned to the journey |
journey_url_nickname | URL nickname of the journey |
Sample Payload
Â
Â
{
"event": "wmc_purchase",
"wmc_order_number": "eozRzGAgsESF_24",
"order_id": "ccd18c7a-2060-44b0-85ff-6e1d604782c9",
"total": 33,
"shipping": 0,
"tax": 0,
"domain": "https://prod-content-app-gateway.apps.prd-3.aws.ocp.14west.io/7ca929cd-c15f-4ecd-a912-811ecb84d5ea/1",
"order_date": "2021-03-24T14:23:41.9232094Z",
"retailer_customer_id": null,
"owning_org": "303",
"ip": "::1",
"order_type": "StandardOrder",
"customer_firstname": "Anton",
"customer_lastname": "Trehubau",
"wmc_order_name": "prd_demo_test",
"currency": "EUR",
"payment_type": "VISA",
"cc_last_digit": "4242",
"item_number": "SPA",
"promo_code": "FAKE1764",
"premium_set": null,
"choice_name": "skip preauth choice",
"choice_code": "SPA001",
"choice_type": "CIR",
"choice_price": "15.00",
"choice_quantity": "1",
"item_description": "description",
"term_length": "0",
"renewal_flag": null,
"query_string": {
"promoCode": "FAKE1764",
"COF_IsChecked": "true"
},
"journey_custom_fields": {
"effort_new": "value 1",
"test_2": "demo",
"test_1": "Mark"
},
"creative_custom_fields": {
"effort_new": "value 1",
"test_2": "demo",
"test_1": "David"
},
"custom_fields": {
"effort_new": "value 1",
"test_2": "demo",
"test_1": "Anton"
},
"password": "New",
"shipping_info": {
"FirstName": "FirstName",
"LastName": "LastName",
"PhoneNumber": "PhoneNumber",
"Address1": "Address1",
"Address2": "Address2",
"Address3": "Address3",
"Company": "Company",
"Zip": "Zip",
"City": "City",
"Country": "Country",
"State": "Stated"
},
"billing_info": {
"FirstName": "FirstName",
"LastName": "LastName",
"PhoneNumber": "PhoneNumber",
"Address1": "Address1",
"Address2": "Address2",
"Address3": "Address3",
"Company": "Company",
"Zip": "Zip",
"City": "City",
"Country": "Country",
"State": "Stated"
},
"email": "test@mail.com",
"effort_campaign_code": "EBBIXX10",
"journey_campaign_code": "EBBIXX11"
"journey_url_nickname": "nickname"
}
Â
Wrap up
You should now have a better understanding of WMC Purchase emails purchase in Blueshift.