Payout Bulk Actions
Performs batch operations on multiple payouts to mark them as paid or unpaid.
Last updated: October 28, 2026
Payout Bulk Actions
POST /siren/v1/payouts/bulk
Performs an action on multiple payouts at once.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
action | string | Yes | One of: markPaid, markUnpaid |
ids | integer[] | Yes | Array of payout IDs to act upon |
Action Behaviors
| Action | Effect | Events |
|---|---|---|
markPaid | Sets status to paid, sets datePaid to current timestamp | Broadcasts PayoutPaid per record |
markUnpaid | Sets status to unpaid, clears datePaid to null | — |
Payouts already in the target status are skipped. Non-existent IDs are silently skipped.
Example
{
"action": "markPaid",
"ids": [20, 21]
}
{
"success": true,
"affected": 2
}
State Transition Rules
markPaid moves a payout in any other status to paid, sets datePaid, and clears failureReason, dateFailed, waitingReason, and dateWaiting. markUnpaid moves a payout in any other status, including processing and failed, back to unpaid and clears datePaid, failureReason, and dateFailed. Automatic payout methods write the other two statuses: processing while sending, and failed with a reason when sending fails. Both the bulk action endpoint and the export endpoint (when markAsPaid is true) use the same underlying mechanism to transition payout status and broadcast events.