Fulfillment Bulk Actions
Performs batch operations on multiple fulfillments with enforced state transitions.
Last updated: October 26, 2026
Fulfillment Bulk Actions
POST /siren/v1/fulfillments/bulk
Performs an action on multiple fulfillments at once. This endpoint enforces valid state transitions. Invalid transitions are silently skipped.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
action | string | Yes | One of: process, complete, fail, delete |
ids | integer[] | Yes | Array of fulfillment IDs to act upon |
Action Behaviors and Valid Transitions
| Action | Status Set | Valid From | Auth Required |
|---|---|---|---|
process | processing | pending only | Update |
complete | complete | processing only | Update |
fail | failed | pending or processing | Update |
delete | (record removed, payouts removed, obligations back to approved) | failed with no paid or processing payout | Delete |
Records that do not meet the “Valid From” precondition are silently skipped, except for delete, which is all or nothing: if any fulfillment in the request can’t be deleted, nothing is deleted and the request returns 409. The affected count in the response reflects only the records that were actually changed.
Example
{
"action": "process",
"ids": [5, 6, 7]
}
{
"success": true,
"affected": 3
}