Last active
January 5, 2024 00:07
-
-
Save elephantsneverforget/2eec9626212a82c93f8f9c149d0e6b04 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type PostscriptEventPayload = { | |
type: string; // event name | |
phone?: string; | |
email?: string; | |
external_id: string; // event id | |
// Because Postscript doesn't allow nested properties (yet) we have been advised by Postscript to keep the payload simple. | |
properties: { | |
preEventCartTotal?: number; | |
preEventCartItemCount?: number; | |
currency?: string; | |
currencySymbol?: string; | |
country?: string; | |
zip?: string; | |
countryCode?: string; | |
price?: number; | |
quantity?: number; | |
eventLocationURL?: string; | |
imageUrl?: string; | |
variantTitle?: string; | |
productTitle?: string; | |
productId?: string; | |
variantId?: string; | |
sku?: string; | |
list?: string; | |
brand?: string; | |
category?: string; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment