Bulk Actions
Perform an action on multiple transactions at once, including cancel, refund, and delete.
Last updated: April 9, 2026
Bulk Actions
POST /siren/v1/transactions/bulk
Performs an action on multiple transactions at once.
Request Body:
| Field | Type | Required | Description |
|---|---|---|---|
action | string | Yes | One of: cancel, refund, delete |
ids | integer[] | Yes | Array of transaction IDs to act upon |
Action Behaviors:
| Action | Effect |
|---|---|
cancel | Sets status to cancelled |
refund | Sets status to refunded |
delete | Permanently removes records from the database |
Non-existent IDs are silently skipped. Datastore errors on individual records are logged but do not halt processing of remaining IDs.
Example Request:
{
"action": "cancel",
"ids": [101, 102, 103]
}
Example Response:
{
"success": true,
"affected": 3
}