.. AUTO-GENERATED FILE. DO NOT EDIT. /accounting-internal-scanned-documents-raw-ocr-values-post-one ============================================================== Summary ------- - **Source repository:** ``jef-systems/jef-accounting-backend`` - **Source SHA:** ``a4fcf0e2deccf8422f4a15a76dac8d4ec4ddbff8`` - **Source run id:** ``30027826522`` - **Lambda function:** ``jef-accounting-post-006`` - **HTTP method:** ``POST`` - **API path:** ``/accounting-internal-scanned-documents-raw-ocr-values-post-one`` - **Cloudflare path:** ``/accounting/async-post/accounting-internal-scanned-documents-raw-ocr-values-post-one`` - **Endpoint URL:** ``https://api.jefoffice.com/accounting/async-post/accounting-internal-scanned-documents-raw-ocr-values-post-one`` - **Cloudflare base URL:** ``https://api.jefoffice.com/accounting/async-post`` - **Cloudflare parent path:** ``/accounting`` - **Cloudflare scope:** ``async-post`` - **Cloudflare scope path:** ``/accounting/async-post`` - **Cloudflare mode:** ``one-worker-for-lambda-async-post`` - **Cloudflare Worker:** ``jef-accounting-lambda-async-post`` - **Cloudflare Worker route:** ``api.jefoffice.com/accounting/async-post/\*`` - **Payload mode:** ``json-body`` Description ----------- .. list-table:: :widths: 30 70 * - ``Function`` - jef-accounting-post-006 Logical ID: jef-accounting:jef-accounting-internal-scanned-documents-raw-ocr-values:post-one Order Number: 006 * - ``Module`` - jef-accounting * - ``Action`` - post-one * - ``Method`` - POST * - ``Invocation Mode`` - ASYNC * - ``Resource Path`` - /accounting-internal-scanned-documents-raw-ocr-values-post-one Endpoint Name: jef-accounting-internal-scanned-documents-raw-ocr-values-post-one * - ``Table`` - jef-accounting-internal-scanned-documents-raw-ocr-values * - ``Primary Key`` - internal\_raw\_ocr\_value\_id API Gateway Response -------------------- .. list-table:: :widths: 30 70 * - ``status\_code`` - 202 * - ``message`` - Request accepted for asynchronous processing. Payload Example --------------- .. list-table:: :widths: 30 70 * - ``internal\_raw\_ocr\_value\_id`` - aaa3eac1-79d6-4baf-956f-6e22ec3287f0 * - ``document\_id`` - 8927ab73-222d-4413-addb-0d818208d342 * - ``entity\_id`` - 5c454f9c-71d6-42d8-93d6-a13dbaa3cb92 * - ``document\_origin`` - value-001 * - ``form\_id`` - 5a9789d8-9fb2-4340-bb2b-4414d9d0a8d7 * - ``form\_code`` - value-001 * - ``spec\_version`` - value-001 * - ``spec\_sha256`` - value-001 * - ``source\_s3\_bucket`` - value-001 * - ``source\_s3\_key`` - value-001 * - ``source\_s3\_version\_id`` - f6fc7c0f-3763-484f-a9ee-3bafdc41e4bf * - ``processing\_status`` - value-001 * - ``ocr\_engine\_version`` - value-001 * - ``raw\_extracted\_ocr\_value`` - value-001 * - ``created`` - 2026-07-23T17:03:38Z * - ``updated`` - 2026-07-23T17:03:38Z Payload Schema -------------- .. code-block:: json { "type": "object", "additionalProperties": "False", "payload_mode": "flat", "allow_children_wrapper": "False", "children_wrapper_field": "", "allow_batch": "False", "table": "jef-accounting-internal-scanned-documents-raw-ocr-values", "primary_key": "internal_raw_ocr_value_id", "required[0]": "document_id", "required[1]": "entity_id", "required[2]": "document_origin", "required[3]": "form_id", "required[4]": "form_code", "required[5]": "spec_version", "required[6]": "spec_sha256", "required[7]": "source_s3_bucket", "required[8]": "source_s3_key", "required[9]": "processing_status", "required[10]": "ocr_engine_version", "required[11]": "raw_extracted_ocr_value", "properties.internal_raw_ocr_value_id.field": "internal_raw_ocr_value_id", "properties.internal_raw_ocr_value_id.type": "S", "properties.internal_raw_ocr_value_id.required": "False", "properties.internal_raw_ocr_value_id.source_required": "True", "properties.internal_raw_ocr_value_id.server_generated": "True", "properties.internal_raw_ocr_value_id.autogenerated": "False", "properties.internal_raw_ocr_value_id.frontend_autocomputed": "False", "properties.internal_raw_ocr_value_id.format": "uuidv4", "properties.internal_raw_ocr_value_id.regex": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", "properties.document_id.field": "document_id", "properties.document_id.type": "S", "properties.document_id.required": "True", "properties.document_id.source_required": "True", "properties.document_id.server_generated": "True", "properties.document_id.autogenerated": "False", "properties.document_id.frontend_autocomputed": "False", "properties.document_id.format": "uuidv4", "properties.document_id.regex": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", "properties.entity_id.field": "entity_id", "properties.entity_id.type": "S", "properties.entity_id.required": "True", "properties.entity_id.source_required": "True", "properties.entity_id.server_generated": "True", "properties.entity_id.autogenerated": "False", "properties.entity_id.frontend_autocomputed": "False", "properties.entity_id.format": "uuidv4", "properties.entity_id.regex": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", "properties.document_origin.field": "document_origin", "properties.document_origin.type": "S", "properties.document_origin.required": "True", "properties.document_origin.source_required": "True", "properties.document_origin.server_generated": "True", "properties.document_origin.autogenerated": "False", "properties.document_origin.frontend_autocomputed": "False", "properties.document_origin.regex": "^internal$", "properties.form_id.field": "form_id", "properties.form_id.type": "S", "properties.form_id.required": "True", "properties.form_id.source_required": "True", "properties.form_id.server_generated": "True", "properties.form_id.autogenerated": "False", "properties.form_id.frontend_autocomputed": "False", "properties.form_id.format": "uuidv4", "properties.form_id.regex": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", "properties.form_code.field": "form_code", "properties.form_code.type": "S", "properties.form_code.required": "True", "properties.form_code.source_required": "True", "properties.form_code.server_generated": "True", "properties.form_code.autogenerated": "False", "properties.form_code.frontend_autocomputed": "False", "properties.form_code.regex": "^[a-z][a-z0-9_]{2,127}$", "properties.spec_version.field": "spec_version", "properties.spec_version.type": "S", "properties.spec_version.required": "True", "properties.spec_version.source_required": "True", "properties.spec_version.server_generated": "True", "properties.spec_version.autogenerated": "False", "properties.spec_version.frontend_autocomputed": "False", "properties.spec_version.regex": "^[0-9]{9}$", "properties.spec_sha256.field": "spec_sha256", "properties.spec_sha256.type": "S", "properties.spec_sha256.required": "True", "properties.spec_sha256.source_required": "True", "properties.spec_sha256.server_generated": "True", "properties.spec_sha256.autogenerated": "False", "properties.spec_sha256.frontend_autocomputed": "False", "properties.spec_sha256.regex": "^[0-9a-f]{64}$", "properties.source_s3_bucket.field": "source_s3_bucket", "properties.source_s3_bucket.type": "S", "properties.source_s3_bucket.required": "True", "properties.source_s3_bucket.source_required": "True", "properties.source_s3_bucket.server_generated": "True", "properties.source_s3_bucket.autogenerated": "False", "properties.source_s3_bucket.frontend_autocomputed": "False", "properties.source_s3_bucket.regex": "^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$", "properties.source_s3_key.field": "source_s3_key", "properties.source_s3_key.type": "S", "properties.source_s3_key.required": "True", "properties.source_s3_key.source_required": "True", "properties.source_s3_key.server_generated": "True", "properties.source_s3_key.autogenerated": "False", "properties.source_s3_key.frontend_autocomputed": "False", "properties.source_s3_key.regex": "^[\\s\\S]{1,1024}$", "properties.source_s3_version_id.field": "source_s3_version_id", "properties.source_s3_version_id.type": "S", "properties.source_s3_version_id.required": "False", "properties.source_s3_version_id.source_required": "False", "properties.source_s3_version_id.server_generated": "True", "properties.source_s3_version_id.autogenerated": "False", "properties.source_s3_version_id.frontend_autocomputed": "False", "properties.source_s3_version_id.regex": "^[\\s\\S]{1,1024}$", "properties.processing_status.field": "processing_status", "properties.processing_status.type": "S", "properties.processing_status.required": "True", "properties.processing_status.source_required": "True", "properties.processing_status.server_generated": "True", "properties.processing_status.autogenerated": "False", "properties.processing_status.frontend_autocomputed": "False", "properties.processing_status.regex": "^(received|processing|succeeded|failed|cancelled)$", "properties.ocr_engine_version.field": "ocr_engine_version", "properties.ocr_engine_version.type": "S", "properties.ocr_engine_version.required": "True", "properties.ocr_engine_version.source_required": "True", "properties.ocr_engine_version.server_generated": "True", "properties.ocr_engine_version.autogenerated": "False", "properties.ocr_engine_version.frontend_autocomputed": "False", "properties.ocr_engine_version.regex": "^[A-Za-z0-9][A-Za-z0-9._+-]{0,127}$", "properties.raw_extracted_ocr_value.field": "raw_extracted_ocr_value", "properties.raw_extracted_ocr_value.type": "S", "properties.raw_extracted_ocr_value.required": "True", "properties.raw_extracted_ocr_value.source_required": "True", "properties.raw_extracted_ocr_value.server_generated": "True", "properties.raw_extracted_ocr_value.autogenerated": "False", "properties.raw_extracted_ocr_value.frontend_autocomputed": "False", "properties.raw_extracted_ocr_value.regex": "^[\\s\\S]{1,300000}$", "properties.created.field": "created", "properties.created.type": "S", "properties.created.required": "False", "properties.created.source_required": "True", "properties.created.server_generated": "True", "properties.created.autogenerated": "False", "properties.created.frontend_autocomputed": "False", "properties.created.format": "iso8601", "properties.created.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$", "properties.updated.field": "updated", "properties.updated.type": "S", "properties.updated.required": "False", "properties.updated.source_required": "True", "properties.updated.server_generated": "True", "properties.updated.autogenerated": "False", "properties.updated.frontend_autocomputed": "False", "properties.updated.format": "iso8601", "properties.updated.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$", "children": "[]", "root.type": "object", "root.attributes.internal_raw_ocr_value_id.field": "internal_raw_ocr_value_id", "root.attributes.internal_raw_ocr_value_id.type": "S", "root.attributes.internal_raw_ocr_value_id.required": "False", "root.attributes.internal_raw_ocr_value_id.source_required": "True", "root.attributes.internal_raw_ocr_value_id.server_generated": "True", "root.attributes.internal_raw_ocr_value_id.autogenerated": "False", "root.attributes.internal_raw_ocr_value_id.frontend_autocomputed": "False", "root.attributes.internal_raw_ocr_value_id.format": "uuidv4", "root.attributes.internal_raw_ocr_value_id.regex": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", "root.attributes.document_id.field": "document_id", "root.attributes.document_id.type": "S", "root.attributes.document_id.required": "True", "root.attributes.document_id.source_required": "True", "root.attributes.document_id.server_generated": "True", "root.attributes.document_id.autogenerated": "False", "root.attributes.document_id.frontend_autocomputed": "False", "root.attributes.document_id.format": "uuidv4", "root.attributes.document_id.regex": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", "root.attributes.entity_id.field": "entity_id", "root.attributes.entity_id.type": "S", "root.attributes.entity_id.required": "True", "root.attributes.entity_id.source_required": "True", "root.attributes.entity_id.server_generated": "True", "root.attributes.entity_id.autogenerated": "False", "root.attributes.entity_id.frontend_autocomputed": "False", "root.attributes.entity_id.format": "uuidv4", "root.attributes.entity_id.regex": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", "root.attributes.document_origin.field": "document_origin", "root.attributes.document_origin.type": "S", "root.attributes.document_origin.required": "True", "root.attributes.document_origin.source_required": "True", "root.attributes.document_origin.server_generated": "True", "root.attributes.document_origin.autogenerated": "False", "root.attributes.document_origin.frontend_autocomputed": "False", "root.attributes.document_origin.regex": "^internal$", "root.attributes.form_id.field": "form_id", "root.attributes.form_id.type": "S", "root.attributes.form_id.required": "True", "root.attributes.form_id.source_required": "True", "root.attributes.form_id.server_generated": "True", "root.attributes.form_id.autogenerated": "False", "root.attributes.form_id.frontend_autocomputed": "False", "root.attributes.form_id.format": "uuidv4", "root.attributes.form_id.regex": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", "root.attributes.form_code.field": "form_code", "root.attributes.form_code.type": "S", "root.attributes.form_code.required": "True", "root.attributes.form_code.source_required": "True", "root.attributes.form_code.server_generated": "True", "root.attributes.form_code.autogenerated": "False", "root.attributes.form_code.frontend_autocomputed": "False", "root.attributes.form_code.regex": "^[a-z][a-z0-9_]{2,127}$", "root.attributes.spec_version.field": "spec_version", "root.attributes.spec_version.type": "S", "root.attributes.spec_version.required": "True", "root.attributes.spec_version.source_required": "True", "root.attributes.spec_version.server_generated": "True", "root.attributes.spec_version.autogenerated": "False", "root.attributes.spec_version.frontend_autocomputed": "False", "root.attributes.spec_version.regex": "^[0-9]{9}$", "root.attributes.spec_sha256.field": "spec_sha256", "root.attributes.spec_sha256.type": "S", "root.attributes.spec_sha256.required": "True", "root.attributes.spec_sha256.source_required": "True", "root.attributes.spec_sha256.server_generated": "True", "root.attributes.spec_sha256.autogenerated": "False", "root.attributes.spec_sha256.frontend_autocomputed": "False", "root.attributes.spec_sha256.regex": "^[0-9a-f]{64}$", "root.attributes.source_s3_bucket.field": "source_s3_bucket", "root.attributes.source_s3_bucket.type": "S", "root.attributes.source_s3_bucket.required": "True", "root.attributes.source_s3_bucket.source_required": "True", "root.attributes.source_s3_bucket.server_generated": "True", "root.attributes.source_s3_bucket.autogenerated": "False", "root.attributes.source_s3_bucket.frontend_autocomputed": "False", "root.attributes.source_s3_bucket.regex": "^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$", "root.attributes.source_s3_key.field": "source_s3_key", "root.attributes.source_s3_key.type": "S", "root.attributes.source_s3_key.required": "True", "root.attributes.source_s3_key.source_required": "True", "root.attributes.source_s3_key.server_generated": "True", "root.attributes.source_s3_key.autogenerated": "False", "root.attributes.source_s3_key.frontend_autocomputed": "False", "root.attributes.source_s3_key.regex": "^[\\s\\S]{1,1024}$", "root.attributes.source_s3_version_id.field": "source_s3_version_id", "root.attributes.source_s3_version_id.type": "S", "root.attributes.source_s3_version_id.required": "False", "root.attributes.source_s3_version_id.source_required": "False", "root.attributes.source_s3_version_id.server_generated": "True", "root.attributes.source_s3_version_id.autogenerated": "False", "root.attributes.source_s3_version_id.frontend_autocomputed": "False", "root.attributes.source_s3_version_id.regex": "^[\\s\\S]{1,1024}$", "root.attributes.processing_status.field": "processing_status", "root.attributes.processing_status.type": "S", "root.attributes.processing_status.required": "True", "root.attributes.processing_status.source_required": "True", "root.attributes.processing_status.server_generated": "True", "root.attributes.processing_status.autogenerated": "False", "root.attributes.processing_status.frontend_autocomputed": "False", "root.attributes.processing_status.regex": "^(received|processing|succeeded|failed|cancelled)$", "root.attributes.ocr_engine_version.field": "ocr_engine_version", "root.attributes.ocr_engine_version.type": "S", "root.attributes.ocr_engine_version.required": "True", "root.attributes.ocr_engine_version.source_required": "True", "root.attributes.ocr_engine_version.server_generated": "True", "root.attributes.ocr_engine_version.autogenerated": "False", "root.attributes.ocr_engine_version.frontend_autocomputed": "False", "root.attributes.ocr_engine_version.regex": "^[A-Za-z0-9][A-Za-z0-9._+-]{0,127}$", "root.attributes.raw_extracted_ocr_value.field": "raw_extracted_ocr_value", "root.attributes.raw_extracted_ocr_value.type": "S", "root.attributes.raw_extracted_ocr_value.required": "True", "root.attributes.raw_extracted_ocr_value.source_required": "True", "root.attributes.raw_extracted_ocr_value.server_generated": "True", "root.attributes.raw_extracted_ocr_value.autogenerated": "False", "root.attributes.raw_extracted_ocr_value.frontend_autocomputed": "False", "root.attributes.raw_extracted_ocr_value.regex": "^[\\s\\S]{1,300000}$", "root.attributes.created.field": "created", "root.attributes.created.type": "S", "root.attributes.created.required": "False", "root.attributes.created.source_required": "True", "root.attributes.created.server_generated": "True", "root.attributes.created.autogenerated": "False", "root.attributes.created.frontend_autocomputed": "False", "root.attributes.created.format": "iso8601", "root.attributes.created.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$", "root.attributes.updated.field": "updated", "root.attributes.updated.type": "S", "root.attributes.updated.required": "False", "root.attributes.updated.source_required": "True", "root.attributes.updated.server_generated": "True", "root.attributes.updated.autogenerated": "False", "root.attributes.updated.frontend_autocomputed": "False", "root.attributes.updated.format": "iso8601", "root.attributes.updated.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$" } Response Schema --------------- .. code-block:: json { "type": "object", "properties.ok.type": "boolean", "properties.accepted.type": "boolean", "properties.is_committed.type": "boolean", "properties.request_id.type": "string", "properties.message.type": "string", "properties.table.type": "string", "properties.operation.type": "string", "properties.primary_key.type": "string", "properties.primary_key_value.type": "string", "properties.item_write_count.type": "number", "properties.child_write_count.type": "number" } Request Payload --------------- .. code-block:: json { "internal_raw_ocr_value_id": "aaa3eac1-79d6-4baf-956f-6e22ec3287f0", "document_id": "8927ab73-222d-4413-addb-0d818208d342", "entity_id": "5c454f9c-71d6-42d8-93d6-a13dbaa3cb92", "document_origin": "value-001", "form_id": "5a9789d8-9fb2-4340-bb2b-4414d9d0a8d7", "form_code": "value-001", "spec_version": "value-001", "spec_sha256": "value-001", "source_s3_bucket": "value-001", "source_s3_key": "value-001", "source_s3_version_id": "f6fc7c0f-3763-484f-a9ee-3bafdc41e4bf", "processing_status": "value-001", "ocr_engine_version": "value-001", "raw_extracted_ocr_value": "value-001", "created": "2026-07-23T17:03:38Z", "updated": "2026-07-23T17:03:38Z" } Response -------- .. code-block:: json { "type": "object", "properties.ok.type": "boolean", "properties.accepted.type": "boolean", "properties.is_committed.type": "boolean", "properties.request_id.type": "string", "properties.message.type": "string", "properties.table.type": "string", "properties.operation.type": "string", "properties.primary_key.type": "string", "properties.primary_key_value.type": "string", "properties.item_write_count.type": "number", "properties.child_write_count.type": "number" } CMD curl -------- .. code-block:: bat curl -X POST "https://api.jefoffice.com/accounting/async-post/accounting-internal-scanned-documents-raw-ocr-values-post-one" -H "Content-Type: application/json" --data-raw "{\"internal_raw_ocr_value_id\": \"aaa3eac1-79d6-4baf-956f-6e22ec3287f0\", \"document_id\": \"8927ab73-222d-4413-addb-0d818208d342\", \"entity_id\": \"5c454f9c-71d6-42d8-93d6-a13dbaa3cb92\", \"document_origin\": \"value-001\", \"form_id\": \"5a9789d8-9fb2-4340-bb2b-4414d9d0a8d7\", \"form_code\": \"value-001\", \"spec_version\": \"value-001\", \"spec_sha256\": \"value-001\", \"source_s3_bucket\": \"value-001\", \"source_s3_key\": \"value-001\", \"source_s3_version_id\": \"f6fc7c0f-3763-484f-a9ee-3bafdc41e4bf\", \"processing_status\": \"value-001\", \"ocr_engine_version\": \"value-001\", \"raw_extracted_ocr_value\": \"value-001\", \"created\": \"2026-07-23T17:03:38Z\", \"updated\": \"2026-07-23T17:03:38Z\"}" PowerShell curl --------------- .. code-block:: powershell curl.exe -X POST "https://api.jefoffice.com/accounting/async-post/accounting-internal-scanned-documents-raw-ocr-values-post-one" -H "Content-Type: application/json" --data-raw '{"internal_raw_ocr_value_id": "aaa3eac1-79d6-4baf-956f-6e22ec3287f0", "document_id": "8927ab73-222d-4413-addb-0d818208d342", "entity_id": "5c454f9c-71d6-42d8-93d6-a13dbaa3cb92", "document_origin": "value-001", "form_id": "5a9789d8-9fb2-4340-bb2b-4414d9d0a8d7", "form_code": "value-001", "spec_version": "value-001", "spec_sha256": "value-001", "source_s3_bucket": "value-001", "source_s3_key": "value-001", "source_s3_version_id": "f6fc7c0f-3763-484f-a9ee-3bafdc41e4bf", "processing_status": "value-001", "ocr_engine_version": "value-001", "raw_extracted_ocr_value": "value-001", "created": "2026-07-23T17:03:38Z", "updated": "2026-07-23T17:03:38Z"}'