> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Postscript

> Send storefront events to Postscript with Upstack Data and use them as flow triggers for your SMS subscribers.

> [!NOTE]
>
> **Data direction:** This is a **destination** — Upstack sends event and conversion data **out** to this platform via server-side APIs.

## What does the Postscript destination do?

Upstack sends your storefront events to Postscript as custom events, including product views, carts, checkouts and purchases. You can use them as flow triggers and in **Wait for Event** splits in Postscript ([Postscript: Create Custom Event](https://developers.postscript.io/reference/create-custom-event)).

> [!WARNING]
>
> Postscript gives custom API access only to Enterprise plans and some older plans ([Postscript: who has API access](https://developers.postscript.io/docs/who-has-access-to-the-partner-api)). On other plans, Postscript refuses every event with *"Custom API access is not available on this plan"*. Ask Postscript to turn on API access before you connect.

## Which shoppers does Upstack send events for?

Only shoppers who are already Postscript subscribers. Upstack finds the subscriber by:

1. The Postscript link the shopper clicked in one of your text messages.
2. The shopper's phone numbers.
3. The shopper's email addresses.

If Upstack finds more than one subscriber, it sends the event to each of them. Upstack doesn't create subscribers. Shoppers still join through your Postscript opt-in keywords, popups and forms.

## Setup guides

> [card] [Configure destination](https://docs.upstackdata.com/destinations/catalog/postscript/how-to-configure-postscript-destination-in-upstack-data.md)
>
> Enter your Private API Key and check that Postscript receives your events.

> [card] [Generate API key](https://docs.upstackdata.com/destinations/catalog/postscript/how-to-generate-your-postscript-api-key.md)
>
> Create the Private API Key in Postscript.

## Which events does Upstack send to Postscript?

| Upstack event | Postscript event |
| - | - |
| `page_view` | `active_on_site_upstack` |
| `view_content` | `viewed_product_upstack` |
| `view_category` | `viewed_category_upstack` |
| `add_to_cart` | `added_to_cart_upstack` |
| `view_cart` | `viewed_cart_upstack` |
| `initiate_checkout` | `checkout_started_upstack` |
| `add_shipping_info` | `added_shipping_info_upstack` |
| `add_payment_info` | `added_payment_info_upstack` |
| `purchase` | `placed_order_upstack` |
| `subscription_recurring_purchase` | `subscription_recurring_order_upstack` |
| `order_fulfilled` | `fulfilled_order_upstack` |
| `order_shipped` | `order_shipped_upstack` |
| `refund` | `refunded_order_upstack` |

Account, trial, subscription, payment and invoice events follow the same pattern, for example `trial_started_upstack` and `payment_failed_upstack`.

In Postscript, each event shows with your shop name in front, for example `[Your Shop] - placed_order_upstack`. A new event shows in the Flow Builder only after Postscript receives it for the first time ([Postscript: trigger event properties](https://developers.postscript.io/docs/are-the-trigger-event-properties-for-an-event-only-visible-once-that-specific-event-exists-in-postscript)).

## What does Upstack send with each event?

| Values | Sent with |
| - | - |
| `product_id`, `product_name`, `variant_name`, `price`, `compare_at_price`, `quantity`, `image_url` | Events with products. These describe the first product. |
| `item_count`, `item_names`, `item_ids`, `item_prices`, `brands`, `categories`, `collections`, `tags` | Events with products. These list every product, separated by commas. |
| `value`, `currency`, `discount_code`, `shipping`, `tax`, `total_discounts` | Carts, checkouts and orders, when the event has them |
| `checkout_url` | `checkout_started_upstack` |
| `category_id`, `category_name` | `viewed_category_upstack` |
| `url`, `page_title` | Events from your store's pages |

Postscript lets you use these values in flow filters and messages ([Postscript: Create Custom Event](https://developers.postscript.io/reference/create-custom-event)).

## Questions

> [accordion] Do Upstack events duplicate the triggers from the Postscript Shopify app?
>
> No. Upstack events show as separate triggers ending in `_upstack`, next to Postscript's own triggers such as **Checkout Started**. Pick one trigger for each flow.

> [accordion] Can I send other events to Postscript?
>
> Yes, with a custom trigger on the destination's **Event Mappings** tab. Upstack replaces spaces and symbols in the event name with `_` and adds `_upstack` to the end, so `High Value Order` becomes `High_Value_Order_upstack`. See [Destination event mappings](https://docs.upstackdata.com/guides/custom-events/destination-event-mappings.md).

> [accordion] Why isn't an event showing in Postscript?
>
> Check each of these:
>
> * The shopper is a Postscript subscriber, and Upstack knows their phone number or email, or they clicked a link in one of your texts.
> * Your Postscript plan includes custom API access. See the warning at the top of this page.
> * Postscript has received that event at least once. A new event shows in the Flow Builder only after the first one arrives.
>
> Full checks: [How do I check the Postscript destination is working?](https://docs.upstackdata.com/destinations/catalog/postscript/how-to-configure-postscript-destination-in-upstack-data.md#how-do-i-check-the-postscript-destination-is-working)

> [accordion] Will importing past orders start my SMS flows?
>
> No. Upstack sends Postscript only live activity from your store, not past activity it imports.

## Related

> [card] [Identity resolution](https://docs.upstackdata.com/pixel/identity-resolution.md)
>
> How Upstack matches anonymous visitors to known customers.

> [card] [Klaviyo](https://docs.upstackdata.com/destinations/catalog/klaviyo.md)
>
> Send the same events to Klaviyo for email and SMS.

> [card] [Events not reaching destination](https://docs.upstackdata.com/troubleshooting/destination-token-expired-or-auth-error.md)
>
> What to check when events aren't arriving at a destination.

> [card] [All destinations](https://docs.upstackdata.com/destinations/catalog.md)
>
> Every destination Upstack can send events to.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.