Skip to content

Batch

Batch operations (max 100)

Built for migration. Each operation runs in its own transaction — partial success per operation; scopes are checked PER operation. Payments book on IdempotencyKey:index.

Terminal window
curl -X POST https://app.rieck.nu/api/v1/batch \
-H "Authorization: Bearer $RIECK_API_KEY" \
-H "Idempotency-Key: order-2041" \
-d '{
"operations": [
{
"op": "customer.create",
"params": "…"
}
]
}'
Request body — fuldt JSON Schema
{
"type": "object",
"properties": {
"operations": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"op": {
"type": "string",
"enum": [
"customer.create",
"invoice.create",
"payment.register"
]
},
"params": {}
},
"required": [
"op",
"params"
],
"additionalProperties": false
}
}
},
"required": [
"operations"
],
"additionalProperties": false
}