curl --request PUT \
--url https://api.meetcampfire.com/coa/api/journal_entry/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"reversal_date": "2023-12-25",
"order": "<string>",
"revenue_transactions": [
123
],
"bulk_upload": true,
"chat_uuid": "<string>",
"type": "bill",
"journal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memo": "<string>",
"currency": "<string>",
"exchange_rate": 0,
"exchange_rate_book": 0,
"created_automatically": true,
"date": "2023-12-25",
"ref_number": "<string>",
"source": "<string>",
"source_id": "<string>",
"recurrent_journal_entry": 123,
"entity": 123,
"reversal_of": 123,
"intercompany_journal": 123,
"source_file": 123,
"chat": 123
}'
{
"id": 7491945,
"transactions": [
{
"id": 24429464,
"entity_name": "Top Level",
"entity_currency": "USD",
"account_name": "1200 - Accounts Receivable",
"account_number": "1200",
"tags": [],
"journal": 7491945,
"journal_order": "0004358",
"journal_memo": "Updated Journal Memo",
"journal_type": "journal_entry",
"intercompany_journal": null,
"created_automatically": false,
"journal_attachments": [],
"journal_type_name": "Journal Entry",
"invoice": null,
"bill": null,
"date_month": "07",
"date_year": "2025",
"balance_after_transaction": 15000,
"account": 180565,
"last_modified_by_name": "API User",
"account_type": "ASSET",
"files": [],
"file_names": [],
"amount": 15000,
"amount_native": 15000,
"amount_book": 15000,
"amortization_schedule": [],
"transaction_id": "285b736b-5dd4-4cd3-9c46-683bd1972043",
"debit_amount": 15000,
"credit_amount": null,
"debit_amount_book": 15000,
"credit_amount_book": null,
"debit_amount_native": 15000,
"credit_amount_native": null,
"currency": "USD",
"exchange_rate": 1,
"exchange_rate_book": 1,
"posted_at": "2025-07-31",
"merchant_name": null,
"bank_description": "Updated Line Description",
"note": null,
"balance_before_transaction": null,
"created_at": "2025-07-25T00:01:28+0000",
"external_id": null,
"needs_review": false,
"last_modified_at": "2025-07-25T00:15:30+0000",
"draft_matches": null,
"entity": 54,
"parent_bank_transaction": null,
"vendor": null,
"department": null,
"last_modified_by": 904
},
{
"id": 24429465,
"entity_name": "Top Level",
"entity_currency": "USD",
"account_name": "4000 - Sales Revenue",
"account_number": "4000",
"vendor_name": "XYZ Corporation",
"department_name": "Sales",
"parent_department_name": "Revenue",
"parent_department": 2128,
"tags": [
{
"id": 8361,
"group_name": "Revenue Type",
"parent_name": null,
"parent": null,
"name": "Product Sales",
"created_at": "2025-07-18T15:23:56+0000",
"last_modified_at": "2025-07-18T15:23:56+0000",
"group": 761
}
],
"journal": 7491945,
"journal_order": "0004358",
"journal_memo": "Updated Journal Memo",
"journal_type": "journal_entry",
"intercompany_journal": null,
"created_automatically": false,
"journal_attachments": [],
"journal_type_name": "Journal Entry",
"invoice": null,
"bill": null,
"date_month": "07",
"date_year": "2025",
"balance_after_transaction": -15000,
"account": 4001,
"last_modified_by_name": "API User",
"account_type": "REVENUE",
"files": [],
"file_names": [],
"amount": 15000,
"amount_native": 15000,
"amount_book": 15000,
"amortization_schedule": [],
"transaction_id": "a8002c20-549e-4bc6-969e-dbc2288f45bb",
"debit_amount": null,
"credit_amount": 15000,
"debit_amount_book": null,
"credit_amount_book": 15000,
"debit_amount_native": null,
"credit_amount_native": 15000,
"currency": "USD",
"exchange_rate": 1,
"exchange_rate_book": 1,
"posted_at": "2025-07-31",
"merchant_name": null,
"bank_description": "Updated Line Description",
"note": null,
"balance_before_transaction": null,
"created_at": "2025-07-25T00:01:28+0000",
"external_id": null,
"needs_review": false,
"last_modified_at": "2025-07-25T00:15:30+0000",
"draft_matches": null,
"entity": 54,
"parent_bank_transaction": null,
"vendor": 34183,
"department": 36,
"last_modified_by": 904
}
],
"attachments": [],
"invoice": null,
"reversals": [],
"entity_name": "Top Level",
"entity_currency": "USD",
"order": "0004358",
"revenue_transactions": [],
"search_vector": "'0004358':1A '07':3C '2025':2C '31':4C",
"search_text": " 0004358",
"type": "journal_entry",
"journal_id": "5be022f1-77df-4cc7-977d-1c3d7d5828c8",
"memo": "Updated Journal Memo",
"currency": "USD",
"exchange_rate": 1,
"exchange_rate_book": 1,
"created_automatically": false,
"date": "2025-07-31",
"ref_number": null,
"created_at": "2025-07-25T00:01:28+0000",
"source": "manual",
"source_id": null,
"last_modified_at": "2025-07-25T00:15:30+0000",
"recurrent_journal_entry": null,
"entity": 54,
"reversal_of": null,
"intercompany_journal": null,
"source_file": null,
"chat": null
}
Update a journal entry completely. All transactions will be replaced with the new ones provided.
Important Notes:
Validation Rules:
curl --request PUT \
--url https://api.meetcampfire.com/coa/api/journal_entry/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"reversal_date": "2023-12-25",
"order": "<string>",
"revenue_transactions": [
123
],
"bulk_upload": true,
"chat_uuid": "<string>",
"type": "bill",
"journal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memo": "<string>",
"currency": "<string>",
"exchange_rate": 0,
"exchange_rate_book": 0,
"created_automatically": true,
"date": "2023-12-25",
"ref_number": "<string>",
"source": "<string>",
"source_id": "<string>",
"recurrent_journal_entry": 123,
"entity": 123,
"reversal_of": 123,
"intercompany_journal": 123,
"source_file": 123,
"chat": 123
}'
{
"id": 7491945,
"transactions": [
{
"id": 24429464,
"entity_name": "Top Level",
"entity_currency": "USD",
"account_name": "1200 - Accounts Receivable",
"account_number": "1200",
"tags": [],
"journal": 7491945,
"journal_order": "0004358",
"journal_memo": "Updated Journal Memo",
"journal_type": "journal_entry",
"intercompany_journal": null,
"created_automatically": false,
"journal_attachments": [],
"journal_type_name": "Journal Entry",
"invoice": null,
"bill": null,
"date_month": "07",
"date_year": "2025",
"balance_after_transaction": 15000,
"account": 180565,
"last_modified_by_name": "API User",
"account_type": "ASSET",
"files": [],
"file_names": [],
"amount": 15000,
"amount_native": 15000,
"amount_book": 15000,
"amortization_schedule": [],
"transaction_id": "285b736b-5dd4-4cd3-9c46-683bd1972043",
"debit_amount": 15000,
"credit_amount": null,
"debit_amount_book": 15000,
"credit_amount_book": null,
"debit_amount_native": 15000,
"credit_amount_native": null,
"currency": "USD",
"exchange_rate": 1,
"exchange_rate_book": 1,
"posted_at": "2025-07-31",
"merchant_name": null,
"bank_description": "Updated Line Description",
"note": null,
"balance_before_transaction": null,
"created_at": "2025-07-25T00:01:28+0000",
"external_id": null,
"needs_review": false,
"last_modified_at": "2025-07-25T00:15:30+0000",
"draft_matches": null,
"entity": 54,
"parent_bank_transaction": null,
"vendor": null,
"department": null,
"last_modified_by": 904
},
{
"id": 24429465,
"entity_name": "Top Level",
"entity_currency": "USD",
"account_name": "4000 - Sales Revenue",
"account_number": "4000",
"vendor_name": "XYZ Corporation",
"department_name": "Sales",
"parent_department_name": "Revenue",
"parent_department": 2128,
"tags": [
{
"id": 8361,
"group_name": "Revenue Type",
"parent_name": null,
"parent": null,
"name": "Product Sales",
"created_at": "2025-07-18T15:23:56+0000",
"last_modified_at": "2025-07-18T15:23:56+0000",
"group": 761
}
],
"journal": 7491945,
"journal_order": "0004358",
"journal_memo": "Updated Journal Memo",
"journal_type": "journal_entry",
"intercompany_journal": null,
"created_automatically": false,
"journal_attachments": [],
"journal_type_name": "Journal Entry",
"invoice": null,
"bill": null,
"date_month": "07",
"date_year": "2025",
"balance_after_transaction": -15000,
"account": 4001,
"last_modified_by_name": "API User",
"account_type": "REVENUE",
"files": [],
"file_names": [],
"amount": 15000,
"amount_native": 15000,
"amount_book": 15000,
"amortization_schedule": [],
"transaction_id": "a8002c20-549e-4bc6-969e-dbc2288f45bb",
"debit_amount": null,
"credit_amount": 15000,
"debit_amount_book": null,
"credit_amount_book": 15000,
"debit_amount_native": null,
"credit_amount_native": 15000,
"currency": "USD",
"exchange_rate": 1,
"exchange_rate_book": 1,
"posted_at": "2025-07-31",
"merchant_name": null,
"bank_description": "Updated Line Description",
"note": null,
"balance_before_transaction": null,
"created_at": "2025-07-25T00:01:28+0000",
"external_id": null,
"needs_review": false,
"last_modified_at": "2025-07-25T00:15:30+0000",
"draft_matches": null,
"entity": 54,
"parent_bank_transaction": null,
"vendor": 34183,
"department": 36,
"last_modified_by": 904
}
],
"attachments": [],
"invoice": null,
"reversals": [],
"entity_name": "Top Level",
"entity_currency": "USD",
"order": "0004358",
"revenue_transactions": [],
"search_vector": "'0004358':1A '07':3C '2025':2C '31':4C",
"search_text": " 0004358",
"type": "journal_entry",
"journal_id": "5be022f1-77df-4cc7-977d-1c3d7d5828c8",
"memo": "Updated Journal Memo",
"currency": "USD",
"exchange_rate": 1,
"exchange_rate_book": 1,
"created_automatically": false,
"date": "2025-07-31",
"ref_number": null,
"created_at": "2025-07-25T00:01:28+0000",
"source": "manual",
"source_id": null,
"last_modified_at": "2025-07-25T00:15:30+0000",
"recurrent_journal_entry": null,
"entity": 54,
"reversal_of": null,
"intercompany_journal": null,
"source_file": null,
"chat": null
}
Token-based authentication with required prefix "Token"
The response is of type object
.