Openapi
Save a journal by code.
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 payload.
application/jsoncode*string^[A-Z0-9_-]{1,16}$defaultAccountId?|uuidname*string1 <= length <= 200type*accountingJournalTypeSchema"sales""purchase""bank""cash""general"Returns the result.
application/jsoncode*stringcurrency*string|nulldefaultAccountId*|uuidid*stringuuidname*stringtype*accountingJournalTypeSchema"sales""purchase""bank""cash""general"curl -X POST 'https://app.localhost/api/v1/organizations/123/accounting/journals' \ -H 'Content-Type: application/json' \ -d '{ "code": "string", "name": "string", "type": "sales"}'{ "code": "string", "currency": "string", "defaultAccountId": "c708c202-9463-41b0-8d2b-6b9d973e8854", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "type": "sales"}