Batch
POST /v1/batch
Section titled “POST /v1/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.
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": "…" } ] }'const svar = await rieck.request("POST", "/v1/batch", { body: { "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}