Journal Line
The journal line resource.
/journalLineList journal lines
Retrieve a paginated list of journal lines. 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/journalLine?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'[
{
"id": "abc123def456",
"journalId": "xyz789",
"amount": 0,
"quantity": 10,
"journalLineReference": "string",
"accrual": true,
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z"
}
]/journalLineRetrieve a journal line
Fetch a single journal line by filtering on `id`.
Query parameters
idstringMatch on the journal line's `id`, e.g. `eq.{id}`.
curl --request GET \
--url 'https://rest.carbon.ms/journalLine?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'{
"id": "abc123def456",
"journalId": "xyz789",
"amount": 0,
"quantity": 10,
"journalLineReference": "string",
"accrual": true,
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z"
}/journalLineCreate a journal line
Create a new journal line.
Body parameters
journalIdstringrequiredReferences journal.id
descriptionstringamountnumberrequiredquantitynumberrequireddocumentTypejournalLineDocumentTypedocumentIdstringexternalDocumentIdstringjournalLineReferencestringrequireddocumentLineReferencestringaccrualbooleanrequiredcompanyIdstringrequiredReferences company.id
customFieldsobjecttagsarrayaccountIdstringReferences account.id
intercompanyPartnerIdstringThe counterparty company within the same group for intercompany transactions
References company.id
curl --request POST \
--url https://rest.carbon.ms/journalLine \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"journalId":"xyz789","description":"string","amount":0,"quantity":10,"journalLineReference":"string","accrual":true,"companyId":"xyz789"}'{
"id": "abc123def456",
"journalId": "xyz789",
"amount": 0,
"quantity": 10,
"journalLineReference": "string",
"accrual": true,
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z"
}/journalLineUpdate a journal line
Update an existing journal line, matched on `id`.
Body parameters
journalIdstringrequiredReferences journal.id
descriptionstringamountnumberrequiredquantitynumberrequireddocumentTypejournalLineDocumentTypedocumentIdstringexternalDocumentIdstringjournalLineReferencestringrequireddocumentLineReferencestringaccrualbooleanrequiredcompanyIdstringrequiredReferences company.id
customFieldsobjecttagsarrayaccountIdstringReferences account.id
intercompanyPartnerIdstringThe counterparty company within the same group for intercompany transactions
References company.id
curl --request PATCH \
--url 'https://rest.carbon.ms/journalLine?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"journalId":"xyz789"}'{
"id": "abc123def456",
"journalId": "xyz789",
"amount": 0,
"quantity": 10,
"journalLineReference": "string",
"accrual": true,
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z"
}/journalLineDelete a journal line
Delete a journal line, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the journal line to delete, e.g. `eq.{id}`.
curl --request DELETE \
--url 'https://rest.carbon.ms/journalLine?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'