.. AUTO-GENERATED FILE. DO NOT EDIT. /accounting-external-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-003`` - **HTTP method:** ``POST`` - **API path:** ``/accounting-external-scanned-documents-raw-ocr-values-post-one`` - **Cloudflare path:** ``/accounting/async-post/accounting-external-scanned-documents-raw-ocr-values-post-one`` - **Endpoint URL:** ``https://api.jefoffice.com/accounting/async-post/accounting-external-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-003 Logical ID: jef-accounting:jef-accounting-external-scanned-documents-raw-ocr-values:post-one Order Number: 003 * - ``Module`` - jef-accounting * - ``Action`` - post-one * - ``Method`` - POST * - ``Invocation Mode`` - ASYNC * - ``Resource Path`` - /accounting-external-scanned-documents-raw-ocr-values-post-one Endpoint Name: jef-accounting-external-scanned-documents-raw-ocr-values-post-one * - ``Table`` - jef-accounting-external-scanned-documents-raw-ocr-values * - ``Primary Key`` - external\_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 * - ``external\_raw\_ocr\_value\_id`` - 71af00d3-46a6-4ed2-88a7-a35228e0a430 * - ``document\_id`` - 0052a61e-cc9a-4674-bc58-f3671872e2e1 * - ``entity\_id`` - 2015b220-45c1-43cc-a84f-10745d9bd4ca * - ``document\_origin`` - value-001 * - ``form\_id`` - 51932b8e-f837-4436-9f20-42f5c56e1fea * - ``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`` - a2ae1442-cfc9-4e3d-bad4-f73320523543 * - ``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-external-scanned-documents-raw-ocr-values", "primary_key": "external_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.external_raw_ocr_value_id.field": "external_raw_ocr_value_id", "properties.external_raw_ocr_value_id.type": "S", "properties.external_raw_ocr_value_id.required": "False", "properties.external_raw_ocr_value_id.source_required": "True", "properties.external_raw_ocr_value_id.server_generated": "True", "properties.external_raw_ocr_value_id.autogenerated": "False", "properties.external_raw_ocr_value_id.frontend_autocomputed": "False", "properties.external_raw_ocr_value_id.format": "uuidv4", "properties.external_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": "^external$", "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.external_raw_ocr_value_id.field": "external_raw_ocr_value_id", "root.attributes.external_raw_ocr_value_id.type": "S", "root.attributes.external_raw_ocr_value_id.required": "False", "root.attributes.external_raw_ocr_value_id.source_required": "True", "root.attributes.external_raw_ocr_value_id.server_generated": "True", "root.attributes.external_raw_ocr_value_id.autogenerated": "False", "root.attributes.external_raw_ocr_value_id.frontend_autocomputed": "False", "root.attributes.external_raw_ocr_value_id.format": "uuidv4", "root.attributes.external_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": "^external$", "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 { "external_raw_ocr_value_id": "71af00d3-46a6-4ed2-88a7-a35228e0a430", "document_id": "0052a61e-cc9a-4674-bc58-f3671872e2e1", "entity_id": "2015b220-45c1-43cc-a84f-10745d9bd4ca", "document_origin": "value-001", "form_id": "51932b8e-f837-4436-9f20-42f5c56e1fea", "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": "a2ae1442-cfc9-4e3d-bad4-f73320523543", "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-external-scanned-documents-raw-ocr-values-post-one" -H "Content-Type: application/json" --data-raw "{\"external_raw_ocr_value_id\": \"71af00d3-46a6-4ed2-88a7-a35228e0a430\", \"document_id\": \"0052a61e-cc9a-4674-bc58-f3671872e2e1\", \"entity_id\": \"2015b220-45c1-43cc-a84f-10745d9bd4ca\", \"document_origin\": \"value-001\", \"form_id\": \"51932b8e-f837-4436-9f20-42f5c56e1fea\", \"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\": \"a2ae1442-cfc9-4e3d-bad4-f73320523543\", \"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-external-scanned-documents-raw-ocr-values-post-one" -H "Content-Type: application/json" --data-raw '{"external_raw_ocr_value_id": "71af00d3-46a6-4ed2-88a7-a35228e0a430", "document_id": "0052a61e-cc9a-4674-bc58-f3671872e2e1", "entity_id": "2015b220-45c1-43cc-a84f-10745d9bd4ca", "document_origin": "value-001", "form_id": "51932b8e-f837-4436-9f20-42f5c56e1fea", "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": "a2ae1442-cfc9-4e3d-bad4-f73320523543", "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"}'