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

# Event types

> Subtotal custom events and payloads delivered to Braze.

Subtotal delivers the following custom events to Braze via the [`users.track`](https://www.braze.com/docs/api/endpoints/user_data/post_user_track/) endpoint. Each event can be used to trigger campaigns, build segments, or power Canvas journeys.

<table><thead><tr><th scope="col">Trigger</th>
<th scope="col">Event or action name</th>
<th scope="col">Sent when</th></tr></thead>
<tbody><tr><td>[Purchase shared](#purchased-at-retailer)</td>
<td>Purchased at Retailer</td>
<td>A purchase is shared with your brand: a new purchase from a linked
account, or the history shared when an account connects or
reconnects.</td></tr>
<tr><td>[Account connected](#connected-an-account)</td>
<td>Connected an Account</td>
<td>A consumer links a retail account. It fires once per connection.</td></tr>
<tr><td>[Account reconnected](#reauthenticated-connection)</td>
<td>Reauthenticated Connection</td>
<td>A connection signs in after it has lost access at least once. From
then on it fires on every sign in, including routine ones.</td></tr>
<tr><td>[Account needs reconnecting](#unauthenticated-connection)</td>
<td>Unauthenticated Connection</td>
<td>A connection loses access at the retailer.</td></tr>
<tr><td>[Account disconnected](#disconnected-an-account)</td>
<td>Disconnected an Account</td>
<td>The consumer, or your app through the API, disconnects the
connection.</td></tr>
<tr><td>[Profile shared](#profile-created)</td>
<td>Profile Created</td>
<td>Subtotal first collects a retail account's profile, and it
goes once to each connection linked to that account at that
moment, not to a connection made later.</td></tr>
<tr><td>[Profile updated](#profile-updated)</td>
<td>Profile Updated</td>
<td>A collected profile changes.</td></tr></tbody></table>

## Purchased at Retailer

Triggered when a purchase is shared with your brand. Sent for qualifying historical purchases and newly shared purchases.

This is the Braze event for the [**Purchase shared** trigger](https://docs.subtotal.com/docs/concepts.md#purchase-triggers).

`status` is the purchase status when the event is sent. A later status change sends no event; read it from [GET /purchases/{purchase_id}](https://docs.subtotal.com/docs/api-reference/purchases/get-purchase.md).

| Key | Type | Description |
| :- | :- | :- |
| `purchase_id` | string | Identifier for the purchase |
| `total` | string | The grand total paid by the customer |
| `tax` | string | The sales tax that was paid |
| `subtotal` | string | The subtotal of the purchase |
| `item_count` | number | The number of items in the purchase |
| `status` | string or null | The purchase status when the event is sent: `pending`, `shipped`, `ready_for_pickup`, `completed`, or `cancelled`. `null` when unknown. |
| `retailer` | string | Identifier for the retailer where the purchase was made |
| `upcs` | array | The UPCs associated with each item in the purchase |
| `brands` | array | The brands associated with each item in the purchase |
| `source` | string | Always `"subtotal"` |

**Example**

```json theme={null}
{
  "purchase_id": "01KEVN1ZPM9H19JSHGN5NF0M69",
  "total": "44.64",
  "tax": "1.60",
  "subtotal": "43.04",
  "item_count": 15,
  "status": "completed",
  "retailer": "walmart",
  "upcs": ["040000476528", "016000124790", "041331027878", "013000001243", "049000031171"],
  "brands": ["frenchs", "heinz", "spam", "jif", "cheerios"],
  "source": "subtotal"
}
```

## Connected an Account

Triggered when a consumer links a retail account.

| Key | Type | Description |
| :- | :- | :- |
| `connection_id` | string | Identifier for the connection |
| `retailer` | string | Identifier for the retailer |
| `source` | string | Always `"subtotal"` |

**Example**

```json theme={null}
{
  "connection_id": "01KFRSK9J11G807TAY0GCYSW67",
  "retailer": "walmart",
  "source": "subtotal"
}
```

## Disconnected an Account

Sent when the consumer, or your app through the API, disconnects the connection.

| Key | Type | Description |
| :- | :- | :- |
| `connection_id` | string | Identifier for the connection |
| `retailer` | string | Identifier for the retailer |
| `link_url` | string | The [Link URL](https://docs.subtotal.com/docs/subtotal-link/link-urls.md) that can be used to reconnect the account |
| `source` | string | Always `"subtotal"` |

**Example**

```json theme={null}
{
  "connection_id": "01KFRSK9J11G807TAY0GCYSW67",
  "retailer": "walmart",
  "link_url": "https://link.subtotal.com/zSG5nWHy?connection_id=01KFRSK9J11G807TAY0GCYSW67",
  "source": "subtotal"
}
```

## Unauthenticated Connection

Triggered when an active connection becomes unauthenticated and requires the customer to reauthenticate (e.g. after a retailer password change).

| Key | Type | Description |
| :- | :- | :- |
| `connection_id` | string | Identifier for the connection |
| `retailer` | string | Identifier for the retailer |
| `link_url` | string | The [Link URL](https://docs.subtotal.com/docs/subtotal-link/link-urls.md) that can be used to reconnect the account |
| `source` | string | Always `"subtotal"` |

**Example**

```json theme={null}
{
  "connection_id": "01KFRSK9J11G807TAY0GCYSW67",
  "retailer": "walmart",
  "link_url": "https://link.subtotal.com/zSG5nWHy?connection_id=01KFRSK9J11G807TAY0GCYSW67",
  "source": "subtotal"
}
```

## Reauthenticated Connection

Sent each time a connection signs in after it has lost access at least once, including routine sign ins. Subtotal also sends **Purchased at Retailer** for purchases collected since the connection last lost access.

| Key | Type | Description |
| :- | :- | :- |
| `connection_id` | string | Identifier for the connection |
| `retailer` | string | Identifier for the retailer |
| `source` | string | Always `"subtotal"` |

**Example**

```json theme={null}
{
  "connection_id": "01KFRSK9J11G807TAY0GCYSW67",
  "retailer": "walmart",
  "source": "subtotal"
}
```

## Profile Created

Triggered the first time Subtotal captures a consumer's profile for a connection — their identity details and purchase metrics scoped to your brands. Use it to enrich Braze user profiles with first-party retail identity.

| Key | Type | Description |
| :- | :- | :- |
| `connection_id` | string | Identifier for the connection |
| `first_name` | string | Consumer's first name (`null` if unavailable) |
| `last_name` | string | Consumer's last name (`null` if unavailable) |
| `email` | string | Consumer's email address (`null` if unavailable) |
| `mobile` | string | Consumer's mobile phone number (`null` if unavailable) |
| `postal_code` | string | Consumer's postal code (`null` if unavailable) |
| `account_created_date` | string | When the consumer's retailer account was created (ISO 8601; `null` if unknown) |
| `total_purchases` | number | All-time number of purchases on the connected account |
| `last_purchase_date` | string | Date of the most recent purchase (ISO 8601; `null` if none) |
| `brand_purchases` | number | Number of those purchases matching your brands |
| `last_brand_purchase_date` | string | Date of the most recent brand purchase (ISO 8601; `null` if none) |
| `brand_purchase_rate` | number | `brand_purchases` ÷ `total_purchases`, from `0.0` to `1.0` |
| `source` | string | Always `"subtotal"` |

**Example**

```json theme={null}
{
  "connection_id": "01KFRSK9J11G807TAY0GCYSW67",
  "first_name": "Jessica",
  "last_name": "Smith",
  "email": "jessica@acme.com",
  "mobile": "+123456789",
  "postal_code": "84101",
  "account_created_date": "2024-03-12T00:00:00Z",
  "total_purchases": 42,
  "last_purchase_date": "2026-01-15T14:30:00Z",
  "brand_purchases": 7,
  "last_brand_purchase_date": "2026-01-14T09:45:00Z",
  "brand_purchase_rate": 0.17,
  "source": "subtotal"
}
```

## Profile Updated

Sent when the collected identity changes: name, email, mobile, postal code or retailer account creation date. New purchases alone do not send it. Each profile event carries the latest purchase metrics and the same properties as **Profile Created**.

| Key | Type | Description |
| :- | :- | :- |
| `connection_id` | string | Identifier for the connection |
| `first_name` | string | Consumer's first name (`null` if unavailable) |
| `last_name` | string | Consumer's last name (`null` if unavailable) |
| `email` | string | Consumer's email address (`null` if unavailable) |
| `mobile` | string | Consumer's mobile phone number (`null` if unavailable) |
| `postal_code` | string | Consumer's postal code (`null` if unavailable) |
| `account_created_date` | string | When the consumer's retailer account was created (ISO 8601; `null` if unknown) |
| `total_purchases` | number | All-time number of purchases on the connected account |
| `last_purchase_date` | string | Date of the most recent purchase (ISO 8601; `null` if none) |
| `brand_purchases` | number | Number of those purchases matching your brands |
| `last_brand_purchase_date` | string | Date of the most recent brand purchase (ISO 8601; `null` if none) |
| `brand_purchase_rate` | number | `brand_purchases` ÷ `total_purchases`, from `0.0` to `1.0` |
| `source` | string | Always `"subtotal"` |

**Example**

```json theme={null}
{
  "connection_id": "01KFRSK9J11G807TAY0GCYSW67",
  "first_name": "Jessica",
  "last_name": "Smith",
  "email": "jessica.smith@acme.com",
  "mobile": "+123456789",
  "postal_code": "84101",
  "account_created_date": "2024-03-12T00:00:00Z",
  "total_purchases": 43,
  "last_purchase_date": "2026-02-02T18:05:00Z",
  "brand_purchases": 8,
  "last_brand_purchase_date": "2026-02-02T18:05:00Z",
  "brand_purchase_rate": 0.19,
  "source": "subtotal"
}
```


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