Skip to main content

Post a journal entry

Create and post double-entry journal entries to the general ledger.
Include acting-client headers on product API calls: X-Workspace-Id and X-Acting-Company-Id. See Act as a client.

Prerequisites

  • Chart of accounts configured
Required permissions: books:journal:write.

Steps

1

Create journal entry

curl -sS -X POST "$FLUIDE_BASE_URL/api/v1/journal-entries" \
  -H "Authorization: Bearer $FLUIDE_ACCESS_TOKEN" \
  -H "X-Fluide-Api-Key: $FLUIDE_API_KEY" \
  -H "X-Fluide-Client-Id: fluide-developer" \
  -H "X-Workspace-Id: $FLUIDE_WORKSPACE_ID" \
  -H "X-Acting-Company-Id: $FLUIDE_COMPANY_ID" \
  -H "Content-Type: application/json" \
  -d '{}'

payroll to books