Skip to content

Instantly share code, notes, and snippets.

@elephantsneverforget
Created November 16, 2023 15:29
Show Gist options
  • Save elephantsneverforget/877842787e43e1264478cbaac4050f93 to your computer and use it in GitHub Desktop.
Save elephantsneverforget/877842787e43e1264478cbaac4050f93 to your computer and use it in GitHub Desktop.
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