Email Service Integration - Tags¶
Target Audience: Developers, Stakeholders
Introduction¶
An event and it's payload in Payway corresponds to so-called tags in most e-mail service integrations. This means that you can construct or even combine tags within your email templates, and by doing so, achieve email's with dynamic content. The content that can be included in an email entirely depends on what objects that are available within the email event.
Examples¶
Provider | Example Input | Example Output |
---|---|---|
Rule | See Rule GUI | See Rule GUI |
MailChimp | Hello {{PWAccount_FirstName}} {{PWAccount_LastName}} ! | Hello Jane Doe ! |
Tags¶
To get an idea of which tags are possible, we have listed all possible tags below. Note that all tags are not included in all events.
OrderClosed¶
- PWAccount
- PWAccount_Address
- PWOrder
- PWOrder_OrderDetail
- PWSubscription
- PWOrder_DeliveryAddress
- PWReceipt
PaymentSuccess¶
PaymentFailure¶
PaymentUserAgreementInvalidState¶
PaymentUserProductDeactivated¶
PaymentUserProductFrozen¶
PaymentUserProductRenewed¶
UserProductCancelled¶
NewAccountCreatedFromKis¶
AccountCreatedWithPasswordReset¶
NewAccountRegistered¶
NewCheckoutAccountRegistered¶
AccountActivatedForExistingCustomer¶
AccountRequestedEmailChange¶
ConfirmationEmailRequested¶
AccountRequestedPasswordReset¶
AccountPasswordResetComplete¶
GiftCreated¶
GiftOrderClosed¶
PackageSharingInitialized¶
- PWAccount
- PWSharingReceiver (PWAccount)
- PWSharingSubscription (PWSubscription)
- PWSharingInvite (PWInvite)
- PWPackageSharing
PaymentRetry¶
PaymentRetrySuccessful¶
PaymentAgreementAboutToExpire¶
PackageUpgrade¶
PackageDowngrade¶
PackageChangeCompleted¶
TransitionedToRetentionCampaign¶
- PWAccount
- PWSubscription
- PWNew_Subscription
- PWOrder - limited
PendingSubscriptionValidationChange¶
VoucherCreated¶
VoucherRedeemed¶
Member fields¶
PWAccount¶
PWAccount
CustomerNumber
FirstName
LastName
MobileNumber
SocialSecurityNumber
BirthDate
Gender
Status - "created", "active", "inactive", "archived"
Created - When the account was created
AccountOrigin - Might have been set when the account was created
PWAccount_Address¶
PWAccount_Address
FirstName
LastName
Street
StreetNumber
StairCase
Floor
ApartmentNumber
ZipCode
City
MobileNumber
PhoneNumber
CountryCode
PWOrder¶
PWOrder
SubscriptionStart - If the subscription starts in the future, otherwise 0001-01-01 00:00
SubscriptionStartDate - If the subscription starts in the future, otherwise 0001-01-01
Price - Charged price
VatAmount - Charged vat
TrafficSource - If set
Created - Date and time when the order was created
CreatedDate - Date when the order was created
PurchaseType - "limited", "recurring", "single"
PaymentOption - "creditcard", "invoice", "autogiro", "sms", "directdebit", "directdebit_recurring", "free", "klarna", "klarna_payments"
ParentOrder - If transformed from campaign
Id - Order id
MerchantReference - Merchant reference, more information here
PWOrder_OrderDetail¶
PWOrder_OrderDetail
Length - Period length
Type - "day", "week", "month", "year"
VatCode - Vat percentage
Price - Charged price
ProductCode - Payway product code
Campaign - Campaign or not
BasedOnPackage
Description - Description of the product
PWOrder_BillingAddress¶
PWOrder_BillingAddress
FirstName
LastName
Street
StreetNumber
StairCase
Floor
ApartmentNumber
ZipCode
City
MobileNumber
PhoneNumber
CountryCode
PWOrder_DeliveryAddress¶
PWOrder_DeliveryAddress
FirstName
LastName
Street
StreetNumber
StairCase
Floor
ApartmentNumber
ZipCode
City
MobileNumber
PhoneNumber
CountryCode
PWPayment¶
PWPayment
Type - "normal", "autopay", "credit", "payment_profile_update"
Price
ValueAddedTax
PWPaymentProfile¶
PWPaymentProfile
MaskedCreditcard
ExpireDate
PWSubscription¶
PWSubscription
Title
TitleCode
Code
Name
Recurring
Campaign
State
ValidFrom
ValidFromDate
ValidTo
ValidToDate
PWEmailChange¶
PWEmailChange
NewEmail
UpdateCode
EmailChangeUrl
CompleteEmailChangeUrl
PWPasswordChange¶
PWPasswordChange
ResetUrl
ReturnUrl
ConfirmationCode
PWGift¶
PWGift
GiftCode
ReceiverFirstName
ReceiverLastName
ReceiverContactEmail
GiftUrl
PWProduct¶
PWProduct
ProductCode
Name
ValidFrom
ValidFromDate
ValidTo
ValidToDate
PWInvite¶
PWInvite
ActivationCode
ContactEmail
PWPackageSharing¶
PWPackageSharing
Created
State
PackageSharingId
PWReason¶
PWReason
Reason: "payment_failure", "invalid_agreement", "no_profile"
PWReceipt¶
PWReceipt
CompanyName
Crn
OrderId
CompanyEmail
PhoneNumber
Address
ReceiptText
Sum
PaymentMethod
MaskedCreditcardNumber
PaidAt
PaidAtDate
Articles - List of articles, JSON-format
VatSpecifications - List of vat specifications, JSON-format
PWPaymentRetryData¶
PWPaymentRetryData
PaymentAttemptCount - Number of attempts in total
PaymentAttemptDays - Number of attempted days
PaymentFailedDate - The date of the first failure
OriginalValidTo
PWPaymentExpire¶
PWPaymentExpire
ExpireDate - E.g. "2020-01-13"
ExpireDateTime - E.g. "2020-01-13 00:00:00"
ExpireDays - Days left until expiration
MaskedCreditcard
PWVoucher¶
PWVoucher
CreatedAt ExpiresAt RedeemedAt DaysOfAccess VoucherCode PackageCode ProvisionService
PWVoucher_Details¶
PWVoucher_Details
RedeemedBy PurchasedBy OrderId