Journal
The journal resource.
/journalList journals
Retrieve a paginated list of journals. Filter, order, and select columns with PostgREST query parameters.
Query parameters
selectstringComma-separated columns to return. Defaults to all.
orderstringColumn to sort by, e.g. `createdAt.desc`.
limitintegerMaximum rows to return.
offsetintegerRows to skip, for pagination.
curl --request GET \
--url 'https://rest.carbon.ms/journal?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'[
{
"id": "abc123def456",
"companyId": "xyz789",
"postingDate": "2026-01-01",
"createdAt": "2026-01-01T00:00:00Z",
"journalEntryId": "xyz789",
"status": "string",
"description": "string",
"accountingPeriodId": "xyz789"
}
]/journalRetrieve a journal
Fetch a single journal by filtering on `id`.
Query parameters
idstringMatch on the journal's `id`, e.g. `eq.{id}`.
curl --request GET \
--url 'https://rest.carbon.ms/journal?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'{
"id": "abc123def456",
"companyId": "xyz789",
"postingDate": "2026-01-01",
"createdAt": "2026-01-01T00:00:00Z",
"journalEntryId": "xyz789",
"status": "string",
"description": "string",
"accountingPeriodId": "xyz789"
}/journalCreate a journal
Create a new journal.
Body parameters
descriptionstringaccountingPeriodIdstringReferences accountingPeriod.id
companyIdstringrequiredReferences company.id
postingDatedaterequiredcustomFieldsobjecttagsarrayjournalEntryIdstringrequiredstatusjournalEntryStatusrequiredsourceTypejournalEntrySourceTypereversalOfIdstringReferences journal.id
reversedByIdstringReferences journal.id
postedAttimestamppostedBystringReferences user.id
curl --request POST \
--url https://rest.carbon.ms/journal \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"description":"string","companyId":"xyz789","postingDate":"2026-01-01","journalEntryId":"xyz789","status":"string"}'{
"id": "abc123def456",
"companyId": "xyz789",
"postingDate": "2026-01-01",
"createdAt": "2026-01-01T00:00:00Z",
"journalEntryId": "xyz789",
"status": "string",
"description": "string",
"accountingPeriodId": "xyz789"
}/journalUpdate a journal
Update an existing journal, matched on `id`.
Body parameters
descriptionstringaccountingPeriodIdstringReferences accountingPeriod.id
companyIdstringrequiredReferences company.id
postingDatedaterequiredcustomFieldsobjecttagsarrayjournalEntryIdstringrequiredstatusjournalEntryStatusrequiredsourceTypejournalEntrySourceTypereversalOfIdstringReferences journal.id
reversedByIdstringReferences journal.id
postedAttimestamppostedBystringReferences user.id
curl --request PATCH \
--url 'https://rest.carbon.ms/journal?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"description":"string"}'{
"id": "abc123def456",
"companyId": "xyz789",
"postingDate": "2026-01-01",
"createdAt": "2026-01-01T00:00:00Z",
"journalEntryId": "xyz789",
"status": "string",
"description": "string",
"accountingPeriodId": "xyz789"
}/journalDelete a journal
Delete a journal, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the journal to delete, e.g. `eq.{id}`.
curl --request DELETE \
--url 'https://rest.carbon.ms/journal?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'