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.
Subtotal delivers the following custom events to Braze via the users.track endpoint. Each event can be used to trigger campaigns, build segments, or power Canvas journeys.
subtotal_purchase
Triggered when a purchase is detected for a connected account. Sent for each historical purchase and for any newly detected purchases.
| 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 |
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
{
"purchase_id": "01KEVN1ZPM9H19JSHGN5NF0M69",
"total": "44.64",
"tax": "1.60",
"subtotal": "43.04",
"item_count": 15,
"retailer": "walmart",
"upcs": ["040000476528", "016000124790", "041331027878", "013000001243", "049000031171"],
"brands": ["frenchs", "heinz", "spam", "jif", "cheerios"],
"source": "subtotal"
}
subtotal_account_connected
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
{
"connection_id": "01KFRSK9J11G807TAY0GCYSW67",
"retailer": "walmart",
"source": "subtotal"
}
subtotal_account_disconnected
Triggered when a consumer disconnects a retail account.
| Key | Type | Description |
|---|
connection_id | string | Identifier for the connection |
retailer | string | Identifier for the retailer |
link_url | string | The Link URL that can be used to reconnect the account |
source | string | Always "subtotal" |
Example
{
"connection_id": "01KFRSK9J11G807TAY0GCYSW67",
"retailer": "walmart",
"link_url": "https://link.subtotal.com/zSG5nWHy?connection_id=01KFRSK9J11G807TAY0GCYSW67",
"source": "subtotal"
}
subtotal_connection_unauthenticated
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 that can be used to reconnect the account |
source | string | Always "subtotal" |
Example
{
"connection_id": "01KFRSK9J11G807TAY0GCYSW67",
"retailer": "walmart",
"link_url": "https://link.subtotal.com/zSG5nWHy?connection_id=01KFRSK9J11G807TAY0GCYSW67",
"source": "subtotal"
}
subtotal_connection_reauthenticated
Triggered when a consumer re-authenticates a previously unauthenticated connection.
| Key | Type | Description |
|---|
connection_id | string | Identifier for the connection |
retailer | string | Identifier for the retailer |
source | string | Always "subtotal" |
Example
{
"connection_id": "01KFRSK9J11G807TAY0GCYSW67",
"retailer": "walmart",
"source": "subtotal"
}