Supermatic Docs

Event payloads

When you receive an event from a trigger in Supermatic, you often need some information about the event to know what to do. To solve this, an event payload is provided on most events. For example, the payload for a Shopify order creation event will contain information about the created order.

Note that all Shopify event payloads also contain an originalPayload field, holding the unmodified information from Shopify.

Customer creation, disable, enable, update

{
  currency: string;
  id: string;
  legacyResourceId: number;
  totalSpent: string;
}

Order cancellation, creation, fulfillment, partial fulfillment, pay, update

{
  createdAt: string;
  currency: string;
  customer: {
    currency: string;
    id: string;
    legacyResourceId: number;
    totalSpent: string;
  };
  email: string;
  id: string;
  legacyResourceId: number;
  name: string;
  test: boolean;
  totalPrice: string;
}