accounting:writeCreates a manual journal entry. The entry is subject to the entity’s approval workflow thresholds (je_approval_threshold_low / _high). Entries at or below the low threshold are auto-approved. Above the high threshold require manager or owner approval.
Invariants enforced (all P0):
period_closed if the period is closed.Use bypass_period_check=true only with a migration:write scoped key
(WSS migration backfill). Every gated use is audit-logged.
Supports Idempotency-Key header for safe retries.
Expand paths: lines, lines.gl_account
Documentation Index
Fetch the complete documentation index at: https://docs.arcuserp.com/llms.txt
Use this file to discover all available pages before exploring further.
API key issued per entity via Settings > Developers > API Keys.
Each key carries scopes (e.g. orders:read, products:write).
Bearer token format: Authorization: Bearer ark_live_ent_Test keys use ark_test_ent_. Both are issued per entity
via Settings > Developers > API Keys.
ISO date (YYYY-MM-DD). Must fall within an open accounting period.
Journal entry lines. Every line must reference a postable (non-header, active, entity-scoped) GL account. Exactly one of debit or credit must be > 0 per line. DR sum must equal CR sum across all lines.
2Source type label (defaults to MANUAL). Use canonical JE_SOURCE_TYPE values when creating programmatic entries.
UUID or reference of the source document
Migration-only. Requires migration:write scope. Silently dropped for all other callers. Every use is audit-logged.
Created journal entry (auto-approved or pending-approval)
A double-entry journal entry. DR sum = CR sum across all lines (Rule A1 / assertGLBalance). entry_date must fall in an open accounting period (Rule A3). Once posted, entries are immutable -- use reverse to undo. Verified against live dev RDS accounting.journal_entries.
Human-readable number (e.g. SB-JE-0000001)
draft, pending_approval, posted, reversed, voided, rejected auto_approved, pending_approval, approved, rejected Event source (e.g. MANUAL, FULFILLMENT, PAYMENT, REFUND, PO_RECEIPT, VENDOR_BILL, SHOPIFY_IMPORT, RECURRING_JE, MANUAL_REVERSAL).
Groups JEs from one business event (e.g. fulfillment posts revenue + COGS + tax + shipping in one batch). Use GET /v1/journal-entries?batch_id= to retrieve all JEs in a batch.
JE lines (included on GET single; omitted on list responses)