{
"detail": "An action trigger registration is already in progress for this scope."
}
{
"details": "Internal server error."
}
Merchant Registration
Incremental trigger operations at account scope
Perform incremental operations on merchant triggers at the account scope.
Supports two operations:
add: Register new merchants or update existing ones. Only the submitted merchants are affected—existing registrations are preserved. If a trigger ID already exists, its registration is replaced (upsert). Registrations with more than 100 triggers are processed asynchronously as a batch job.
remove: Remove merchants by trigger ID. Removed merchants are excluded from enrichment lookups. Trigger IDs that are not currently active are silently ignored (idempotent).
Limits: Up to 100,000 triggers per add request, with a total cap of 300,000 active triggers per scope. To register more than 100,000 triggers, split them into ≤100,000 batches and submit them with sequential add operations, waiting for each to reach succeeded before the next — see Registering large trigger sets.
{
"detail": "An action trigger registration is already in progress for this scope."
}
{
"details": "Internal server error."
}
Authorizations
X-Api-Key
string
header
required
Body
application/json
Request body for incremental merchant trigger operations.
For add: merchantTriggers is required. triggerIds is optional and ignored if provided.
For remove: triggerIds is required and must be a non-empty list.
operation
enum<string>
required
The operation to perform:
add: Register new merchants or update existing ones via merchant matching
remove: Remove merchants (excluded from enrichment lookups)
Available options:
add,
remove
Example:
"add"
merchantTriggers
object[]
List of merchant triggers to add. Required for the add operation.
If a trigger ID already exists, the old registration is replaced (upsert behavior).
Field requirements:
id, merchantName, and action are always required
level defaults to location if omitted
For level: "location" (default): requires both address and postalCode, or both latitude and longitude
For level: "corporation": requires website on its own, or both address and postalCode, or both latitude and longitude
Triggers that don't meet these requirements are rejected with a 400 error
Required array length: 1 - 100000 elements
Show child attributes
triggerIds
string[] | null
List of trigger IDs to remove. Required and must be non-empty for the remove operation.
Trigger IDs that are not currently active are silently ignored (idempotent).
For add operations, this field is optional and ignored if provided — you may pass null, [], or omit it entirely.
Maximum string length: 512
Example:
["merchant_123", "merchant_456"]
Response
Remove operation completed successfully
Response for the remove PATCH operation.
status
enum<string>
Available options:
succeeded
Example:
"succeeded"
version
integer
The version number of this operation.
Example:
5
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Introduction","colors":{"primary":"#18280E","light":"#F4FAED","dark":"#18280E"},"logo":{"light":"https://mintcdn.com/spade-90e401c6/9HF3Uca9kExHiocb/images/spade-logo-forest.png?fit=max\u0026auto=format\u0026n=9HF3Uca9kExHiocb\u0026q=85\u0026s=04ad3c1e3f4529c5d6c370e693e44807","dark":"https://mintcdn.com/spade-90e401c6/9HF3Uca9kExHiocb/images/spade-logo-sage1.png?fit=max\u0026auto=format\u0026n=9HF3Uca9kExHiocb\u0026q=85\u0026s=f93791318e444084093f74b94e701ccb"},"favicon":"https://mintcdn.com/spade-90e401c6/9HF3Uca9kExHiocb/images/spade-icon-forest.png?fit=max\u0026auto=format\u0026n=9HF3Uca9kExHiocb\u0026q=85\u0026s=7f5578906c65a61f1d6e07d31e2e7771","background":{"color":{"dark":"#090F05"}},"contextual":{"options":["copy","view","download-spec","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"spade-90e401c6","hasAudioNarration":false,"actualSubdomain":"spade-90e401c6","customDomains":["docs.spade.com"],"gitSource":{"type":"github","owner":"spade-data","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b047cc42c0a61b8f6d0a454","clientVersion":"0.0.4324","searchFilterCounts":[{"language":"default","tag":"API Reference","count":72},{"language":"default","tag":"Data Operations","count":49},{"language":"default","tag":"Documentation","count":28},{"language":"default","tag":"Enrichment","count":23},{"language":"default","tag":"Category Registration","count":16},{"language":"default","tag":"Custom Categories","count":16},{"language":"default","tag":"Merchant Registration","count":16},{"language":"default","tag":"Enrichment Guides","count":10},{"language":"default","tag":"Data Operations Guides","count":8},{"language":"default","tag":"Card","count":8}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/merchant-action-triggers/incremental-trigger-operations-at-account-scope","slug":"/api-reference/merchant-action-triggers/incremental-trigger-operations-at-account-scope","pageMetadata":{"title":"Incremental trigger operations at account scope","description":"Perform incremental operations on merchant triggers at the account scope.\n\nSupports two operations:\n- **add**: Register new merchants or update existing ones. Only the submitted merchants are affected—existing registrations are preserved. If a trigger ID already exists, its registration is replaced (upsert). Registrations with more than 100 triggers are processed asynchronously as a batch job.\n- **remove**: Remove merchants by trigger ID. Removed merchants are excluded from enrichment lookups. Trigger IDs that are not currently active are silently ignored (idempotent).\n\n**Limits:** Up to 100,000 triggers per `add` request, with a total cap of 300,000 active triggers per scope. To register more than 100,000 triggers, split them into ≤100,000 batches and submit them with sequential `add` operations, waiting for each to reach `succeeded` before the next — see [Registering large trigger sets](/reference/merchant-registration-guide#registering-large-trigger-sets).\n\nSuccessful `add` operations return `201`; successful `remove` operations return `200`.\n\n**Important:** Only one operation can be in progress per scope at a time. Concurrent requests return 409.\n\nTo learn more about merchant registration, please read the [Merchant Registration Guide](https://docs.spade.com/reference/merchant-registration-guide).","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml patch /merchant-action-triggers","href":"/api-reference/merchant-action-triggers/incremental-trigger-operations-at-account-scope","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Perform incremental operations on merchant triggers at the account scope.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Supports two operations:\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"add\"\n }), \": Register new merchants or update existing ones. Only the submitted merchants are affected—existing registrations are preserved. If a trigger ID already exists, its registration is replaced (upsert). Registrations with more than 100 triggers are processed asynchronously as a batch job.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"remove\"\n }), \": Remove merchants by trigger ID. Removed merchants are excluded from enrichment lookups. Trigger IDs that are not currently active are silently ignored (idempotent).\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Limits:\"\n }), \" Up to 100,000 triggers per \", _jsx(_components.code, {\n children: \"add\"\n }), \" request, with a total cap of 300,000 active triggers per scope. To register more than 100,000 triggers, split them into ≤100,000 batches and submit them with sequential \", _jsx(_components.code, {\n children: \"add\"\n }), \" operations, waiting for each to reach \", _jsx(_components.code, {\n children: \"succeeded\"\n }), \" before the next — see \", _jsx(_components.a, {\n href: \"/reference/merchant-registration-guide#registering-large-trigger-sets\",\n children: \"Registering large trigger sets\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Successful \", _jsx(_components.code, {\n children: \"add\"\n }), \" operations return \", _jsx(_components.code, {\n children: \"201\"\n }), \"; successful \", _jsx(_components.code, {\n children: \"remove\"\n }), \" operations return \", _jsx(_components.code, {\n children: \"200\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Important:\"\n }), \" Only one operation can be in progress per scope at a time. Concurrent requests return 409.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"To learn more about merchant registration, please read the \", _jsx(_components.a, {\n href: \"https://docs.spade.com/reference/merchant-registration-guide\",\n children: \"Merchant Registration Guide\"\n }), \".\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Incremental trigger operations at account scope","description":"Perform incremental operations on merchant triggers at the account scope.\n\nSupports two operations:\n- **add**: Register new merchants or update existing ones. Only the submitted merchants are affected—existing registrations are preserved. If a trigger ID already exists, its registration is replaced (upsert). Registrations with more than 100 triggers are processed asynchronously as a batch job.\n- **remove**: Remove merchants by trigger ID. Removed merchants are excluded from enrichment lookups. Trigger IDs that are not currently active are silently ignored (idempotent).\n\n**Limits:** Up to 100,000 triggers per `add` request, with a total cap of 300,000 active triggers per scope. To register more than 100,000 triggers, split them into ≤100,000 batches and submit them with sequential `add` operations, waiting for each to reach `succeeded` before the next — see [Registering large trigger sets](/reference/merchant-registration-guide#registering-large-trigger-sets).\n\nSuccessful `add` operations return `201`; successful `remove` operations return `200`.\n\n**Important:** Only one operation can be in progress per scope at a time. Concurrent requests return 409.\n\nTo learn more about merchant registration, please read the [Merchant Registration Guide](https://docs.spade.com/reference/merchant-registration-guide).","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml patch /merchant-action-triggers","href":"/api-reference/merchant-action-triggers/incremental-trigger-operations-at-account-scope","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Perform incremental operations on merchant triggers at the account scope.\n\nSupports two operations:\n- **add**: Register new merchants or update existing ones. Only the submitted merchants are affected—existing registrations are preserved. If a trigger ID already exists, its registration is replaced (upsert). Registrations with more than 100 triggers are processed asynchronously as a batch job.\n- **remove**: Remove merchants by trigger ID. Removed merchants are excluded from enrichment lookups. Trigger IDs that are not currently active are silently ignored (idempotent).\n\n**Limits:** Up to 100,000 triggers per `add` request, with a total cap of 300,000 active triggers per scope. To register more than 100,000 triggers, split them into ≤100,000 batches and submit them with sequential `add` operations, waiting for each to reach `succeeded` before the next — see [Registering large trigger sets](/reference/merchant-registration-guide#registering-large-trigger-sets).\n\nSuccessful `add` operations return `201`; successful `remove` operations return `200`.\n\n**Important:** Only one operation can be in progress per scope at a time. Concurrent requests return 409.\n\nTo learn more about merchant registration, please read the [Merchant Registration Guide](https://docs.spade.com/reference/merchant-registration-guide).","tags":["Merchant Action Triggers"],"summary":"Incremental trigger operations at account scope","operationId":"merchantActionTriggersPatch","requestBody":"09d9adbb-da16-4858-9ff6-2685a644d06c","responses":{"200":"aedb13cf-70c9-4f4e-9535-20e8c6e15c0e","201":"e58971c0-f728-4558-b5ba-ba06df39970b","400":"0ffa43a8-6cdc-4bcc-9b77-4372aeea5965","403":"fc6484fa-3074-48d0-8090-bd2e0be5005e","409":"d81d8a7a-ca2d-4418-aa5a-2c6cfe76bc93","500":"3eeba9a0-ff82-4d6f-aa0c-71ae03b0c4a0"},"method":"patch","type":"path","servers":["597da8a1-e378-421f-987f-202f44da6968","e8b28a43-91f9-4252-82f9-220044fe2cd7","c35e2e5f-b594-4177-b69d-c6cfd6c413c2","fc4c8228-a366-44c9-b932-bb32efdcfbec"],"security":["3ffe58e9-5204-41ef-97f8-d009c282a70f"],"path":"/merchant-action-triggers","baseUrlOptions":["https://east.sandbox.spade.com","https://east.api.spade.com","https://west.sandbox.spade.com","https://west.api.spade.com"],"title":"Incremental trigger operations at account scope","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"Request body for incremental merchant trigger operations.\n\n- For `add`: `merchantTriggers` is required. `triggerIds` is optional and ignored if provided.\n- For `remove`: `triggerIds` is required and must be a non-empty list.","required":["operation"],"properties":{"operation":{"type":"string","enum":["add","remove"],"description":"The operation to perform:\n- `add`: Register new merchants or update existing ones via merchant matching\n- `remove`: Remove merchants (excluded from enrichment lookups)","examples":["add"],"isRequired":true,"uniqueKey":"operation","typeLabel":"enum\u003cstring>"},"merchantTriggers":{"type":"array","description":"List of merchant triggers to add. Required for the `add` operation.\n\nIf a trigger ID already exists, the old registration is replaced (upsert behavior).\n\n**Field requirements:**\n- `id`, `merchantName`, and `action` are always required\n- `level` defaults to `location` if omitted\n- For `level: \"location\"` (default): requires both `address` and `postalCode`, or both `latitude` and `longitude`\n- For `level: \"corporation\"`: requires `website` on its own, or both `address` and `postalCode`, or both `latitude` and `longitude`\n- Triggers that don't meet these requirements are rejected with a `400` error","minItems":1,"maxItems":100000,"items":{"type":"object","description":"A merchant trigger to register for action matching.","required":["id","merchantName","action"],"properties":{"id":{"type":"string","description":"Your identifier for this trigger, unique within the scope you are registering against. This ID will be returned in the `actions` field of enrichment responses when this trigger matches a transaction.","maxLength":512,"examples":["trigger-12345"],"isRequired":true,"uniqueKey":"merchantTriggers.items.[INDEX].id","typeLabel":"string"},"merchantName":{"type":"string","description":"The name of the merchant.","maxLength":150,"examples":["Starbucks"],"isRequired":true,"uniqueKey":"merchantTriggers.items.[INDEX].merchantName","typeLabel":"string"},"action":{"type":"object","description":"A custom JSON object returned in the enrichment response when this trigger matches. Use this to store any data relevant to your use case (e.g., reward amounts, offer IDs, campaign metadata).\n\nThe optional `type` field has reserved values with special behavior:\n- `BLOCK`: Adds `authRecommendation: \"BLOCK\"` to the action in the enrichment response. Use this to flag transactions that should be declined.\n- `ALLOW_ONLY`: Adds `authRecommendation: \"ALLOW\"` when the transaction matches a registered merchant. At a given scope, a set of `ALLOW_ONLY` triggers form an allowlist. If no actions match at that scope, each unmatched action is returned with `authRecommendation: \"BLOCK\"`.\n- `REWARD`: No special behavior. Passed through as-is.\n- Any other value: Treated as a custom type and passed through as-is.\n","properties":{"type":{"type":"string","description":"Optional action type. Reserved values `BLOCK` and `ALLOW_ONLY` have special authorization semantics (see above). All other values are passed through without modification.\n","examples":["REWARD","BLOCK","ALLOW_ONLY"],"uniqueKey":"merchantTriggers.items.[INDEX].action.type","typeLabel":"string"}},"additionalProperties":true,"examples":[{"type":"REWARD","rewardPercent":5,"offerId":"offer-abc123"},{"type":"BLOCK","reason":"Gambling merchant"},{"type":"ALLOW_ONLY","category":"approved-vendors"}],"isRequired":true,"uniqueKey":"merchantTriggers.items.[INDEX].action","typeLabel":"object"},"website":{"type":"string","description":"The merchant's website URL. Required if location fields (address, city) are not provided.","maxLength":256,"examples":["https://www.starbucks.com"],"uniqueKey":"merchantTriggers.items.[INDEX].website","typeLabel":"string"},"address":{"type":"string","description":"The street address of the merchant location.","maxLength":150,"examples":["123 Main St"],"uniqueKey":"merchantTriggers.items.[INDEX].address","typeLabel":"string"},"city":{"type":"string","description":"The city of the merchant location.","maxLength":100,"examples":["Seattle"],"uniqueKey":"merchantTriggers.items.[INDEX].city","typeLabel":"string"},"region":{"type":"string","description":"The state or region of the merchant location.","maxLength":100,"examples":["WA"],"uniqueKey":"merchantTriggers.items.[INDEX].region","typeLabel":"string"},"country":{"type":"string","description":"The country of the merchant location.","maxLength":100,"examples":["USA"],"uniqueKey":"merchantTriggers.items.[INDEX].country","typeLabel":"string"},"postalCode":{"type":"string","description":"The postal code of the merchant location.","maxLength":20,"examples":["98101"],"uniqueKey":"merchantTriggers.items.[INDEX].postalCode","typeLabel":"string"},"latitude":{"type":"number","format":"double","description":"The latitude of the merchant location.","examples":[47.6062],"uniqueKey":"merchantTriggers.items.[INDEX].latitude","typeLabel":"number\u003cdouble>"},"longitude":{"type":"number","format":"double","description":"The longitude of the merchant location.","examples":[-122.3321],"uniqueKey":"merchantTriggers.items.[INDEX].longitude","typeLabel":"number\u003cdouble>"},"level":{"type":"string","enum":["corporation","location"],"description":"Controls whether matching is performed at the corporation level or location level. Use \"corporation\" for brand-level matching (e.g. apply trigger to Costco in general). Use \"location\" for a specific physical location (e.g. apply trigger to one specific Costco location). Defaults to \"location\" if not specified.\n","examples":["corporation","location"],"uniqueKey":"merchantTriggers.items.[INDEX].level","typeLabel":"enum\u003cstring>"},"customAttributes":{"type":"object","description":"Optional custom attributes to associate with this trigger registration.","additionalProperties":{"type":"string","uniqueKey":"merchantTriggers.items.[INDEX].customAttributes.additionalProperties","typeLabel":"string"},"examples":[{"storeId":"store-789"}],"uniqueKey":"merchantTriggers.items.[INDEX].customAttributes","typeLabel":"object"}},"uniqueKey":"merchantTriggers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"merchantTriggers","typeLabel":"object[]"},"triggerIds":{"oneOf":[{"type":"array","description":"List of trigger IDs to remove. Required and must be non-empty for the `remove` operation.\n\nTrigger IDs that are not currently active are silently ignored (idempotent).\n\nFor `add` operations, this field is optional and ignored if provided — you may pass `null`, `[]`, or omit it entirely.","items":{"type":"string","maxLength":512,"uniqueKey":"triggerIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"examples":[["merchant_123","merchant_456"]],"uniqueKey":"triggerIds.oneOf.0","typeLabel":"string[]"},{"type":"null","description":"List of trigger IDs to remove. Required and must be non-empty for the `remove` operation.\n\nTrigger IDs that are not currently active are silently ignored (idempotent).\n\nFor `add` operations, this field is optional and ignored if provided — you may pass `null`, `[]`, or omit it entirely.","items":{"type":"string","maxLength":512},"examples":[["merchant_123","merchant_456"]],"uniqueKey":"triggerIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"triggerIds","typeLabel":"string[] | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"add":{"title":"add","summary":"Add merchant triggers","value":{"operation":"add","merchantTriggers":[{"id":"trigger-1","merchantName":"Starbucks","website":"https://www.starbucks.com","level":"corporation","action":{"type":"REWARD","rewardPercent":5,"offerId":"summer-2024-promo"}}]}},"remove":{"title":"remove","summary":"Remove merchant triggers","value":{"operation":"remove","triggerIds":["trigger-1","trigger-2"]}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"aedb13cf-70c9-4f4e-9535-20e8c6e15c0e":{"description":"Remove operation completed successfully","content":{"application/json":{"schema":{"type":"object","description":"Response for the remove PATCH operation.","properties":{"status":{"type":"string","enum":["succeeded"],"examples":["succeeded"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"version":{"type":"integer","description":"The version number of this operation.","examples":[5],"uniqueKey":"version","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"succeeded","version":5}}},"exampleType":"generated"}},"exampleType":"generated"},"e58971c0-f728-4558-b5ba-ba06df39970b":{"description":"Add operation completed (or submitted for batch processing)","content":{"application/json":{"schema":{"type":"object","description":"Response containing the status of a merchant registration.","properties":{"status":{"type":"string","description":"The current status of the merchant registration.\n- `pending`: Registration received, processing not yet started\n- `running`: Registration is being processed (for batch registrations with >100 triggers)\n- `succeeded`: Registration complete, triggers are now active\n- `failed`: Registration failed, check your request and retry\n","enum":["pending","running","succeeded","failed"],"examples":["succeeded"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"version":{"type":"integer","description":"The version number of this registration. Increments with each PUT, PATCH, or DELETE request to this scope.","examples":[1],"uniqueKey":"version","typeLabel":"integer"},"merchantTriggers":{"type":"array","description":"The list of active merchant triggers registered for this scope. Present on GET responses; omitted on PUT and PATCH responses.","items":{"type":"object","properties":{"id":{"type":"string","description":"The trigger ID as provided during registration.","examples":["merchant_123"],"uniqueKey":"merchantTriggers.items.[INDEX].id","typeLabel":"string"},"action":{"type":"object","description":"The action data associated with this trigger, as provided during registration.","additionalProperties":true,"examples":[{"type":"REWARD","points":200}],"uniqueKey":"merchantTriggers.items.[INDEX].action","typeLabel":"object"}},"uniqueKey":"merchantTriggers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"merchantTriggers","typeLabel":"object[]"},"totalCount":{"type":"integer","description":"The total number of active merchant triggers registered for this scope. Present on GET responses; omitted on PUT and PATCH responses.","examples":[50000],"uniqueKey":"totalCount","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"succeeded","version":1,"merchantTriggers":[{"id":"merchant_123","action":{"type":"REWARD","points":200}}],"totalCount":50000}}},"exampleType":"generated"}},"exampleType":"generated"},"0ffa43a8-6cdc-4bcc-9b77-4372aeea5965":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"invalidField":{"type":"array","items":{"type":"string","examples":["This field is required."],"uniqueKey":"invalidField.items.[INDEX]","typeLabel":"string"},"uniqueKey":"invalidField","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"invalidField":["This field is required."]}}},"exampleType":"generated"}},"exampleType":"generated"},"fc6484fa-3074-48d0-8090-bd2e0be5005e":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"details":{"type":"string","examples":["Incorrect authentication credentials."],"uniqueKey":"details","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"details":"Incorrect authentication credentials."}}},"exampleType":"generated"}},"exampleType":"generated"},"d81d8a7a-ca2d-4418-aa5a-2c6cfe76bc93":{"description":"A registration is already in progress for this scope","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","examples":["An action trigger registration is already in progress for this scope."],"uniqueKey":"detail","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"An action trigger registration is already in progress for this scope."}}},"exampleType":"generated"}},"exampleType":"generated"},"3eeba9a0-ff82-4d6f-aa0c-71ae03b0c4a0":{"description":"Unexpected Error","content":{"application/json":{"schema":{"type":"object","properties":{"details":{"type":"string","examples":["Internal server error."],"uniqueKey":"details","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"details":"Internal server error."}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"3ffe58e9-5204-41ef-97f8-d009c282a70f":{"ApiKeyAuth":{"type":"apiKey","name":"X-Api-Key","in":"header","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"597da8a1-e378-421f-987f-202f44da6968":{"url":"https://east.sandbox.spade.com","description":"East coast sandbox environment"},"e8b28a43-91f9-4252-82f9-220044fe2cd7":{"url":"https://east.api.spade.com","description":"East coast production environment"},"c35e2e5f-b594-4177-b69d-c6cfd6c413c2":{"url":"https://west.sandbox.spade.com","description":"West coast sandbox environment"},"fc4c8228-a366-44c9-b932-bb32efdcfbec":{"url":"https://west.api.spade.com","description":"West coast production environment"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","name":"X-Api-Key","in":"header","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"X-Api-Key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-Api-Key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/spec.yml"},"subdomain":"spade-90e401c6","siteName":"Introduction","title":"Incremental trigger operations at account scope - Introduction","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-23T17:50:00.696Z","originalFileLocation":"api-reference/merchant-action-triggers/incremental-trigger-operations-at-account-scope.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Perform incremental operations on merchant triggers at the account scope. Supports two operations: - add: Register new merchants or update existing ones. Only the submitted merchants are affected—existing registrations are preserved. If a trigger ID already exists, its registration is replaced (upsert). Registrations with more than 100 triggers are processed asynchronously as a batch job. - remove: Remove merchants by trigger ID. Removed merchants are excluded from enrichment lookups. Trigger IDs that are not currently active are silently ignored (idempotent). Limits: Up to 100,000 triggers per add request, with a total cap of 300,000 active triggers per scope. To register more than 100,000 triggers, split them into ≤100,000 batches and submit them with sequential add operations, waiting for each to reach succeeded before the next — see Registering large trigger sets. Successful add operations return 201; successful remove operations return 200. Important: Only one operation can be in progress per scope at a time. Concurrent requests return 409. To learn more about merchant registration, please read the Merchant Registration Guide.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Introduction\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/spade-90e401c6/CDhz3wAAyPlHxqYQ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/spade-90e401c6/CDhz3wAAyPlHxqYQ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/spade-90e401c6/CDhz3wAAyPlHxqYQ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/spade-90e401c6/CDhz3wAAyPlHxqYQ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/spade-90e401c6/CDhz3wAAyPlHxqYQ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/spade-90e401c6/CDhz3wAAyPlHxqYQ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/spade-90e401c6/CDhz3wAAyPlHxqYQ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/spade-90e401c6/CDhz3wAAyPlHxqYQ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/spade-90e401c6/CDhz3wAAyPlHxqYQ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Incremental trigger operations at account scope - Introduction\">\u003cmeta data-mint-head property=\"og:description\" content=\"Perform incremental operations on merchant triggers at the account scope. Supports two operations: - add: Register new merchants or update existing ones. Only the submitted merchants are affected—existing registrations are preserved. If a trigger ID already exists, its registration is replaced (upsert). Registrations with more than 100 triggers are processed asynchronously as a batch job. - remove: Remove merchants by trigger ID. Removed merchants are excluded from enrichment lookups. Trigger IDs that are not currently active are silently ignored (idempotent). Limits: Up to 100,000 triggers per add request, with a total cap of 300,000 active triggers per scope. To register more than 100,000 triggers, split them into ≤100,000 batches and submit them with sequential add operations, waiting for each to reach succeeded before the next — see Registering large trigger sets. Successful add operations return 201; successful remove operations return 200. Important: Only one operation can be in progress per scope at a time. Concurrent requests return 409. To learn more about merchant registration, please read the Merchant Registration Guide.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Introduction\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.spade.com/api-reference/merchant-action-triggers/incremental-trigger-operations-at-account-scope\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://spade-90e401c6.mintlify.site/_mintlify/api/og/v2?division=Merchant+Registration\u0026amp;title=Incremental+trigger+operations+at+account+scope\u0026amp;description=Perform+incremental+operations+on+merchant+triggers+at+the+account+scope.%0A%0ASupports+two+operations%3A%0A-+**add**%3A+Register+new+merchants+or+update+existing+ones.+O\u0026amp;theme=39dc43271c14138203a30f85\u0026amp;signature=0911f791132145912b4350d7ec349a816717386b3928ec3f57eea885516f0cad\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Incremental trigger operations at account scope - Introduction\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Perform incremental operations on merchant triggers at the account scope. Supports two operations: - add: Register new merchants or update existing ones. Only the submitted merchants are affected—existing registrations are preserved. If a trigger ID already exists, its registration is replaced (upsert). Registrations with more than 100 triggers are processed asynchronously as a batch job. - remove: Remove merchants by trigger ID. Removed merchants are excluded from enrichment lookups. Trigger IDs that are not currently active are silently ignored (idempotent). Limits: Up to 100,000 triggers per add request, with a total cap of 300,000 active triggers per scope. To register more than 100,000 triggers, split them into ≤100,000 batches and submit them with sequential add operations, waiting for each to reach succeeded before the next — see Registering large trigger sets. Successful add operations return 201; successful remove operations return 200. Important: Only one operation can be in progress per scope at a time. Concurrent requests return 409. To learn more about merchant registration, please read the Merchant Registration Guide.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://spade-90e401c6.mintlify.site/_mintlify/api/og/v2?division=Merchant+Registration\u0026amp;title=Incremental+trigger+operations+at+account+scope\u0026amp;description=Perform+incremental+operations+on+merchant+triggers+at+the+account+scope.%0A%0ASupports+two+operations%3A%0A-+**add**%3A+Register+new+merchants+or+update+existing+ones.+O\u0026amp;theme=39dc43271c14138203a30f85\u0026amp;signature=0911f791132145912b4350d7ec349a816717386b3928ec3f57eea885516f0cad\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/spade-90e401c6/CDhz3wAAyPlHxqYQ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Introduction\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#18280E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.spade.com/api-reference/merchant-action-triggers/incremental-trigger-operations-at-account-scope\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/merchant-action-triggers/incremental-trigger-operations-at-account-scope.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.spade.com/#organization\",\"name\":\"Introduction\",\"url\":\"https://docs.spade.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/spade-90e401c6/9HF3Uca9kExHiocb/images/spade-logo-forest.png?fit=max\u0026auto=format\u0026n=9HF3Uca9kExHiocb\u0026q=85\u0026s=04ad3c1e3f4529c5d6c370e693e44807\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.spade.com#website\",\"name\":\"Introduction\",\"url\":\"https://docs.spade.com\",\"publisher\":{\"@id\":\"https://docs.spade.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.spade.com/api-reference/merchant-action-triggers/incremental-trigger-operations-at-account-scope#webpage\",\"url\":\"https://docs.spade.com/api-reference/merchant-action-triggers/incremental-trigger-operations-at-account-scope\",\"name\":\"Incremental trigger operations at account scope\",\"description\":\"Perform incremental operations on merchant triggers at the account scope. Supports two operations: - add: Register new merchants or update existing ones. Only the submitted merchants are affected—existing registrations are preserved. If a trigger ID already exists, its registration is replaced (upsert). Registrations with more than 100 triggers are processed asynchronously as a batch job. - remove: Remove merchants by trigger ID. Removed merchants are excluded from enrichment lookups. Trigger IDs that are not currently active are silently ignored (idempotent). Limits: Up to 100,000 triggers per add request, with a total cap of 300,000 active triggers per scope. To register more than 100,000 triggers, split them into ≤100,000 batches and submit them with sequential add operations, waiting for each to reach succeeded before the next — see Registering large trigger sets. Successful add operations return 201; successful remove operations return 200. Important: Only one operation can be in progress per scope at a time. Concurrent requests return 409. To learn more about merchant registration, please read the Merchant Registration Guide.\",\"dateModified\":\"2026-11-23T17:50:00.696Z\",\"isPartOf\":{\"@id\":\"https://docs.spade.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.spade.com/api-reference/merchant-action-triggers/incremental-trigger-operations-at-account-scope#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.spade.com/api-reference/merchant-action-triggers/incremental-trigger-operations-at-account-scope#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Data Operations\",\"item\":\"https://docs.spade.com/api-reference/merchant-action-triggers/get-account-level-trigger-status\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Merchant Registration\",\"item\":\"https://docs.spade.com/api-reference/merchant-action-triggers/get-account-level-trigger-status\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Incremental trigger operations at account scope\",\"item\":\"https://docs.spade.com/api-reference/merchant-action-triggers/incremental-trigger-operations-at-account-scope\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.spade.com/api-reference/merchant-action-triggers/incremental-trigger-operations-at-account-scope#apireference\",\"headline\":\"Incremental trigger operations at account scope\",\"name\":\"Incremental trigger operations at account scope\",\"description\":\"Perform incremental operations on merchant triggers at the account scope. Supports two operations: - add: Register new merchants or update existing ones. Only the submitted merchants are affected—existing registrations are preserved. If a trigger ID already exists, its registration is replaced (upsert). Registrations with more than 100 triggers are processed asynchronously as a batch job. - remove: Remove merchants by trigger ID. Removed merchants are excluded from enrichment lookups. Trigger IDs that are not currently active are silently ignored (idempotent). Limits: Up to 100,000 triggers per add request, with a total cap of 300,000 active triggers per scope. To register more than 100,000 triggers, split them into ≤100,000 batches and submit them with sequential add operations, waiting for each to reach succeeded before the next — see Registering large trigger sets. Successful add operations return 201; successful remove operations return 200. Important: Only one operation can be in progress per scope at a time. Concurrent requests return 409. To learn more about merchant registration, please read the Merchant Registration Guide.\",\"url\":\"https://docs.spade.com/api-reference/merchant-action-triggers/incremental-trigger-operations-at-account-scope\",\"mainEntityOfPage\":{\"@id\":\"https://docs.spade.com/api-reference/merchant-action-triggers/incremental-trigger-operations-at-account-scope#webpage\"},\"dateModified\":\"2026-11-23T17:50:00.696Z\",\"publisher\":{\"@id\":\"https://docs.spade.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.spade.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Introduction\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Introduction\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/merchant-action-triggers/incremental-trigger-operations-at-account-scope.md","siteName":"Introduction","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/reference/introduction"}]},{"tab":"API Reference","groups":[{"group":"Enrichment","pages":[{"group":"Card","pages":[{"title":"Enrich a card transaction","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml post /transactions/cards/enrich","href":"/api-reference/card-enrichment/enrich-a-card-transaction"},{"title":"Enrich a card transaction with an unparsed de43","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml post /transactions/cards/enrich/parse","href":"/api-reference/card-enrichment/enrich-a-card-transaction-with-an-unparsed-de43"},{"title":"Get metadata for the batch card enrichment endpoint","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml options /batches/transactions/cards/enrich","href":"/api-reference/card-enrichment/get-metadata-for-the-batch-card-enrichment-endpoint"},{"title":"Enrich a batch of card transactions","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml post /batches/transactions/cards/enrich","href":"/api-reference/card-enrichment/enrich-a-batch-of-card-transactions"},{"title":"Get metadata for the batch card parse enrichment endpoint","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml options /batches/transactions/cards/enrich/parse","href":"/api-reference/card-enrichment/get-metadata-for-the-batch-card-parse-enrichment-endpoint"},{"title":"Enrich a batch of card transactions with DE43 data","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml post /batches/transactions/cards/enrich/parse","href":"/api-reference/card-enrichment/enrich-a-batch-of-card-transactions-with-de43-data"},{"title":"Get the results of a batch card enrichment job","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml get /batches/{cardEnrichmentBatchId}/results","href":"/api-reference/card-enrichment/get-the-results-of-a-batch-card-enrichment-job"},{"title":"Get the status of a batch card enrichment job","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml get /batches/{cardEnrichmentBatchId}","href":"/api-reference/card-enrichment/get-the-status-of-a-batch-card-enrichment-job"}]},{"group":"Transfer","pages":[{"title":"Enrich a transfer transaction","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml post /transactions/transfers/enrich","href":"/api-reference/transfer-enrichment/enrich-a-transfer-transaction"},{"title":"Get metadata for the batch transfer enrichment endpoint","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml options /batches/transactions/transfers/enrich","href":"/api-reference/transfer-enrichment/get-metadata-for-the-batch-transfer-enrichment-endpoint"},{"title":"Enrich a batch of transfers","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml post /batches/transactions/transfers/enrich","href":"/api-reference/transfer-enrichment/enrich-a-batch-of-transfers"},{"title":"Get the results of a batch transfer enrichment job","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml get /batches/{transferEnrichmentBatchId}/results","href":"/api-reference/transfer-enrichment/get-the-results-of-a-batch-transfer-enrichment-job"},{"title":"Get the status of a batch transfer enrichment job","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml get /batches/{transferEnrichmentBatchId}","href":"/api-reference/transfer-enrichment/get-the-status-of-a-batch-transfer-enrichment-job"}]},{"group":"Universal","pages":[{"title":"Enrich a universal transaction","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml post /transactions/universal/enrich","href":"/api-reference/universal-enrichment/enrich-a-universal-transaction"},{"title":"Get metadata for the batch universal enrichment endpoint","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml options /batches/transactions/universal/enrich","href":"/api-reference/universal-enrichment/get-metadata-for-the-batch-universal-enrichment-endpoint"},{"title":"Enrich a batch of universal transactions","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml post /batches/transactions/universal/enrich","href":"/api-reference/universal-enrichment/enrich-a-batch-of-universal-transactions"},{"title":"Get the results of a batch universal enrichment job","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml get /batches/{universalEnrichmentBatchId}/results","href":"/api-reference/universal-enrichment/get-the-results-of-a-batch-universal-enrichment-job"},{"title":"Get the status of a batch universal enrichment job","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml get /batches/{universalEnrichmentBatchId}","href":"/api-reference/universal-enrichment/get-the-status-of-a-batch-universal-enrichment-job"}]},{"group":"Feedback \u0026 Errors","pages":[{"title":"Report a card enrichment as incorrect","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml post /transactions/report","href":"/api-reference/feedback-and-reporting/report-a-card-enrichment-as-incorrect"},{"title":"Report that a chargeback occurred","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml post /enrichments/{enrichmentId}/chargeback","href":"/api-reference/feedback-and-reporting/report-that-a-chargeback-occurred"},{"title":"Report that a card decline occurred","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml post /enrichments/{enrichmentId}/decline","href":"/api-reference/feedback-and-reporting/report-that-a-card-decline-occurred"},{"title":"Report that a refund occurred","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml post /enrichments/{enrichmentId}/refund","href":"/api-reference/feedback-and-reporting/report-that-a-refund-occurred"},{"title":"Report fraud on a transaction","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml post /enrichments/{enrichmentId}/fraud","href":"/api-reference/feedback-and-reporting/report-fraud-on-a-transaction"}]}]},{"group":"Data Operations","pages":[{"group":"Merchant Registration","pages":[{"title":"Get account-level trigger status","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml get /merchant-action-triggers","href":"/api-reference/merchant-action-triggers/get-account-level-trigger-status"},{"title":"Register merchant triggers at account scope","description":"Register merchant triggers at the account scope.\n\nAccount-level triggers apply to all transactions for all users in your account.\n\n**Field requirements:**\n- `id`, `merchantName`, and `action` are always required for each trigger\n- `level` defaults to `location` if omitted\n- For `level: \"location\"` (default): requires both `address` and `postalCode`, or both `latitude` and `longitude`\n- For `level: \"corporation\"`: requires `website` on its own, or both `address` and `postalCode`, or both `latitude` and `longitude`\n- Triggers that don't meet these requirements are rejected with a `400` error\n\n**Batch processing:** Registrations with more than 100 triggers are processed asynchronously as a batch job. Poll the GET endpoint to monitor completion.\n\n**Limits:** Up to 100,000 triggers per request, with a total cap of 300,000 active triggers per scope. To register more than 100,000 triggers, split them into ≤100,000 batches sent sequentially via PATCH `add` — see [Registering large trigger sets](/reference/merchant-registration-guide#registering-large-trigger-sets).\n\n**Important:** Triggers are only applied to enrichment responses when the status is `succeeded`.\n\nTo learn more about merchant registration, please read the [Merchant Registration Guide](https://docs.spade.com/reference/merchant-registration-guide).","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml put /merchant-action-triggers","href":"/api-reference/merchant-action-triggers/register-merchant-triggers-at-account-scope"},{"title":"Incremental trigger operations at account scope","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml patch /merchant-action-triggers","href":"/api-reference/merchant-action-triggers/incremental-trigger-operations-at-account-scope"},{"title":"Clear account-level triggers","description":"Clear all merchant triggers at the account scope.\n\nThis creates a new version with an empty trigger list.\n\nTo learn more about merchant registration, please read the [Merchant Registration Guide](https://docs.spade.com/reference/merchant-registration-guide).","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml delete /merchant-action-triggers","href":"/api-reference/merchant-action-triggers/clear-account-level-triggers"},{"title":"Get program-level trigger status","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml get /programs/{programId}/merchant-action-triggers","href":"/api-reference/merchant-action-triggers/get-program-level-trigger-status"},{"title":"Register merchant triggers at program scope","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml put /programs/{programId}/merchant-action-triggers","href":"/api-reference/merchant-action-triggers/register-merchant-triggers-at-program-scope"},{"title":"Incremental trigger operations at program scope","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml patch /programs/{programId}/merchant-action-triggers","href":"/api-reference/merchant-action-triggers/incremental-trigger-operations-at-program-scope"},{"title":"Clear program-level triggers","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml delete /programs/{programId}/merchant-action-triggers","href":"/api-reference/merchant-action-triggers/clear-program-level-triggers"},{"title":"Get user-level trigger status","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml get /users/{userId}/merchant-action-triggers","href":"/api-reference/merchant-action-triggers/get-user-level-trigger-status"},{"title":"Register merchant triggers at user scope","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml put /users/{userId}/merchant-action-triggers","href":"/api-reference/merchant-action-triggers/register-merchant-triggers-at-user-scope"},{"title":"Incremental trigger operations at user scope","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml patch /users/{userId}/merchant-action-triggers","href":"/api-reference/merchant-action-triggers/incremental-trigger-operations-at-user-scope"},{"title":"Clear user-level triggers","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml delete /users/{userId}/merchant-action-triggers","href":"/api-reference/merchant-action-triggers/clear-user-level-triggers"},{"title":"Get card-level trigger status","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml get /users/{userId}/cards/{cardId}/merchant-action-triggers","href":"/api-reference/merchant-action-triggers/get-card-level-trigger-status"},{"title":"Register merchant triggers at card scope","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml put /users/{userId}/cards/{cardId}/merchant-action-triggers","href":"/api-reference/merchant-action-triggers/register-merchant-triggers-at-card-scope"},{"title":"Incremental trigger operations at card scope","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml patch /users/{userId}/cards/{cardId}/merchant-action-triggers","href":"/api-reference/merchant-action-triggers/incremental-trigger-operations-at-card-scope"},{"title":"Clear card-level triggers","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml delete /users/{userId}/cards/{cardId}/merchant-action-triggers","href":"/api-reference/merchant-action-triggers/clear-card-level-triggers"}]},{"group":"Category Registration","pages":[{"title":"Get account-level category trigger status","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml get /category-action-triggers","href":"/api-reference/category-action-triggers/get-account-level-category-trigger-status"},{"title":"Register category triggers at account scope","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml put /category-action-triggers","href":"/api-reference/category-action-triggers/register-category-triggers-at-account-scope"},{"title":"Incremental category trigger operations at account scope","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml patch /category-action-triggers","href":"/api-reference/category-action-triggers/incremental-category-trigger-operations-at-account-scope"},{"title":"Clear account-level category triggers","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml delete /category-action-triggers","href":"/api-reference/category-action-triggers/clear-account-level-category-triggers"},{"title":"Get program-level category trigger status","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml get /programs/{programId}/category-action-triggers","href":"/api-reference/category-action-triggers/get-program-level-category-trigger-status"},{"title":"Register category triggers at program scope","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml put /programs/{programId}/category-action-triggers","href":"/api-reference/category-action-triggers/register-category-triggers-at-program-scope"},{"title":"Incremental category trigger operations at program scope","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml patch /programs/{programId}/category-action-triggers","href":"/api-reference/category-action-triggers/incremental-category-trigger-operations-at-program-scope"},{"title":"Clear program-level category triggers","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml delete /programs/{programId}/category-action-triggers","href":"/api-reference/category-action-triggers/clear-program-level-category-triggers"},{"title":"Get user-level category trigger status","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml get /users/{userId}/category-action-triggers","href":"/api-reference/category-action-triggers/get-user-level-category-trigger-status"},{"title":"Register category triggers at user scope","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml put /users/{userId}/category-action-triggers","href":"/api-reference/category-action-triggers/register-category-triggers-at-user-scope"},{"title":"Incremental category trigger operations at user scope","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml patch /users/{userId}/category-action-triggers","href":"/api-reference/category-action-triggers/incremental-category-trigger-operations-at-user-scope"},{"title":"Clear user-level category triggers","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml delete /users/{userId}/category-action-triggers","href":"/api-reference/category-action-triggers/clear-user-level-category-triggers"},{"title":"Get card-level category trigger status","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml get /users/{userId}/cards/{cardId}/category-action-triggers","href":"/api-reference/category-action-triggers/get-card-level-category-trigger-status"},{"title":"Register category triggers at card scope","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml put /users/{userId}/cards/{cardId}/category-action-triggers","href":"/api-reference/category-action-triggers/register-category-triggers-at-card-scope"},{"title":"Incremental category trigger operations at card scope","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml patch /users/{userId}/cards/{cardId}/category-action-triggers","href":"/api-reference/category-action-triggers/incremental-category-trigger-operations-at-card-scope"},{"title":"Clear card-level category triggers","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml delete /users/{userId}/cards/{cardId}/category-action-triggers","href":"/api-reference/category-action-triggers/clear-card-level-category-triggers"}]},{"group":"Custom Categories","pages":[{"title":"Get all default and custom integration-level categories","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml get /categories","href":"/api-reference/category-personalization/get-all-default-and-custom-integration-level-categories"},{"title":"Create a custom integration-level category","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml post /categories","href":"/api-reference/category-personalization/create-a-custom-integration-level-category"},{"title":"Delete all custom integration-level categories","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml delete /categories","href":"/api-reference/category-personalization/delete-all-custom-integration-level-categories"},{"title":"Delete a custom integration-level category","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml delete /categories/{id}","href":"/api-reference/category-personalization/delete-a-custom-integration-level-category"},{"title":"Get all integration-level counterparty category personalizations","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml get /counterparty-category-personalizations","href":"/api-reference/category-personalization/get-all-integration-level-counterparty-category-personalizations"},{"title":"Create an integration-level counterparty category personalization","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml put /counterparty-category-personalizations","href":"/api-reference/category-personalization/create-an-integration-level-counterparty-category-personalization"},{"title":"Delete all integration-level counterparty category personalizations","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml delete /counterparty-category-personalizations","href":"/api-reference/category-personalization/delete-all-integration-level-counterparty-category-personalizations"},{"title":"Delete a counterparty category personalization","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml delete /counterparty-category-personalizations/{counterpartyId}","href":"/api-reference/category-personalization/delete-a-counterparty-category-personalization"},{"title":"Get categories","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml get /users/{userId}/categories","href":"/api-reference/category-personalization/get-categories"},{"title":"Create a custom user-level category","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml post /users/{userId}/categories","href":"/api-reference/category-personalization/create-a-custom-user-level-category"},{"title":"Delete all custom user-level categories","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml delete /users/{userId}/categories","href":"/api-reference/category-personalization/delete-all-custom-user-level-categories"},{"title":"Delete a custom user-level category","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml delete /users/{userId}/categories/{id}","href":"/api-reference/category-personalization/delete-a-custom-user-level-category"},{"title":"Get all user-level counterparty category personalizations","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml get /users/{userId}/counterparty-category-personalizations","href":"/api-reference/category-personalization/get-all-user-level-counterparty-category-personalizations"},{"title":"Create a user-level counterparty category personalization","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml put /users/{userId}/counterparty-category-personalizations","href":"/api-reference/category-personalization/create-a-user-level-counterparty-category-personalization"},{"title":"Delete all user-level counterparty category personalizations","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml delete /users/{userId}/counterparty-category-personalizations","href":"/api-reference/category-personalization/delete-all-user-level-counterparty-category-personalizations"},{"title":"Delete a user-level counterparty category personalization","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml delete /users/{userId}/counterparty-category-personalizations/{counterpartyId}","href":"/api-reference/category-personalization/delete-a-user-level-counterparty-category-personalization"}]},{"group":"Merchant Search","pages":[{"title":"Search for merchants","deprecated":null,"version":null,"openapi":"/api-reference/spec.yml get /corporations","href":"/api-reference/merchant-search/search-for-merchants"}]}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/changelog"}]}]},"basePath":"","title":"Incremental trigger operations at account scope - Introduction","deploymentId":"dpl_72MSwyBnA59N55RmMByBKiJ6RWpG","buildId":"dpl_72MSwyBnA59N55RmMByBKiJ6RWpG","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CbGMcFGR.js","snippetPresets-Bmv5mKa2.js","utils-CIXWNXpX.js","style-to-object-BY3JEAdk.js","utils-Ao5f3MLv.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CnDl3Tzk.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DCKK_-ms.js","_Uint8Array-AD2KodMR.js","isObject-FP1Yky1u.js","ApiExamples-WuhTLGpi.js","usePlaygroundInputsStore-TEEPsnq4.js","shallow-CPMaphSa.js","isEqual-DPVEsfEY.js","CodeSnippets-4KiTz0PS.js","CodeSnippet-Cy8aP2_X.js","use-playground-group-access-DM2iaKsK.js","Page-Ch7YiUoh.js","api-description-markdown-CN0nQq69.js","DynamicMarkdown-fZBmrd-V.js","SectionHeading-CwLwzaE9.js","MethodPill-De3Dnqxv.js","getPastedJson-obk3J_hD.js","Check2Icon-BbG90KLF.js","axios-CsQoIw0U.js","Markdown-CaQvVc8r.js","AssistantPageLink-C8wUIKD2.js","dist-CpT8yZOW.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}