Created
November 16, 2023 15:29
-
-
Save elephantsneverforget/877842787e43e1264478cbaac4050f93 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
export 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