Generate Fulfillments
Generates fulfillment batches from approved obligations, creating payout records for each collaborator.
Last updated: October 26, 2026
Generate Fulfillments
POST /siren/v1/fulfillments/generate
Generates fulfillment batches from approved obligations. This is the primary action endpoint that bridges the obligation and payout stages of the pipeline. When called, it collects approved obligations, makes one fulfillment per currency, groups each fulfillment’s obligations by collaborator, creates payout records, and marks the obligations complete.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
obligationIds | integer[] | No | Specific obligation IDs to process. Only approved ones are paid. If omitted, processes every approved obligation that isn’t already in a payout, for collaborators who aren’t in the Trash. Named obligations of collaborators in the Trash are skipped too. |
Examples
Send an empty body to process every approved obligation:
{}
To process specific obligations, pass their IDs:
{
"obligationIds": [10, 11, 12]
}
Response:
{
"success": true,
"fulfillments": [
{
"id": 6,
"status": "pending",
"dateCreated": "2026-04-06T12:00:00Z",
"dateModified": "2026-04-06T12:00:00Z"
}
]
}
Returns 422 with the type no_payable_obligations when none of the selected obligations can be paid because their collaborators are in the Trash or deleted, listing each obligation with the reason collaborator_trashed. Nothing is created. Returns 500 on a database error during generation.