Skip to main content
PATCH
/
coa
/
api
/
journal_entry
/
{id}
Partial Update Journal Entry
curl --request PATCH \
  --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>",
  "update_reversal": false,
  "journals_to_delete": [
    123
  ],
  "type": "bill",
  "journal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "memo": "<string>",
  "currency": "<string>",
  "exchange_rate": 0,
  "exchange_rate_book": 0,
  "use_average_rate": true,
  "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": 123,
  "is_deleted": false,
  "deleted_at": "2023-11-07T05:31:56Z",
  "transactions": [
    {
      "id": 123,
      "is_deleted": false,
      "deleted_at": "2023-11-07T05:31:56Z",
      "entity_name": "<string>",
      "entity_currency": "<string>",
      "account_name": "<string>",
      "account_number": "<string>",
      "vendor_name": "<string>",
      "vendor_id": "<string>",
      "department_name": "<string>",
      "parent_department_name": "<string>",
      "parent_department": 123,
      "tags": [
        {
          "id": 123,
          "group_name": "<string>",
          "parent_name": "<string>",
          "parent": 123,
          "is_deleted": false,
          "deleted_at": "2023-11-07T05:31:56Z",
          "name": "<string>",
          "created_at": "2023-11-07T05:31:56Z",
          "last_modified_at": "2023-11-07T05:31:56Z",
          "customer": 123,
          "group": 123
        }
      ],
      "journal": 123,
      "journal_order": "<string>",
      "journal_memo": "<string>",
      "journal_type": "<string>",
      "intercompany_journal": 123,
      "created_automatically": true,
      "journal_attachments": [
        {
          "id": 123,
          "customer": 123,
          "created_at": "2023-11-07T05:31:56Z",
          "created_by": 123,
          "created_by_name": "<string>",
          "created_by_email": "<string>",
          "last_modified_at": "2023-11-07T05:31:56Z",
          "name": "<string>",
          "url": "<string>",
          "s3_content_type": "<string>",
          "s3_content_length": 1073741823,
          "s3_path": "<string>",
          "object_id": 1073741823,
          "app": "<string>",
          "model": "<string>",
          "is_deleted": true,
          "deleted_at": "2023-11-07T05:31:56Z"
        }
      ],
      "journal_type_name": "<string>",
      "invoice": "<string>",
      "bill": "<string>",
      "date_month": "<string>",
      "date_year": "<string>",
      "balance_after_transaction": 123,
      "bank_account": "<string>",
      "bank_account_name": "<string>",
      "account": 123,
      "last_modified_by_name": "<string>",
      "account_type": "<string>",
      "account_subtype": "<string>",
      "parent_account_name": "<string>",
      "files": "<string>",
      "invoice_id": 123,
      "invoice_number": "<string>",
      "bill_id": 123,
      "bill_number": "<string>",
      "file_names": "<string>",
      "has_matches": true,
      "amount": 0,
      "amount_native": 0,
      "amount_book": 0,
      "amortization_schedule": [
        {
          "id": 123,
          "journal_entry_order": "<string>",
          "date": "2023-12-25",
          "amount": 0,
          "posted": true,
          "amortization": 123,
          "customer": 123,
          "transaction": 123,
          "bill_line": 123,
          "journal_entry": 123
        }
      ],
      "created_fixed_assets": "<string>",
      "reconciliation_report": "<string>",
      "transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "debit_amount": 0,
      "credit_amount": 0,
      "debit_amount_book": 0,
      "credit_amount_book": 0,
      "debit_amount_native": 0,
      "credit_amount_native": 0,
      "currency": "<string>",
      "exchange_rate": 0,
      "exchange_rate_book": 0,
      "posted_at": "2023-12-25",
      "merchant_name": "<string>",
      "bank_description": "<string>",
      "note": "<string>",
      "balance_before_transaction": 0,
      "created_at": "2023-11-07T05:31:56Z",
      "external_id": "<string>",
      "needs_review": true,
      "last_modified_at": "2023-11-07T05:31:56Z",
      "draft_matches": "<any>",
      "customer": 123,
      "entity": 123,
      "parent_bank_transaction": 123,
      "vendor": 123,
      "department": 123,
      "last_modified_by": 123
    }
  ],
  "attachments": [
    {
      "id": 123,
      "customer": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "created_by": 123,
      "created_by_name": "<string>",
      "created_by_email": "<string>",
      "last_modified_at": "2023-11-07T05:31:56Z",
      "name": "<string>",
      "url": "<string>",
      "s3_content_type": "<string>",
      "s3_content_length": 1073741823,
      "s3_path": "<string>",
      "object_id": 1073741823,
      "app": "<string>",
      "model": "<string>",
      "is_deleted": true,
      "deleted_at": "2023-11-07T05:31:56Z"
    }
  ],
  "invoice": 123,
  "reversal_of_order": "<string>",
  "reversals": [
    123
  ],
  "entity_name": "<string>",
  "entity_currency": "<string>",
  "order": "<string>",
  "chat_uuid": "<string>",
  "credit_memos": [
    123
  ],
  "debit_memos": [
    123
  ],
  "search_vector": "<string>",
  "search_text": "<string>",
  "type": "bill",
  "journal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "memo": "<string>",
  "currency": "<string>",
  "exchange_rate": 0,
  "exchange_rate_book": 0,
  "use_average_rate": true,
  "created_automatically": true,
  "date": "2023-12-25",
  "ref_number": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "source": "<string>",
  "source_id": "<string>",
  "last_modified_at": "2023-11-07T05:31:56Z",
  "customer": 123,
  "recurrent_journal_entry": 123,
  "entity": 123,
  "reversal_of": 123,
  "intercompany_journal": 123,
  "source_file": 123,
  "chat": 123
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Path Parameters

id
integer
required

Body

reversal_date
string<date>
order
string
revenue_transactions
integer[]
bulk_upload
boolean
chat_uuid
string
update_reversal
boolean
default:false
journals_to_delete
integer[]
type
enum<string>
  • bill - Bill
  • bill_payment - Bill Payment
  • bill_prepayment - Bill Prepayment
  • check - Check
  • credit_card - Credit Card
  • credit_memo - Credit Memo
  • credit_memo_payment - Credit Memo Payment
  • debit_memo - Debit Memo
  • debit_memo_payment - Debit Memo Payment
  • deposit - Deposit
  • expense - Expense
  • invoice - Invoice
  • intercompany_journal - Intercompany Journal
  • invoice_payment - Invoice Payment
  • journal_entry - Journal Entry
  • payment - Payment
  • receive_payment - Receive Payment
  • refund - Refund
  • revenue_recognition - Revenue Recognition
  • sales_receipt - Sales Receipt
  • transfer - Transfer
  • vendor_credit - Vendor Credit
  • void_bill - Void Bill
  • void_bill_payment - Void Bill Payment
  • void_invoice_payment - Void Invoice Payment
  • void_credit_memo - Void Credit Memo
  • void_invoice - Void Invoice
  • elimination - Elimination
  • revaluation - Revaluation
Available options:
bill,
bill_payment,
bill_prepayment,
check,
credit_card,
credit_memo,
credit_memo_payment,
debit_memo,
debit_memo_payment,
deposit,
expense,
invoice,
intercompany_journal,
invoice_payment,
journal_entry,
payment,
receive_payment,
refund,
revenue_recognition,
sales_receipt,
transfer,
vendor_credit,
void_bill,
void_bill_payment,
void_invoice_payment,
void_credit_memo,
void_invoice,
elimination,
revaluation
journal_id
string<uuid>
memo
string | null
currency
string
Maximum length: 3
exchange_rate
number | null
Required range: -100000000000000 < x < 100000000000000
exchange_rate_book
number | null
Required range: -100000000000000 < x < 100000000000000
use_average_rate
boolean | null
created_automatically
boolean
date
string<date>
ref_number
string | null
Maximum length: 100
source
string | null
Maximum length: 250
source_id
string | null
recurrent_journal_entry
integer | null
entity
integer | null
reversal_of
integer | null
intercompany_journal
integer | null
source_file
integer | null
chat
integer | null

Response

200 - application/json
id
integer
required
is_deleted
boolean
default:false
required
deleted_at
string<date-time> | null
required
transactions
object[]
required
attachments
object[]
required
invoice
integer
required
reversal_of_order
string
required
reversals
integer[]
required
entity_name
string
required
entity_currency
string
required
credit_memos
integer[]
required
debit_memos
integer[]
required
search_vector
string | null
required
search_text
string | null
required
created_at
string<date-time>
required
last_modified_at
string<date-time>
required
customer
integer
required
order
string
chat_uuid
string
type
enum<string>
  • bill - Bill
  • bill_payment - Bill Payment
  • bill_prepayment - Bill Prepayment
  • check - Check
  • credit_card - Credit Card
  • credit_memo - Credit Memo
  • credit_memo_payment - Credit Memo Payment
  • debit_memo - Debit Memo
  • debit_memo_payment - Debit Memo Payment
  • deposit - Deposit
  • expense - Expense
  • invoice - Invoice
  • intercompany_journal - Intercompany Journal
  • invoice_payment - Invoice Payment
  • journal_entry - Journal Entry
  • payment - Payment
  • receive_payment - Receive Payment
  • refund - Refund
  • revenue_recognition - Revenue Recognition
  • sales_receipt - Sales Receipt
  • transfer - Transfer
  • vendor_credit - Vendor Credit
  • void_bill - Void Bill
  • void_bill_payment - Void Bill Payment
  • void_invoice_payment - Void Invoice Payment
  • void_credit_memo - Void Credit Memo
  • void_invoice - Void Invoice
  • elimination - Elimination
  • revaluation - Revaluation
Available options:
bill,
bill_payment,
bill_prepayment,
check,
credit_card,
credit_memo,
credit_memo_payment,
debit_memo,
debit_memo_payment,
deposit,
expense,
invoice,
intercompany_journal,
invoice_payment,
journal_entry,
payment,
receive_payment,
refund,
revenue_recognition,
sales_receipt,
transfer,
vendor_credit,
void_bill,
void_bill_payment,
void_invoice_payment,
void_credit_memo,
void_invoice,
elimination,
revaluation
journal_id
string<uuid>
memo
string | null
currency
string
Maximum length: 3
exchange_rate
number | null
Required range: -100000000000000 < x < 100000000000000
exchange_rate_book
number | null
Required range: -100000000000000 < x < 100000000000000
use_average_rate
boolean | null
created_automatically
boolean
date
string<date>
ref_number
string | null
Maximum length: 100
source
string | null
Maximum length: 250
source_id
string | null
recurrent_journal_entry
integer | null
entity
integer | null
reversal_of
integer | null
intercompany_journal
integer | null
source_file
integer | null
chat
integer | null
I