{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/payrix/main/json-schema/payrix-batches-put-request-schema.json", "title": "batchesPutRequest", "x-generated": "2026-09-21", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/payrix-batches-settlements-api-openapi.yml#/components/schemas/batchesPutRequest", "type": "object", "properties": { "status": { "allOf": [ { "$ref": "#/$defs/batchStatus" }, { "description": "The current status of this Batch.\n\n
\nValid Values\n\n- `open` - **This Batch can accept more Transactions.**\n- `closed` - **This Batch is closed to new Transactions and is ready to be sent to the processor.**\n\n
" } ] }, "ref": { "type": "string", "description": "The reference code of the batch. \nThis field is automatically generated and stored as a text string and must be between 0 and 50 characters long." }, "clientRef": { "type": "string", "description": "The merchant's reference code of the batch. \nThis field is stored as a text string and must be between 0 and 50 characters long." }, "processingId": { "type": "string", "description": "Internal ID set for processing." }, "inactive": { "allOf": [ { "$ref": "#/$defs/inactive" }, { "description": "Whether this resource is marked as inactive.\n\n
\nValid Values\n\n- `0` - **Active**\n- `1` - **Inactive**\n\n
" } ] }, "frozen": { "allOf": [ { "$ref": "#/$defs/frozen" }, { "description": "Whether this resource is marked as frozen.\n\n
\nValid Values\n\n- `0` - **Not Frozen**\n- `1` - **Frozen**\n\n
" } ] } }, "$defs": { "batchStatus": { "title": "batchStatus", "enum": [ "open", "closed" ], "type": "string" }, "frozen": { "title": "frozen", "enum": [ 0, 1 ], "type": "integer" }, "inactive": { "title": "inactive", "enum": [ 0, 1 ], "type": "integer" } } }