Openapi
Create a manual journal entry. Set post to true to post it at once, which also needs the post permission.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
organizationId*stringuuidThe journal entry payload.
application/jsonentryDate*isoDatedatejournalId*stringuuidlines*array<>2 <= items <= 200memo?stringlength <= 500post?booleanreference?stringlength <= 100Returns the result.
application/jsonentryDate*isoDatedateid*stringuuidjournalId*stringuuidmemo*string|nullnumber*string|nullreference*string|nullstatus*accountingEntryStatusSchema"draft""posted""reversed"total*minorUnitscurl -X POST 'https://app.localhost/api/v1/organizations/123/accounting/entries' \ -H 'Content-Type: application/json' \ -d '{ "entryDate": "2019-08-24", "journalId": "b3898f3e-caa8-44da-a903-71f7f6d54fa7", "lines": [ { "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9" }, { "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9" } ]}'{ "entryDate": "2019-08-24", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "journalId": "b3898f3e-caa8-44da-a903-71f7f6d54fa7", "memo": "string", "number": "string", "reference": "string", "status": "draft", "total": 0}