> ## Documentation Index > Fetch the complete documentation index at: https://docs.restaurant365.com/llms.txt > Use this file to discover all available pages before exploring further. # /public/v1/accounting/journal-entries > Creates journal entries in bulk. Journal entry numbers are not required to be unique — duplicate numbers are allowed and creates separate records. ## OpenAPI ````json POST /public/v1/accounting/journal-entries { "openapi": "3.0.1", "info": { "title": "R365.PublicApi", "contact": { "name": "R365 Services Team", "email": "r365@restaurant365.com" }, "version": "1.0" }, "security": [ { "Bearer": [] } ], "paths": { "/public/v1/accounting/journal-entries": { "post": { "tags": [ "netcore" ], "description": "Creates journal entries in bulk. Journal entry numbers are not required to be unique — duplicate numbers are allowed and creates separate records.", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/R365.Accounting.JournalEntries.Api.Contracts.Public.Apis.Requests.CreateJournalEntriesRequest" } } } }, "responses": { "207": { "description": "Multi-Status – batch operation result containing per-item success or failure.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/R365.Accounting.JournalEntries.Api.Contracts.Public.Apis.Responses.CreateJournalEntriesResponse" } } } }, "400": { "description": "Bad request – one or more validation errors occurred." }, "401": { "description": "Unauthorized – authentication credentials are missing or invalid." }, "403": { "description": "Forbidden – the caller does not have permission to perform this operation." }, "422": { "description": "Unprocessable Entity – the request is well-formed but contains semantic errors (e.g. debits do not equal credits)." }, "500": { "description": "Internal Server Error – an unexpected error occurred while processing the request." } } } } }, "components": { "schemas": { "R365.Accounting.JournalEntries.Api.Contracts.Public.Apis.Requests.CreateJournalEntriesRequest": { "required": [ "journalEntries" ], "type": "object", "properties": { "journalEntries": { "type": "array", "items": { "$ref": "#/components/schemas/R365.Accounting.JournalEntries.Api.Contracts.Public.Models.CreateJournalEntry" }, "description": "Collection of journal entries to create. Required." } }, "additionalProperties": false, "description": "Creates journal entries in batch." }, "R365.Accounting.JournalEntries.Api.Contracts.Public.Apis.Responses.CreateJournalEntriesResponse": { "type": "object", "properties": { "results": { "type": "array", "items": { "$ref": "#/components/schemas/R365.Accounting.JournalEntries.Api.Contracts.Public.Models.CreateJournalEntryResult" }, "description": "Collection of results, one per journal entry in the original request, ordered by request index." } }, "additionalProperties": false }, "R365.Accounting.JournalEntries.Api.Contracts.Public.Models.CreateJournalEntry": { "required": [ "number", "date", "location", "details" ], "type": "object", "properties": { "number": { "type": "string", "description": "Unique journal entry number. Required." }, "date": { "type": "string", "description": "Document date for the journal entry in ISO 8601 format. Required.", "format": "date" }, "location": { "type": "string", "description": "Unique identifier (GUID) of the location. Required.", "format": "uuid" }, "comment": { "type": "string", "description": "Optional comment or memo for the journal entry header.", "nullable": true }, "type": { "enum": [ "Standard" ], "type": "string", "description": "Entry type classification. Must be \"Standard\". Defaults to \"Standard\" if not specified.", "nullable": true }, "details": { "type": "array", "items": { "$ref": "#/components/schemas/R365.Accounting.JournalEntries.Api.Contracts.Public.Models.CreateJournalEntryDetail" }, "description": "Collection of detail lines. Required; total debits must equal total credits." } }, "additionalProperties": false }, "R365.Accounting.JournalEntries.Api.Contracts.Public.Models.CreateJournalEntryResult": { "type": "object", "properties": { "requestIndex": { "type": "integer", "description": "Zero-based position of this journal entry in the original request.", "format": "int32" }, "number": { "type": "string", "description": "Journal entry number from the original request." }, "status": { "enum": [ "Unknown", "Succeeded", "Failed" ], "type": "string", "description": "Outcome of the create operation." }, "errorCode": { "type": "string", "description": "Machine-readable error code. Present only when status is Failed.", "nullable": true }, "errorMessage": { "type": "string", "description": "Human-readable error description. Present only when status is Failed.", "nullable": true }, "id": { "type": "string", "description": "Unique identifier (GUID) of the created journal entry. Present only when status is Succeeded.", "format": "uuid", "nullable": true } }, "additionalProperties": false }, "R365.Accounting.JournalEntries.Api.Contracts.Public.Models.CreateJournalEntryDetail": { "required": [ "glAccount", "debitAmount", "creditAmount" ], "type": "object", "properties": { "glAccount": { "type": "string", "description": "Unique identifier (GUID) of the general ledger account. Required.", "format": "uuid" }, "debitAmount": { "type": "number", "description": "Debit amount for this detail line. Mutually exclusive with creditAmount; one must be greater than zero.", "format": "decimal" }, "creditAmount": { "type": "number", "description": "Credit amount for this detail line. Mutually exclusive with debitAmount; one must be greater than zero.", "format": "decimal" }, "location": { "type": "string", "description": "Optional location override for this detail line. Defaults to the header location if not specified.", "format": "uuid", "nullable": true }, "comment": { "type": "string", "description": "Optional comment for this detail line.", "nullable": true } }, "additionalProperties": false } }, "securitySchemes": { "Bearer": { "type": "http", "description": "Put **_ONLY_** your JWT Bearer token on textbox below!", "scheme": "Bearer", "bearerFormat": "JWT" } } } } ````