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.

Request body fields 3
FieldTypeRequiredDescription
operationsobject[]YesField in the request payload.
operations[].opstringYesField in the request payload.
operations[].paramsanyYesField in the request payload.
Request exampleapplication/json
curl -X POST https://api.rieckflow.com/v1/batch \
-H "Authorization: Bearer $RIECK_API_KEY" \
-H "Idempotency-Key: order-2041" \
-H "Content-Type: application/json" \
-d '{
"operations": [
{
"op": "customer.create",
"params": "…"
}
]
}'
200 Success envelopeapplication/json
Possible errors 8
HTTPCodeMeaning
400invalid_idempotency_keyIdempotency-Key is missing or malformed.
400invalid_requestThe request body or parameter failed validation.
401invalid_api_keyThe API key is missing, invalid, expired or revoked.
403api_not_includedThe organisation’s plan does not include API access.
409idempotency_conflictThe same key was used with a different request.
409idempotency_in_progressThe same operation is currently being processed. Retry later.
413payload_too_largeThe JSON or uploaded file exceeds this endpoint’s size limit.
429rate_limitedThe organisation’s rate budget is exhausted.
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
}