v1
latestOpenAPI 3.1.02026-07-227350156.5 KBCategory Action Triggers
Register category triggers at user scope
Register category action triggers at the user scope.
User-level triggers apply to all transactions for all cards belonging to the specified user.
Field requirements:
- id, categoryId, and action are required for each trigger
- categoryId must be a valid Spade category ID (use GET /categories to discover valid IDs)
Limit: A maximum of 300 categoryTriggers can be submitted per request. All registrations are processed synchronously.
Important: Triggers are only applied to enrichment responses when the status is succeeded.
To learn more about action triggers, please read the Category Action Triggers Guide.
put/users/{userId}/category-action-triggers
Request body
Example request
{
"categoryTriggers": [
{
"id": "travel-reward-1",
"categoryId": "020-001-000-000",
"action": {
"type": "REWARD",
"rewardPercent": 3,
"offerId": "travel-3x-promo"
}
}
]
}Response
Registration created successfully
Example response
{
"status": "succeeded",
"version": 1,
"categoryTriggers": [
{
"id": "travel-reward-1",
"categoryId": "020-001-000-000",
"action": {
"type": "REWARD",
"rewardPercent": 3
}
}
],
"totalCount": 10
}