SAP B1 ← Payroll Journal Entries (Cost-Center Dimensions)

Monthly payroll export → SAP B1 JournalEntries: debit salary expense split by cost center (CostingCode dimensions on JournalEntryLines), credit GOSI payable and accrued salaries. Posts summarized by department (privacy-safe), balances debits=credits before posting, and is idempotent per payroll period.

Steps in this flow

  1. Payroll Export Webhook
  2. Guard: Payroll Run
  3. SL Login (B1SESSION)
  4. Summarize by Dept → GL + CostingCode
  5. Validate: Debits = Credits
  6. POST /JournalEntries
  7. Retry on 401 (re-login)
  8. Notify: JE Posted

All templates