v1
latestOpenAPI 3.1.02026-07-227350156.5 KBCategory Action Triggers
Register category triggers at program scope
Register category action triggers at the program scope.
Program-level triggers apply to all enrichment requests where the programId field matches this program.
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/programs/{programId}/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
}